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)
- Solution URL: https://lucent-flan-bade80.netlify.app
- Tailwind CSS for styling
- Flexbox
- CSS Grid
- Mobile-first workflow
- Vue 3 - JS library
- Vite - Build tool
Some of the things we can improve in this project is caching the response. in order to reduce API requests. also the error handling, in case if the request fails we should show to the users a meaningful alert.
- Vue Router - this library used to handle client side routing.
- VueUse - This is an amazing collection composable utilities, I used it to handle dark mode toggle.
- Frontend Mentor - @mehdilight
- Twitter - @mehdiislight
- LinkedIn - mehdilight