Add pages and basic navbar

This commit is contained in:
Hydroxycarbamide 2022-11-21 10:47:12 +01:00
parent 067247298b
commit 2a566eee44
3 changed files with 14 additions and 2 deletions

0
app/contact/page.tsx Normal file
View file

View file

@ -1,3 +1,5 @@
import Link from "next/link"
export default function RootLayout({ export default function RootLayout({
children children
}: { }: {
@ -6,7 +8,17 @@ export default function RootLayout({
return ( return (
<html> <html>
<head /> <head />
<body>{children}</body> <body>
<nav>
<Link href="/">
Home
</Link>
<Link href="/contact">
Contact Me
</Link>
</nav>
{children}
</body>
</html> </html>
) )
} }

View file

@ -3,7 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev --turbo",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint" "lint": "next lint"