-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a sub layout to the /dashboard route and sets up a basic side nav
- Loading branch information
1 parent
9dfef30
commit 23238f9
Showing
2 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { Metadata } from "next"; | ||
import Link from "next/link"; | ||
|
||
|
||
export const metadata: Metadata = { | ||
title: "Create Next App", | ||
description: "Generated by create next app", | ||
}; | ||
|
||
export default async function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
|
||
return ( | ||
<div className="grid grid-cols-[300px_1fr] min-h-screen gap-1"> | ||
<nav className="bg-violet-500 text-white"> | ||
<ul className="flex flex-col gap-6 mt-5"> | ||
<li><Link className="block p-3 w-full h-full hover:bg-violet-600" href="/dashboard">Dashboard</Link></li> | ||
<li><Link className="block p-3 w-full h-full hover:bg-violet-600" href="/dashboard/skills">Skills list</Link></li> | ||
<li><Link className="block p-3 w-full h-full hover:bg-violet-600" href="/dashboard/history">Career history</Link></li> | ||
<li><Link className="block p-3 w-full h-full hover:bg-violet-600" href="/dashboard/settings">Settings</Link></li> | ||
</ul> | ||
</nav> | ||
<div className="flex flex-col p-6 pt-5"> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters