Frontend Mentor challenges help you improve your coding skills by building realistic projects.
To do this challenge, you need a good understanding of JavaScript.
This is my Solution. 🏆🏆🏆
Your challenge is to integrate with the REST Countries API to pull country data and display it like in the designs.
You can use any JavaScript framework/library on the front-end such as React or Vue. You also have complete control over which packages you use to do things like make HTTP requests or style your project.
Your 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 am planning to write a blog post/video about it soon!!!
- HTML5
- CSS (Grid, flexbox and custom properties)
- Vanilla JS (local storage, Arrow functions, Promises etc)
- Axios HTTP Library
- Performing JS logic in JS template literals
- Custom routing
- CSS tricks like multiple class selectors
The next time I want to implement this project by using
- React styled components, custom hooks and routers
- Multiple class selectors - This helped me how to select multiple classes in the same element
- Stackoverflow - This helped me in debugging process