Skip to content

AlbertSigsbert/Countries

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

Welcome! 👋

Frontend Mentor challenges help you improve your coding skills by building realistic projects.

To do this challenge, you need a good understanding of JavaScript.

This is my Solution. 🏆🏆🏆

The challenge

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

You can use any JavaScript framework/library on the front-end such as React or Vue. You also have complete control over which packages you use to do things like make HTTP requests or style your project.

Your 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)

Links

My Process

I am planning to write a blog post/video about it soon!!!

Built with

  • HTML5
  • CSS (Grid, flexbox and custom properties)
  • Vanilla JS (local storage, Arrow functions, Promises etc)
  • Axios HTTP Library

What I learned

  • Performing JS logic in JS template literals
  • Custom routing
  • CSS tricks like multiple class selectors

Continued Development

The next time I want to implement this project by using

  • React styled components, custom hooks and routers

Useful resources

Author

About

Display Countries data using REST Countries API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published