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

Planets fact. Responsive site with NextJS and Tailwind

next, tailwind-css
Guillermo Dominguez•440
@memominguez
A solution to the Planets fact site 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?
  • Each planet page is rendered dynamically from the data.json, through a reusable component.
  • Extras added to mobile screen menu:
    • The active tab is noticed
    • The menu is hidden automatically, 500 ms after a selection is made. For better user experience
What challenges did you encounter, and how did you overcome them?
  • How to retrieve data of one particular planet, from the data.json file
  • The design requires three significantly different layouts, so had to construct three separate layouts. And just one of them is rendered, depending on screen size.
  • Retrieving the information requires the useEffect and useCallback hooks. So information availability must be checked prior to rendering (conditional rendering).
What specific areas of your project would you like help with?

Any feedback would be appreciated.

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 Guillermo Dominguez'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