coderSuresh / rest-country-search

Search country and view details

Home Page:https://search-country-search.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Tailwindcss
  • Mobile-first workflow
  • Vanilla JS

What I learned

  • How to use Tailwindcss
    • use Tailwindcss with vanilla JS
    • use extended colors in Tailwindcss
    • use Tailwindcss with custom CSS
  • JavaScript Set
    • .add()
    • .clear()
    • .has()
  • JavaScript Array
    • .filter()
    • .map()
    • .join()
    • .includes()
  • JavaScript String
    • .toLowerCase()
    • .toUpperCase()
    • .includes()
    • .replace()
    • .split()
    • .slice()
    • .trim()
  • JavaScript fetch API
  • JavaScript async/await
  • Working with JSON data
  • JavaScript object
  • JavaScript import/export
  • Working with localStorage
    • .setItem()
    • .getItem()
  • Loading in batches to improve performance
  • Toggling dark mode using CSS variables and JavaScript
  • How to use Netlify to deploy a website's frontend

Author

About

Search country and view details

https://search-country-search.netlify.app/


Languages

Language:CSS 44.7%Language:JavaScript 36.3%Language:HTML 19.1%