Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
Request path contains unescaped characters
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

Rest Countries API

Elias M.• 420

@Emazs

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


Hello everyone 👋, this is the first time I tried to make a page with routes and theme change, I am satisfied with the final result. I would appreciate any feedback you can give me, thanks.

Community feedback

Pedro Alberto• 0

@Edlavio

Posted

Congrats!

I've found an issue when change the theme and go to another page the theme back to light theme.

You can improve the Dark mode by using Local Storage to save the user theme when reload the page will get the theme in Local Storage or set the default theme (light).

This is my sugestion!

2

Elias M.• 420

@Emazs

Posted

Hi pedro, thank you for taking the time to review the page, I took your comment and applied the localStorage in the page, I was also planning to create it with a global state, but your comment came in handy, thanks. @Edlavio

0
Pedro Alberto• 0

@Edlavio

Posted

@Emazs Yes i forget to mention to use Context API to manage the state

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