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

Space Tourism using NextJS 13 + React + Tailwind

Pablo 550

@ackDeckard

Desktop design screenshot for the Space tourism multi-page website coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


My first Intermediate Project! I've decided to jump directly to intermediate ones to better sharpen my skills.

I've done it using NextJS 13 and the updated appDir features. It took me a long time to figure out how to do it, especially the variable background images if you add the transparent header in the RootLayout - as I would have to attack my <body> tag to change it. I resorted to using usePathname and checking which path I'm currently in. What's a better way to achieve this? The use cases using Next13 are scarce so I doing it the way it works (and probably not the best way).

To change what's shown on the page I relied on the useState variable.

onClick -> setChange(index) -> update the page.

The fonts are configured using CSS variables + Tailwind, for example:

const barlow = Barlow({ subsets: ["latin"], weight: ["400"], variable: "--barlow", });

and then sending it to <body> via ${barlow.variable}

Overall, I'm happy with how it is right now! If you have suggestions or feedback, please do it.

Changing from show ip ospf 1 to :wq is not quite easy but surely it will be a worthwhile adventure :D

Community feedback

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