First task is to make the navbar on the top of the site. The logo on the left should have a link that leads you to timetable page (or welcome page if user is not logged in.) On the right we should display either the user's name, or the login/register buttons if they're not logged in.
This should be simple enough. Just fetch the current session via NextAuth and use it to decide what components to render.
Try to make use of the root layout (layout.tsx) to not interfere with other code.
Let's get this underway.
First task is to make the navbar on the top of the site. The logo on the left should have a link that leads you to timetable page (or welcome page if user is not logged in.) On the right we should display either the user's name, or the login/register buttons if they're not logged in.
This should be simple enough. Just fetch the current session via NextAuth and use it to decide what components to render.
Try to make use of the root layout (
layout.tsx
) to not interfere with other code.