Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 2.2 KB

File metadata and controls

65 lines (46 loc) · 2.2 KB

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