Create website quiz page
Opened this issue · 0 comments
pfwd commented
Requires the following:
Create a NextJS page with address /[quiz-slug]/[question-number]
which does the following
- When rendered an API call is made to get and store all the questions within the known
quiz-slug
. - Displays the Question component which refers to the [question-number]
- Displays a next button that when clicked replaces the Question component with the next Question component and changes the address to be (
/[quiz-slug]/2
). Only display the button if there is a next question. This button should be displayed under the question on the right. - Displays a previous button that when clicked replaces the current Question component with the previous one. Only display the button if there is a previous question. This button should be displayed under the question on the left