Skip to content

A challenge project, featuring a list of fetched countries with the ability to filter them by region or search for a specific country. The project also includes a light/dark color theme switcher.

Notifications You must be signed in to change notification settings

Rock-n-Roll-CRC/REST-Countries-API-with-color-theme-switcher

Repository files navigation

Netlify Status

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

Description

Built with

  • Semantic HTML5 markup
  • SCSS Modules
  • TypeScript
  • React - JS library
  • React Router - Routing library
  • Suspense API
  • Context API
  • Intersection Observer API
  • Mobile-first workflow

Features

  • Color theme switcher (with local storage support)
  • Infinite scroll (for homepage country card list)
  • Modern React Router with data routes (for loaders to fetch data with the "render-as-you-fetch" approach)
  • Search parameters (for storing searched country and region to make the pages bookmarkable)
  • Code splitting (with React.lazy() and Suspense API)

Author

About

A challenge project, featuring a list of fetched countries with the ability to filter them by region or search for a specific country. The project also includes a light/dark color theme switcher.

Topics

Resources

Stars

Watchers

Forks