A fun and interactive quiz to find out which character from the TV show "The Office" you are most like! This project is built using React and Tailwind CSS.
A live demo of the project can be found here. (Replace with the actual link if available)
- Interactive quiz with multiple questions
- Dynamically calculates the character based on user responses
- Modern UI design with Tailwind CSS
- Responsive design for mobile and desktop users
To get a local copy up and running follow these simple steps:
- Node.js and npm installed on your local machine. You can download them from here.
-
Clone the repository:
```sh git clone https://github.com/yourusername/office-quiz.git cd office-quiz ```
-
Install NPM packages:
```sh npm install ```
-
Set up Tailwind CSS:
Tailwind CSS is already configured in this project. You can find the configuration in
tailwind.config.js
andsrc/index.css
.
To start the development server, run:
```sh npm start ```
This will start the app in development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console.
``` office-quiz/ ├── public/ │ ├── index.html │ └── ... ├── src/ │ ├── components/ │ │ ├── Quiz.js │ │ └── Welcome.js │ ├── App.js │ ├── index.js │ ├── index.css │ └── questions.json ├── .gitignore ├── package.json ├── tailwind.config.js └── README.md ```
public/index.html
: The main HTML file.src/components/Quiz.js
: The quiz component where the quiz logic is implemented.src/components/Welcome.js
: The welcome page component.src/App.js
: The main app component.src/index.js
: The entry point of the application.src/index.css
: The global CSS file with Tailwind CSS imports.src/questions.json
: The JSON file containing the quiz questions and answers.tailwind.config.js
: The Tailwind CSS configuration file.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- 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
Distributed under the MIT License. See LICENSE
for more information.