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
inputfield - 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
- Solution URL: https://github.com/mail2ifham/rest-countries-api-with-color-theme-switcher-master
- Live Site URL: https://wondrous-youtiao-32a4fa.netlify.app/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- React - JS library
- Zustand for state management
- React Router for navigation
While working on this project, I gained valuable experience with:
- Fetching and displaying data from a REST API
- Implementing a dark/light theme switcher using React context
- Creating responsive layouts with CSS Grid and Flexbox
- Building a multi-page application with React Router
- Handling user interactions like search and filtering
In future projects, I want to focus on:
- Improving accessibility for better user experience
- Optimizing API calls to reduce loading times
- Implementing unit tests for critical components
- React Router Documentation - Helped me understand dynamic routing.
- Zustand Documentation - A simple and lightweight state management library.
- React-icon - A simple yet powerfull icon library.
- React-icon - A simple yet powerfull icon library.
- Frontend Mentor - @yourusername
- GitHub - @yourusername
