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
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive & Dynamic Country info website

@ChristianKaycee

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


What are you most proud of, and what would you do differently next time?

I learnt how to fetch a bunch of data dynamically from a json file.

Took me about 6-8 hours

What challenges did you encounter, and how did you overcome them?

Had some difficulties creating the filter function.

What specific areas of your project would you like help with?

I’d like to know how to save the dark mode on the page even after reload.

Community feedback

@TedJenkler

Posted

Hi Christian, Nice submission! I really like the grid layout and how you made it responsive—it’s well-implemented and visually appealing.

I did find an issue when clicking the flags; it seems like there might be a missing checks for conditional rendering. Using optional chaining (.?) could help handle cases where data might be undefined or null.

Additionally, I’d recommend adding a custom select component and fine-tuning the CSS details to make your project really stand out. These improvements would enhance the overall user experience and polish the look of your project.

*You need to use localstorage.get() and localstorage.set() to save the theme state

Overall, great job!

Marked as helpful

1

@ChristianKaycee

Posted

@TedJenkler Alright, thanks. I’ll work on that later.

1

@TedJenkler

Posted

@ChristianKaycee No problem! I would appreciate a marked helpful vote if you found the information valuable. Anyway, have fun coding! :)

0

@ChristianKaycee

Posted

@TedJenkler No problem, I’d also appreciate if you could take a look at the site again.

1

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