I created a β¨π§ Hogwarts Encyclopedia π§β¨ that allows users to explore hundreds of characters, potions, and spells introduced in the best-selling Harry Potter series by J.K. Rowling.
π Explore the encyclopedia here
Note: I used HashRouter from React Router because GitHub pages doesn't allow you to use actual browser routers. That's why you'll see a hash symbol in the URL before the slug for each page. If you don't have the hash in the URL, the site will navigate to GitHub's 404 page.
The project was styled using SCSS, and I incorporated backgrounds, colors, and effects on every single page. The app is responsive so that no matter the size of the screen you're viewing the site on, the content fits on the page well. For instance, the navbar items get condensed into a hamburger menu at a certain breakpoint.
You can navigate to any of these pages using the slugs below:
- Landing Page: /
- Characters: /characters
- Potions: /potions
- Spells: /spells
- I also created a 404 page if the user tries to use a slug that doesn't exist.
Within the characters, potions, and spells subpages, there are search and filtering options, and you can also click on each card to flip it and view more details.
I used two external APIs for this project:
- https://hp-api.onrender.com/api/characters for characters
- https://docs.potterdb.com/ for potions and spells