From 2d69597801b1a73dbd8ef37b99dbbb1922cbd0a2 Mon Sep 17 00:00:00 2001 From: Juiceee Date: Tue, 24 Sep 2024 17:25:28 +0200 Subject: [PATCH] add nav in layout --- app/layout.tsx | 22 +++++++++++++--------- app/page.tsx | 1 - 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 3314e47..3c12899 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,3 +1,4 @@ +import Nav from './components/navbar'; import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; @@ -5,18 +6,21 @@ import "./globals.css"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Create Next App", + description: "Generated by create next app", }; export default function RootLayout({ - children, + children, }: Readonly<{ - children: React.ReactNode; + children: React.ReactNode; }>) { - return ( - - {children} - - ); + return ( + + +