This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See all countries from the API on the homepage
- Search for a country using an
input
field - Filter countries by region
- Click on a country to see more detailed information on a separate page
- Click through to the border countries on the detail page
- Toggle the color scheme between light and dark mode (optional)
I wrote an article on linked in about some of the blockers and how I went about solving them. Check it out here!
- The Quest for the Perfect Dark Mode
- This article helped me understand how to inject a script into my static HTML on build
- How to Code a Dark Theme with Material UI
- This is an amazing article which helped me lift up the theme state to a useContext and inject it at the root of my Gatsby app
- Website - Kirill Tchentsov
- Frontend Mentor - @Kirill-develops
- GitHub - @Kirill-develops