rest-countries-api Tailwind Templates

Rest Countries Api

Made with NextJS and Tailwind-CSS, with the integration of REST Countries API to pull and show country data.

Frontend Mentor - REST Countries API with color theme switcher solution

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.

Table of contents

Overview

The challenge

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)

My process

Built with

  • Semantic HTML5 markup
  • Tailwind CSS
  • CSS Grid
  • Mobile-first workflow
  • React - JS library
  • Next.js - React framework

What I learned

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.

Continued development

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.

Useful resources

Author

Top categories

Loading Svelte Themes