This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. I have used React and Typescript to complete this challenge. To be precise, I have used useContext and useReducer to maintain the global state of application.
You can preview the completed project here.
The goal of this challenge was to create a web application that allows users to search for countries using the REST Countries API and view detailed information about each country. Additionally, the application should have a color theme switcher that allows users to toggle between light and dark themes.
- Search for countries by name or region
- View detailed information about a selected country
- Filter countries by region
- Toggle between light and dark themes
The project uses the following technologies:
- React
- Typescript
- Tailwind
Desktop Home Page Preview
Mobile Home Page Preview
Desktop Detail Page Preview
Mobile Detail Page Preview
This project is licensed under the MIT License.
If you have any feedback or suggestions, please feel free to reach out to me at iamsomraj@gmail.com.