Planets fact. Responsive site with NextJS and Tailwind

Solution retrospective
- 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
- 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).
Any feedback would be appreciated.
Please log in to post a comment
Log in with GitHubCommunity 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