Move a quiz night’s score board from React habits to Solid: JSX, Show, refs, Portal, Dynamic. 13 levels, played right in the browser with nothing to install.
What the levels ask
Monday night, the first rehearsal in the community hall. Ms. Dara is moving the quiz contest’s score board from React to Solid. The neighbourhood head taps Benar +100 (Correct +100) twice for team 3, and the TV over the stage must write 100 poin and then 200 poin. Fill the label line.
Monday, 20.00. Each team has a KotakRegu on the TV: its name, its score, and a thick frame for the team whose turn it is. The other attributes (id, aria-current) are passed on to the <li>. Team 1 answers right, the question passes to team 2, then team 2 is right. Fill how KotakRegu takes its props.
Tuesday night. In the scramble round the team that rings its bell first answers, and the TV must put up the Bel siap (bell ready) sign. Mrs. Ratna opens the scramble round and then the pass-on round: the sign must appear, then go again. Fill the body of TandaBel.
Tuesday, 20.10. The standings on the TV are sorted from the highest score, and each row has a box for the jury’s note. The neighbourhood head writes sanggah diterima (protest accepted) on team 3’s row, then team 3 gets 300 points and climbs to the top. The note must go with team 3. Ms. Dara knows a list needs a key. Fill the standings’ rows.
Wednesday night. Team 2 has ten seconds to answer, and the countdown shows big on the TV. Ms. Dara copied the effect from the old React board, dependency array and all. After 3, 6 and then 12 seconds the TV must write 7, 4, then 0, and no timer may be left ticking. Fill the effect.
Wednesday, 20.00. On every new question the countdown starts again from 10. Mrs. Ratna opens question 2 and question 3, and three seconds after each the TV must write 7. Only one timer may tick. Fill the clock’s effect.
Thursday night. The row of the team that rings its bell first must light up orange, and the leading team’s number must be bigger: 28 pixels. Bagas rings team 3’s bell, then team 3 is wrong and Mr. Tono rings team 1’s bell: the light moves to team 1 and team 3’s light goes out. Fill sorot and besar.
Thursday, 20.05. Team 2 answers out loud, the neighbourhood head types the answer on the jury’s tablet, and the TV must show it as it is typed so the audience can read along. The neighbourhood head types Sura, then Surabaya. Fill how the answer box is listened to.
Friday night. As soon as a bell rings, the answer box appears on the jury’s tablet and the cursor must already be in it, so the neighbourhood head can type at once. Mrs. Sari rings team 2’s bell. Fill the body of KotakJawab.
Saturday night. KartuSoal frames the question being read, and writes Belum ada soal (no question yet) when it is empty. Each Soal that shows logs its number in the running text under the TV. Mrs. Ratna reads question 1: the running text must write Sudah dibacakan: 1 (read so far: 1). Fill the body of KartuSoal.
Saturday, 20.00. In the scramble round Mrs. Ratna asks for question 3 to show big over the board so the back rows can read along. The round’s panel on the TV has a rounded frame and cuts off anything that leaves its edges. The question card must be seen whole. Fill where the card goes.
Sunday night. The panel on the TV changes with the round: Wajib for the compulsory round, Rebutan for the scramble round. Mrs. Ratna reads the compulsory round’s second question, then opens the scramble round. A new question only needs the question’s words to change; a new round changes the panel. Fill Panel.