Frontend Mentor | REST Countries API With Color Theme Switcher
Design comparison
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 GitHubJoin 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