move navbar to global layout

This commit is contained in:
sirin 2024-08-29 10:22:40 +07:00
parent 25c5c08df8
commit 6cec1f36bc
2 changed files with 7 additions and 7 deletions

View File

@ -1,11 +1,7 @@
"use client";
import React from "react";
import { UnsignedNav } from "@/components/navigationBar/unSigned";
export default function Page() {
return (
<div>
<UnsignedNav />
</div>
);
return <div>hello</div>;
}

View File

@ -3,6 +3,8 @@ import { Montserrat } from "next/font/google";
import { ThemeProvider } from "@/components/theme-provider";
import "@/app/globals.css";
import { UnsignedNav } from "@/components/navigationBar/unSigned";
const montserrat = Montserrat({
subsets: ["latin"],
display: "swap",
@ -23,10 +25,12 @@ interface RootLayoutProps {
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en">
<head />
<body className={`${montserrat.className}`}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<div className="relative flex min-h-screen flex-col">
<div className="flex-1">{children}</div>
<UnsignedNav />
<div className="flex-1 bg-background">{children}</div>
</div>
</ThemeProvider>
</body>