diff --git a/app/(root)/layout.tsx b/app/(root)/layout.tsx index 76a8669..99a74fe 100644 --- a/app/(root)/layout.tsx +++ b/app/(root)/layout.tsx @@ -1,5 +1,5 @@ import type {Metadata} from "next"; -import "./globals.css"; +import "../globals.css"; import Nav from "@/components/Navbar/Nav"; import Footer from "@/components/Home/Footer/Footer"; diff --git a/app/contact/layout.tsx b/app/contact/layout.tsx index b274b97..99a74fe 100644 --- a/app/contact/layout.tsx +++ b/app/contact/layout.tsx @@ -1,5 +1,5 @@ import type {Metadata} from "next"; -import "../(root)/globals.css"; +import "../globals.css"; import Nav from "@/components/Navbar/Nav"; import Footer from "@/components/Home/Footer/Footer"; diff --git a/app/(root)/globals.css b/app/globals.css similarity index 100% rename from app/(root)/globals.css rename to app/globals.css diff --git a/app/legal/layout.tsx b/app/legal/layout.tsx index b274b97..99a74fe 100644 --- a/app/legal/layout.tsx +++ b/app/legal/layout.tsx @@ -1,5 +1,5 @@ import type {Metadata} from "next"; -import "../(root)/globals.css"; +import "../globals.css"; import Nav from "@/components/Navbar/Nav"; import Footer from "@/components/Home/Footer/Footer"; diff --git a/app/services/layout.tsx b/app/services/layout.tsx new file mode 100644 index 0000000..99a74fe --- /dev/null +++ b/app/services/layout.tsx @@ -0,0 +1,35 @@ +import type {Metadata} from "next"; +import "../globals.css"; + +import Nav from "@/components/Navbar/Nav"; +import Footer from "@/components/Home/Footer/Footer"; +import {ThemeProvider} from "@/components/provider/ThemeProvider"; +import React from "react"; +import {cookies} from "next/headers"; + +export const metadata: Metadata = { + title: "Rhein Software", + description: "Rhein Software Development", +}; + +export default async function RootLayout({ + children, + }: Readonly<{ + children: React.ReactNode; +}>) { + const cookieStore = await cookies(); + const theme = cookieStore.get("theme")?.value === "dark" ? "dark" : "light"; + + return ( + + + + +