Skip to content
🔥 Black Friday Sale: Save 30% on Pro Yearly with code BF2025. Upgrade now 🔥
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

Responsive Paginated Countries API App built with SSR and prefetching!

svelte, vite, typescript
Shawn Lee•600
@OGShawnLee
A solution to the REST Countries API with color theme switcher challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hey Shawn here again. This one took a good chunk of coding. Svelte, Sveltekit with shadow endpoints and TypeScript made the dev experience much better. I implemented pagination so that all the 250 countries are not rendered at once and impact the performance, I also tested it with Vitest to make sure it works. The filtering is chained so that you can filter by country name and region at the same time and the results are still paginated! The SSR and prefetching allows the page to load everything much faster for a near app feel.

I wonder if I did the accessibilty well; there is always something I missed or did wrong :'( Hope you guys can tell me what I could improve, especially the a11y.

Any feedback would help a ton. Have a great a day.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Shawn Lee's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License