viniciuscosta89 / rest-countries-api-vite

Frontend Mentor Challenge

Home Page:https://rest-countries-api-vite-viniciuscosta89.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Light mode screenshot

Links

My process

Built with

What I learned

  • A better folders architecture with React Hooks, Context and Types.
  • Theming with Styled Components.
  • Cache with localStorage.
  • PNPM as my package manager.
  • Conventional Commits.

Continued development

I want to use Frame Motion for some page transitions and implement tests with Cypress.

Useful resources

Author