Skip to content

Commit 800e435

Browse files
committed
Add navbar
1 parent a604d7b commit 800e435

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

app/layout.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export default function RootLayout({
2727
<body className="antialiased tracking-tight">
2828
<div className="min-h-screen flex flex-col justify-between pt-0 md:pt-8 p-8 dark:bg-zinc-950 bg-white text-gray-900 dark:text-zinc-200">
2929
<main className="max-w-[60ch] mx-auto w-full space-y-6">
30+
<Navbar />
31+
3032
{children}
3133
</main>
3234
<Footer />
@@ -36,6 +38,25 @@ export default function RootLayout({
3638
</html>
3739
);
3840
}
41+
function Navbar() {
42+
return (
43+
<nav>
44+
<div className=" gap-x-2 items-center">
45+
<span>
46+
~ / <a href="/">home</a> /{' '}
47+
<a
48+
href="https://github.com/erenworld"
49+
target="_blank"
50+
rel="noopener noreferrer"
51+
>
52+
github
53+
</a>{' '}
54+
/ <a href="mailto:erenkad@proton.me">email</a>
55+
</span>
56+
</div>
57+
</nav>
58+
);
59+
}
3960

4061
function Footer() {
4162
const links = [

0 commit comments

Comments
 (0)