Skip to content

๐Ÿง  Quiz Master is a modern, responsive quiz application built with HTML, CSS, and JavaScript featuring dark mode, progress bar, instant feedback, smooth animations, and a beautiful UI design optimized for all devices.

Notifications You must be signed in to change notification settings

akashasahu07/Quiz-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Quiz Master - Interactive Quiz Application

A modern, responsive quiz application built with HTML, CSS, and JavaScript featuring dark mode, smooth animations, and an engaging user experience.

Quiz App License

โœจ Features

  • ๐ŸŒ™ Dark Mode Toggle - Switch between light and dark themes with smooth transitions
  • ๐Ÿ“Š Progress Bar - Visual indicator showing quiz completion status
  • ๐ŸŽจ Modern UI Design - Beautiful gradient backgrounds and contemporary styling
  • โœจ Smooth Animations - Engaging animations for questions, answers, and feedback
  • โœ… Instant Feedback - Visual indicators for correct and incorrect answers
  • ๐Ÿ“ฑ Fully Responsive - Optimized for desktop, tablet, and mobile devices
  • ๐Ÿ† Score Summary - Detailed results with percentage and motivational messages
  • ๐ŸŽฏ Interactive Elements - Hover effects and button animations for better UX
  • ๐Ÿ”„ Replay Option - Restart the quiz instantly after completion

๐Ÿš€ Demo

Simply open the index.html file in your web browser to start the quiz!

๐Ÿ“‹ Prerequisites

No prerequisites required! This is a standalone application that runs entirely in the browser.

๐Ÿ› ๏ธ Installation

  1. Clone the repository:
git clone https://github.com/akashasahu07/Quiz-App.git
  1. Navigate to the project directory:
cd "Quiz App"
  1. Open index.html in your preferred web browser:
# On macOS
open index.html

# On Linux
xdg-open index.html

# On Windows
start index.html

Or simply drag and drop the index.html file into your browser.

๐Ÿ“ Project Structure

Quiz App/
โ”‚
โ”œโ”€โ”€ index.html          # Main HTML file (contains CSS and JS inline)
โ””โ”€โ”€ README.md          # Project documentation

๐ŸŽฎ How to Use

  1. Start the Quiz - The quiz loads automatically when you open the page
  2. Answer Questions - Click on any answer option to select it
  3. View Feedback - Correct answers turn green, incorrect ones turn red
  4. Navigate - Click the "Next" button to move to the next question
  5. Toggle Dark Mode - Click the moon/sun icon in the top right corner
  6. View Results - After completing all questions, see your score and performance
  7. Play Again - Click "Play Again" to restart the quiz

๐Ÿ“Š Quiz Content

The quiz currently contains 11 questions covering various topics:

  • Geography
  • Science
  • Literature
  • History
  • Chemistry

Adding New Questions

To add more questions, modify the questions array in the JavaScript section:

const questions = [
    {
        question: "Your question here?",
        answers: [
            { text: "Option 1", correct: false },
            { text: "Option 2", correct: true },
            { text: "Option 3", correct: false },
            { text: "Option 4", correct: false }
        ]
    },
    // Add more questions...
];

๐ŸŽจ Customization

Changing Colors

Light Mode Colors:

  • Primary gradient: #667eea to #764ba2
  • Modify in the body background gradient

Dark Mode Colors:

  • Primary gradient: #1a1a2e to #16213e
  • Accent color: #e94560
  • Modify in the body.dark-mode section

Modifying Animations

Animations are defined in CSS @keyframes:

  • slideIn - Initial container animation
  • fadeIn - Question fade effect
  • correctPulse - Correct answer feedback
  • shake - Incorrect answer feedback
  • bounce - Score icon animation

๐ŸŒ Browser Support

  • โœ… Chrome (latest)
  • โœ… Firefox (latest)
  • โœ… Safari (latest)
  • โœ… Edge (latest)
  • โœ… Opera (latest)

๐Ÿ“ฑ Responsive Breakpoints

  • Desktop: > 768px
  • Tablet: 481px - 768px
  • Mobile: < 480px

๐Ÿ”ง Technologies Used

  • HTML5 - Structure and markup
  • CSS3 - Styling, animations, and responsive design
  • JavaScript (ES6) - Quiz logic and interactivity
  • Font Awesome 6.4.0 - Icons (via CDN)

๐ŸŽฏ Performance Features

  • No external dependencies (except Font Awesome CDN)
  • Lightweight and fast loading
  • Smooth 60fps animations
  • Optimized for mobile devices
  • In-memory state management

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/improvement)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add new feature')
  5. Push to the branch (git push origin feature/improvement)
  6. Create a Pull Request

Ideas for Contribution

  • Add more question categories
  • Implement difficulty levels
  • Add timer functionality
  • Create a leaderboard system
  • Add sound effects
  • Multi-language support

๐Ÿ“ License

This project is licensed under the MIT License - see below for details:

MIT License

Copyright (c) 2025 Quiz Master

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

๐Ÿ‘จโ€๐Ÿ’ป Author

Created with โค๏ธ by Akash Sahu

๐Ÿ™ Acknowledgments

  • Font Awesome for the beautiful icons
  • Inspiration from modern quiz applications
  • The web development community

๐Ÿ“ž Contact

For questions or feedback, please reach out:

๐Ÿ”ฎ Future Enhancements

  • Add timer for each question
  • Implement different difficulty levels
  • Add category selection
  • Create user authentication
  • Add local storage for score history
  • Implement sound effects
  • Add social sharing features
  • Create backend API integration

Made with ๐Ÿง  and โ˜• | Star โญ this repo if you find it helpful!

About

๐Ÿง  Quiz Master is a modern, responsive quiz application built with HTML, CSS, and JavaScript featuring dark mode, progress bar, instant feedback, smooth animations, and a beautiful UI design optimized for all devices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published