Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

Responsive planet website

react, typescript, sass/scss
Hervé•80
@HerveDelaunay
A solution to the Planets fact site challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi everyone,

Happy to submit my solution to this challenge.

You'll notice that the reponsive part of the website isn't quite on point yet. As it was my first time working with Figma designs I got trap in the pixel perfect mindset and abused of the position: absolute property. Tried to fix that later when I was facing responsive issues. I didn't re-code everything but I won't make the same mistake in my future projects.

Main issue here is that when you click on the wikipedia link you get redirected to wikipedia, but when you go back to the planet website nothing displays. It looks like the state is gone. I think it is either a react-router issue or a useEffect one. What do you think ?

In addition, when you try to browse the website with an url of such form "http://astro-test-v2.surge.sh/planet name"nothing matchs the route. I think here is definitely a router mistake here.

Thanks in advance for feedbacks

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 Hervé'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