3 ms·
I made it over the course of several hours, and had to start from a fresh thread multiple times. I don't have all of the prompts. But here are some examples: -
by lovasoa 4y ago
I made it over the course of several hours, and had to start from a fresh thread multiple times. I don't have all of the prompts. But here are some examples:
- Fix the missing div and classes in the component
- Wait a few milliseconds before switching to the next question when the user answers
- During this time, change the color of the button using a css class. Use coherent colors, make the color different when the answer was right and when it was wrong.
- Use react instead of direct dom manipulation to handle classes
- Create a new GameInProgress.css stylesheet just for this component where you handle button colors, and import it in the component Answer with just two code blocks, for the js and for the css
- Add the "correct" or "incorrect" class only when the button is clicked, wait 50ms before switching to the next question.
- When the button is clicked, we need to first change the class, then wait 50ms, then call the rest of the code to handle the answer selection. Also, we need to do that using only react, no direct dom manipulation. In NO case should the answer be given to the user before they clicked a button. Respond with only the JSX.
- Change the CSS to make the transitions smooth during the 100ms interval where the correct answers are shown.
- The main title of the page is displayed too high, it is half cut. How to fix that in the main CSS ?
- It's still not displayed in full, the top appears cropped
- Thanks, it's better, but there is still not enough space at the top of the page
- Here is a list of questions for a quizz game… Generate a JSON containing 10 more questions in the same style.
- Write a JSON file containing 10 more questions and answers in the same format and in the same style. All the questions should be about the present or past foreign policy of the US, contain some degree of irony, and make the player think about the human lives that were lost or destroyed because of such policies.