A modern, responsive quiz game website built with React and Bootstrap CSS. Test your knowledge across 9 exciting topics with a beautiful light/dark theme toggle.
- ๐ฏ 9 Quiz Topics: Cricket, Football, Tamil Cinema, Tamil Actors, Space, Food, Maths, History, and Technology
- ๐ Light/Dark Theme: Toggle between light and dark modes with custom red/blue color schemes
- ๐ฑ Responsive Design: Works seamlessly on both mobile and desktop devices
- โก Interactive Quiz: 10 questions per topic with multiple-choice answers
- ๐ Instant Results: Get immediate feedback with score and appreciation messages
- ๐จ Modern UI: Beautiful gradient designs and smooth animations
- Frontend: React 19.1.1
- Styling: Bootstrap CSS with custom CSS variables
- Routing: React Router DOM
- Build Tool: Vite
- Theme Management: React Context API
- Node.js (version 14 or higher)
- npm or yarn
- Clone the repository:
git clone <repository-url>
cd React_Quiz_Game- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:5173
src/
โโโ components/ # React components
โ โโโ Header.jsx # Navigation header with theme toggle
โ โโโ HeroSection.jsx # Landing page hero section
โ โโโ GamesSection.jsx # Topic selection cards
โ โโโ Quiz.jsx # Dynamic quiz component
โ โโโ Footer.jsx # Footer with creator info
โโโ contexts/ # React context providers
โ โโโ ThemeContext.jsx # Theme context definition
โ โโโ ThemeContextProvider.jsx # Theme provider component
โโโ hooks/ # Custom React hooks
โ โโโ useTheme.js # Theme hook
โโโ data/ # Quiz data
โ โโโ questions.js # All quiz questions and topics
โโโ App.jsx # Main app component
โโโ main.jsx # App entry point
โโโ index.css # Global styles and theme variables
- Cricket ๐ - Test your cricket knowledge
- Football โฝ - Football facts and history
- Tamil Cinema ๐ฌ - Tamil movie trivia
- Tamil Actors ๐ญ - Tamil film industry stars
- Space ๐ - Astronomy and space exploration
- Food ๐ - Culinary knowledge from around the world
- Maths ๐ - Mathematical concepts and problems
- History ๐ - Historical events and figures
- Technology ๐ป - Tech facts and programming
- Light theme with lighter shades of red and blue
- Dark theme with darker shades of red and blue
- Persistent theme preference using localStorage
- Smooth transitions between themes
- 10 questions per topic
- Multiple choice answers (A, B, C, D)
- Progress tracking with visual progress bar
- Answer validation and scoring
- Feedback messages based on performance
- Option to retry or return to topic selection
- The Correct answers will be shown at the End of the Quiz
- Mobile-first approach
- Bootstrap grid system
- Custom CSS variables for consistent theming
- Optimized for all screen sizes
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source and available under the MIT License.
Created with โค๏ธ by Paul Bryton Raj
- ๐ง Email: paulbrytonraj18@gmail.com
- ๐ GitHub: @PaulBrytonRaj18
- ๐ผ LinkedIn: Paul Bryton Raj
Enjoy testing your knowledge with FeelingBored! ๐ฎ๐ง