/REST-Countries-API-App

This is my solution to the REST Countries API with color theme switcher challenge on Frontend Mentor

Primary LanguageVue

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)

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Desktop-first workflow
  • Vue - Frontend JS library
  • Pinia - Vue State Management
  • REST Countries - REST Countries API for fetching countries data

Continued development

  • Exploring more about Pinia state management
  • Figuring out how to manage local/session storage
  • Optimizing code performance

Useful resources

  • Complete flexbox guide - Help me building the responsive layout with flexbox without using much media queries

Author

vue-app

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.