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
- Semantic HTML5 markup
- SCSS Modules
- TypeScript
- React - JS library
- React Router - Routing library
- Suspense API
- Context API
- Intersection Observer API
- Mobile-first workflow
- Color theme switcher (with local storage support)
- Infinite scroll (for homepage country card list)
- Modern React Router with data routes (for loaders to fetch data with the "render-as-you-fetch" approach)
- Search parameters (for storing searched country and region to make the pages bookmarkable)
- Code splitting (with React.lazy() and Suspense API)
- Twitter - @Rock_n_Roll_CRC
- LinkedIn - @rock-n-roll-crc