A modern, responsive quiz application built with React.js featuring dark/light theme, multiple categories, and performance analytics.
- Multiple Quiz Categories: General Knowledge, Science, History, Geography, Sports, Entertainment, Technology, Literature
- Three Difficulty Levels: Easy, Medium, Hard
- Dark/Light Theme Toggle: Seamless theme switching
- Timed Questions: 15-second timer per question
- Performance Analytics: Track answer times and accuracy
- Responsive Design: Works on all devices
- Score Tracking: Persistent leaderboard with localStorage
- Glassmorphism UI: Modern, elegant interface
- React.js 18
- React Router DOM
- CSS3 (Glassmorphism, CSS Variables)
- LocalStorage for data persistence
- Modern ES6+ JavaScript
-
Clone the repository:
git clone https://github.com/yourusername/KTJ-ASS3.git cd KTJ-ASS3 -
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open http://localhost:3000 to view it in the browser.
- Start Quiz: Enter your name and select category/difficulty
- Answer Questions: Click on options within the 15-second timer
- View Results: See detailed performance analytics
- Check Leaderboard: Compare scores with other players
- Toggle Theme: Use the theme button in navigation
- General Knowledge: Basic facts and trivia
- Science & Nature: Physics, chemistry, biology
- History: World history and events
- Geography: Countries, capitals, landmarks
- Sports: Various sports and athletes
- Entertainment: Movies, music, celebrities
- Technology: Programming, computers, tech
- Literature: Books, authors, poetry
npm run buildThis creates an optimized production build in the build folder.
- Light Mode: Clean, modern interface with soft colors
- Dark Mode: Deep navy and purple theme for night use
- Smooth Transitions: Animated theme switching
- Consistent Branding: Maintains visual identity across themes
- Mobile First: Optimized for mobile devices
- Tablet Support: Perfect tablet experience
- Desktop Enhanced: Full-featured desktop interface
- Correct Answer: +1 point
- Time Bonus: Faster answers get recognition
- Performance Tracking: Detailed analytics per quiz
- Persistent Storage: Scores saved locally
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Built for the Kshitij Web Development Workshop - Assignment 3
"The only way to learn to program is by writing programs." - Dennis Ritchie