Routing in nextjs

Honestly no I don’t understand.

You created a folder contact, and inside that you created a file page.tsx; that’s how you define a route in nextjs. Analogously, you need to create a folder website-design next to the contact folder. Move your file website-design.tsx into that folder, and rename it to page.tsx. So you end up with

app\contact\page.tsx
app\website-design\page.tsx

(assuming windows)

1 Like

I corrected some import errors and now it works, the problem is that the background is white and I would like to recover the original black background.

So I tried to directly import the navbar into the layout.tsx file and it doesn’t work, I don’t understand why?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.