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

Made using React and React router

Nikesh W 170

@randomduckduck

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?

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

Community feedback

@purviporwal1812

Posted

Antarctica card is not opening (idk if it is domain specific) maybe it could happen with other cards also, you can check once. Ps. I loved the fact that countries are sorted alphabetically.

Marked as helpful

0

Nikesh W 170

@randomduckduck

Posted

@purviporwal1812 Issue due to Antarctica country not having any currency! Added undefined check. It's fixed. Thanks for checking out the solution and commenting. Happy coding!

0

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