Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Made using React and React router

react, react-router
Nikesh W•170
@randomduckduck
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


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

Implemented using React router - no page reloads for each link click! Thought would take lots of time, but was a breeze actually.

Also changing css variables using js was new and I feel the possiblities are endless with css-variables and js combo - We can change anything, apply styles to many (even ALL ) elements with just a click. Its cool.

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

flex box related issues. I was trying to make site responsive without using media queries, and spent a lot of time. But media query is made for a reason, and finally used it. took less than 10 mins to make it responsive actually. Right tool for the right job they say. Lesson learned.

Also in previous projects, for changing the border color of inputs when they are in focus I used to change accent-color property. But because this project requires both light and dark view, the limitations of that approach came forth. Then I got to know that there is a property called outline which handles that. Good to know!

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

No help required for now. I believe all things are done. Thanks

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 Nikesh W'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