How azaansaeed47-dev/quiz-app works
This is a small client-side coding quiz built as a single Next.js page. A participant enters from the welcome screen, answers questions with the option to revisit them, then sees an automatically calculated score and answer explanations; they can restart afterward. The quiz data, state, scoring, and phase-specific UI are all implemented in app/page.tsx rather than separate modules. app/layout.tsx supplies the document shell and imports global styles. The excerpts show these responsibilities but omit some event-handler code, so no unsupported handler-level links are drawn.
Main entry points: page.tsx Quiz page · layout.tsx Document shell · globals.css Global styles
Components 9
Quiz experience
- Quiz page
app/page.tsx - Question bank
app/page.tsx - Quiz state and scoring
app/page.tsx - Welcome screen
app/page.tsx - Question session
app/page.tsx - Results and review
app/page.tsx
Application shell
- Document shell
app/layout.tsx - Global styles
app/globals.css
Other components
- Participant
Connections 7
- Document shell → Global styles: imports
app/layout.tsx - Participant → Quiz page: opens
- Quiz page → Question bank: reads
app/page.tsx - Quiz page → Quiz state and scoring: tracks and scores
app/page.tsx - Quiz page → Welcome screen: renders welcome
app/page.tsx - Quiz page → Question session: renders quiz
app/page.tsx - Quiz page → Results and review: renders results
app/page.tsx