Design comparison
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
- @EdlavioPosted about 1 year ago
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@EmazsPosted about 1 year agoHi 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@EdlavioPosted about 1 year ago@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 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