Skip to content

A web application that displays a list of all the countries in the world with some details.

Notifications You must be signed in to change notification settings

IEdiong/ng-rest-countries

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

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

desktop ligth mode screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Desktop-first workflow
  • TailwindCSS - For styles
  • RxJs - For state management and data fetching
  • Angular - Frontend framework

What I learned

I learnt a lot of things about RxJs and Angular.

Useful resources

  • Filling a box with an image - This allowed me to make the country flag fill the parent div. It enables consistent sizing of images despite the variations in the actual sizes of the different images. I really liked this pattern and will use it going forward.

Author

Acknowledgments

Credits to Deborah Kurata for her wonderful course RxJS in Angular: Reactive Development.

About

A web application that displays a list of all the countries in the world with some details.

Resources

Stars

Watchers

Forks