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.
- See all countries from the API on the homepage
- Search for a country using an
inputfield - 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)
Features
- Search/filter countries with pagination
Accessibility
- Responsive accross different screen sizes
- Added custom indicator when interactive elements focused
- HTML5 – Semantic structure
- React – Ease of use, great eco-system
- TailwindCSS – Utility-first CSS for fast development
- TypeScript - Interactivity and application logic
- Vite - Fast development server, production build and easy configuration.
- Mobile-first workflow for better performance on smaller devices
- Accessibility guided by ARIA Authoring Practices Guide (APG).
Install the following:
- Git (latest version)
- Node.js (latest LTS recommended)
- pnpm (latest version)
git clone https://github.com/haquanq-frontendmentor/rest-countries-api.git
cd rest-countries-api
pnpm install
pnpm dev
Deployed to Github Pages via Github Action.
