Skip to content

Challenge is to integrate with the REST Countries API to pull country data and display it like in the designs.

Notifications You must be signed in to change notification settings

kremenovic/rest-countries-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

In this project I learned how to use React Router and other React Hooks.

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

Links

Built with

  • Semantic HTML5 markup
  • SCSS
  • Flexbox
  • React - JS library

What I learned

I learned how to use React Router Hook and what's the purpose of useCallback hook.

Useful resources

  • SASS Guidlines - This helped me to learn SASS file structuring, mixins etc.

Installation

npm install

This command installs a package and any packages that it depends on.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Live Demo

Click here to see live demo

About

Challenge is to integrate with the REST Countries API to pull country data and display it like in the designs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published