Skip to content

mail2ifham/rest-countries-api-with-color-theme-switcher-master

Repository files navigation

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • React - JS library
  • Zustand for state management
  • React Router for navigation

What I learned

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

Continued development

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

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published