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)
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- React
- Wouter
- CSS Modules
- CSS Modules
- useLocalStorage
- Wouter
- Dark/Light style theme
- Deploy routed app to github pages / hash routing
- CSS Modules
- CSS Modules with React Scripts - CSS modules with React Scripts
- https://css-tricks.com/css-modules-part-1-need/
- https://github.com/gajus/react-css-modules
- https://github.com/molefrog/wouter
- https://blog.logrocket.com/an-introduction-to-wouter-a-react-router-alternative/
- https://restcountries.com/
- https://usehooks.com/useLocalStorage/
- https://create-react-app.dev/docs/deployment/#github-pages
- https://www.freecodecamp.org/news/deploy-a-react-app-to-github-pages/
- https://github.com/molefrog/wouter#customizing-the-location-hook
- Website - César Palma (XsrPm)
- Frontend Mentor - @xsrpm
- Twitter - @xsrpma