Skip to content

mehdilight/fm-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

Links

My process

Built with

  • Tailwind CSS for styling
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vue 3 - JS library
  • Vite - Build tool

Notes

Some of the things we can improve in this project is caching the response. in order to reduce API requests. also the error handling, in case if the request fails we should show to the users a meaningful alert.

Useful resources

  • Vue Router - this library used to handle client side routing.
  • VueUse - This is an amazing collection composable utilities, I used it to handle dark mode toggle.

Author