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 (optional)
- Solution URL: Frontend Mentor
- Live Site URL: Hosted on Vercel
- Semantic HTML5 markup
- Tailwind CSS
- CSS Grid
- Mobile-first workflow
- React - JS library
- Next.js - React framework
I learned how to use Tailwind CSS, using it in a project for the first time. It is quite easy. The only downside I can think of is it could clutter the classname of an element at times. I also learned how to implement Dark Mode toggling by tapping into user's preferences first then providing an option to switch between light and dark themes.
I would like to focus more on server-side-rendering projects, integrating APIs onto frontend and implement more tools like Redux to handle global web application states.
- Tailwind UI Documentation - Helped me setup Tailwind into the project and get me up to speed on how to use.
- Custom 404 Page by Vercel - I found this useful for setting up a custom 404 page.
- Lodash library - Tons of useful utility functions to work with strings, arrays and objects.