Skip to content

A React application that utilizes the REST Countries API to display information about countries around the world. Users can explore details such as country name, capital, population, and more. The project also integrates Mapbox GL for visualizing geographical data, allowing users to interactively view the location of each country on the map

Notifications You must be signed in to change notification settings

mohamedhesham221/REST-countries-API-with-color-theme-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rest Countries API Project with color theme switcher and geographical map

This project is a React application that provides information about countries worldwide using the REST Countries API. Users can explore various details about each country, including its name, capital, population, languages, and more. Additionally, the project integrates Mapbox GL for visualizing the geographical location of each country on an interactive map.

This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help me improve my 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
  • See country location on google map. (additional)
  • Toggle the color scheme between light and dark mode (optional)

Features

  • Display detailed information about countries, such as name, capital, population, languages, and more.
  • Interactive map visualization using Mapbox GL to show the location of each country.
  • Responsive design to ensure a seamless experience across different devices.

Screenshot

screencapture screencapture1

Links

My process

Built with

What I learned

I learned how to integrated maps and fontawesome icons in react app To see how you can add code snippets, see below:

onst map = new mapboxgl.Map({
      container: 'map',
      style: 'mapbox://styles/mapbox/streets-v12',
      center: [location.state.latlng[1], location.state.latlng[0]],
      zoom: 7,
    });
    const marker = new mapboxgl.Marker().setLngLat([location.state.latlng[1], location.state.latlng[0]]).addTo(map)

Useful resources

Author

Installation

  • clone the repo git clone https://github.com/mohamedhesham221/REST-countries-API-with-color-theme-switcher.
  • install dependencies npm install.
  • start project with npm start.
  • it can be viewed in the browser at http://localhost:3000.
  • build the app for production to the build folder.\ npm run build.

About

A React application that utilizes the REST Countries API to display information about countries around the world. Users can explore details such as country name, capital, population, and more. The project also integrates Mapbox GL for visualizing geographical data, allowing users to interactively view the location of each country on the map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published