This is my solution to the REST Countries API with color theme switcher challenge on Frontend Mentor.
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) ✅
Here is the screenshot of my solution:
- Live Site URL: Click here to browse for countries
- Challenge page: Solution page on Frontend Mentor
- Semantic HTML5 markup
- CSS custom properties + SCSS
- JavaScript
- React.js
- React Router
- Rest Countries API
- Loads of thinking 🧠
The main goal of taking this challenge was to improve my React.js knowledge, including the use of components, states, effects, and also React Router, links, params, etc. Most of these were new to me, so i'm kind of proud of myself for accomplishing this task (to a certain extent, of course, no one is perfect at their firsts)
Goal number two was to get more confident using APIs. Happy to say, this one has been accomplished, too.
- Website - My portfolio site
- Git Hub - Here you are
p.s. If you have any suggestion on improving this code, you're more than welcome to share your ideas!
Leave your comments below the commit of your choice or pull a request! ✨