Submitted 5 months ago
Planets fact. Responsive site with NextJS and Tailwind
@memominguez
Design comparison
SolutionDesign
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
- 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.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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