Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

REST Countries API | Vue.js 3, SASS

sass/scss, vue, bem
Eduardo•910
@KTrick01
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


Hi, In this challenge I learned a lot about working with async data, and my conclusion is that dealing with them gives you a headache some times! But at least it was fun. There is a thing that I wasn't able to do, in the original design the buttons of the border countries have their full common names, but the API just gives you their abreviations, so i just left them that way, why? Because the only way that i can think for displaying their full names is that i have to fetch again the api using the abreviations of their names, and i think that is a waste of resources and unnecessarily complicated for just that purpose, so if anyone knows a better/simpler way of doing it please share your knowledge with this peasant!

(There's no more free advanced challenges so im sad now, when i really feel that im learning is when i do these challenges 😥)

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 Eduardo'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
Frontend Mentor logo

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

Frontend Mentor

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

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