Skip to content

jhnsml/Rest-Countries-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - REST Countries API with color theme switcher

Design preview for the REST Countries API with color theme switcher coding challenge

Challenge

The challenge was to integrate with the REST Countries API to pull country data and display it like in the designs.

Source

Frontend Mentor

You can find this challenge on Frontend Mentor.

Version 1.0

The following are the features implemented:

  • Fetch and display all countries on the homepage.
  • Search country by name
  • 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

Version 1.1

  • Reduced the number of fetches to 1
  • Removed unwanted packages (ex: axios);
  • Refactored JS
  • Refactored CSS
  • Added Pagination