Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found

Submitted

Frontend Mentor | REST Countries API With Color Theme Switcher

Umair Shah 210

@nicefellow1234

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


Challenge Highlights

Tailwind CSS Written entirely with Tailwind CSS, without a single line of custom CSS code.

Next.js 14 with TypeScript Utilized Next.js 14, enhanced with TypeScript for robust typing and improved code quality. App Router was used for efficient navigation between the homepage and country detail page.

Dynamic Filtration Enabled simultaneous filtering by name and region, allowing both filters to be used together for refined search results.

Theme Switcher Persistence (Bonus Functionality) Integrated localStorage to store the user's theme preference, ensuring the selected theme persists even after site reloads.

Pagination (Bonus Functionality) Implemented pagination to display a specific number of records per page (16 records). This optimizes content rendering and user experience.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord