Skip to content

Latest commit

 

History

History
93 lines (70 loc) · 2.58 KB

File metadata and controls

93 lines (70 loc) · 2.58 KB

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)

Screenshot

  • Country Filter:
Dark Mode Light Mode
  • Country Details:
Dark Mode Light Mode

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Tailwind - CSS framework
  • React - JS library

What I learned

  • Put React.js knowledge to practice
  • Basic ESLint and PostCSS configuration
  • Tailwind CSS
  • Deployment to Vercel
  • Fetching data from an API
  • Routing with React Router
  • Manual pagination and infinite scrolling
  • Custom hooks

Useful resources

  • Tailwind Docs - Served as a nice reference to search for specific classes and how to switch between dark and light mode correctly.

Author

  • Frontend Mentor - @GPMS