{"id":27615636,"url":"https://github.com/thejokers69/quiz-name","last_synced_at":"2026-04-09T01:32:50.701Z","repository":{"id":288490826,"uuid":"968282531","full_name":"thejokers69/Quiz-Name","owner":"thejokers69","description":"Interactive personality quiz app built with React. Discover your element and get matched with real artwork from the MET Museum. Final project by Mohamed Lakssir for CodeDex.","archived":false,"fork":false,"pushed_at":"2025-05-03T08:55:05.000Z","size":271,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T09:45:28.574Z","etag":null,"topics":["css","react","react-router","react-router-dom","vite"],"latest_commit_sha":null,"homepage":"https://thejokers69.github.io/Quiz-Name/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thejokers69.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-17T20:09:46.000Z","updated_at":"2025-05-03T08:55:06.000Z","dependencies_parsed_at":"2025-04-23T03:57:03.649Z","dependency_job_id":null,"html_url":"https://github.com/thejokers69/Quiz-Name","commit_stats":null,"previous_names":["thejokers69/quiz-name"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thejokers69/Quiz-Name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejokers69%2FQuiz-Name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejokers69%2FQuiz-Name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejokers69%2FQuiz-Name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejokers69%2FQuiz-Name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thejokers69","download_url":"https://codeload.github.com/thejokers69/Quiz-Name/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejokers69%2FQuiz-Name/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263577244,"owners_count":23483130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","react","react-router","react-router-dom","vite"],"created_at":"2025-04-23T03:57:01.073Z","updated_at":"2025-12-30T22:17:15.185Z","avatar_url":"https://github.com/thejokers69.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Personality Quiz – Final Project (by Mohamed Lakssir)\n\n## Overview\n\nThis is an interactive Personality Quiz web app built as a final project for CodeDex. The app is designed to provide a fun and engaging way for users to discover their elemental personality (Fire, Water, Earth, or Air) based on their answers to a series of questions. After completing the quiz, users are presented with a piece of artwork from the Metropolitan Museum of Art that matches their element.\n\n## Features\n\n- **User Input:** Users enter their name to personalize the quiz experience.\n- **Quiz Flow:** Users answer a series of multiple-choice questions.\n- **Element Assignment:** The app determines the user's element based on their answers.\n- **Artwork Display:** After the quiz, the app fetches and displays a relevant artwork from the MET Museum API.\n- **Responsive UI:** Modern, card-based design with smooth navigation and feedback.\n- **Retry \u0026 Navigation:** Users can refresh the artwork or go back to retake the quiz.\n\n## Technologies Used\n\n- React 19\n- React Router DOM 7\n- Vite\n- MET Museum Public API\n- Modern CSS (flexbox, card layouts)\n\n## How to Run\n\n1. **Install dependencies:**\n\n   ```bash\n   npm install\n   ```\n\n2. **Start the development server:**\n\n   ```bash\n   npm run dev\n   ```\n\n3. **Open your browser:**\n   Visit [http://localhost:5173](http://localhost:5173)\n\n## Project Structure\n\n- `src/components/` – React components (Header, UserForm, Question, Results, UserContext)\n- `src/styles/` – CSS styles\n- `src/assets/` – Static assets (e.g., coin logo)\n- `App.jsx` – Main app logic and routing\n- `main.jsx` – React entry point\n\n## Recent Improvements\n\n### State Reset and Unique Results for Each User\n- Improved the quiz logic so that when a new user starts the quiz, all previous quiz state (answers, element, artwork, etc.) is fully reset. This ensures that each user gets a fresh experience and their result is not affected by the previous user.\n- Enhanced the \"Go Back\" button on the results page: it now resets the quiz state before returning to the home page, so a new user will not inherit the previous user's answers or result.\n- This change prevents different users from getting the same element/color just because of leftover state, making the quiz more fair and personalized.\n\n### Codebase Cleanup\n- Removed a redundant Results.jsx file from the project root to avoid confusion and ensure only the correct Results component in `src/components/Results.jsx` is used.\n\nThese improvements were made for better user experience and code maintainability, even though they were not explicitly required in the exercise.\n\n## Credits\n\n- Developed by **Mohamed Lakssir** for CodeDex Final Project\n- Artwork data provided by [The Metropolitan Museum of Art Collection API](https://metmuseum.github.io/)\n\n---\nEnjoy discovering your element and exploring art!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejokers69%2Fquiz-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthejokers69%2Fquiz-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejokers69%2Fquiz-name/lists"}