Author: Tobenna Nwosu
Project Duration: 1 Week (June 2025)
This is a responsive trivia quiz application built with React and Vite. It allows users to customize their quiz experience and test their knowledge with real-time feedback.
- Customize your quiz: choose the number of questions, difficulty level, and category
- Fetches questions from the Open Trivia Database API
- Randomizes answer choices for each question
- Highlights selected answers for better visibility
- Displays score with color-coded feedback (correct/incorrect)
- Review answers in a collapsible view after quiz completion
- Fully responsive and user-friendly UI
-
Clone the Repository:
git clone https://github.com/your-username/trivia-app.git cd trivia-app -
Install Dependencies:
npm install
-
Start the Development Server:
npm run dev
-
Select quiz options:
- Number of questions
- Difficulty (easy, medium, hard)
- Category
-
Click "New Quiz" to generate your trivia.
-
Select answers for each question.
-
Click "Submit" to see your score and review answers.
- React
- Vite
- Open Trivia Database API
- CSS (Grid & Flexbox) for responsive layout
- Vercel for Deployment