switched over to nextjs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import type { Metadata } from "next";
|
||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { cn } from "@/lib/utils";
|
||||
import Sidebar from "@/components/sidebar";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"], variable: "--font-sans" });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Aperture",
|
||||
description: "A homelab managment and blogging platform",
|
||||
};
|
||||
|
||||
function Providers({ children }: { children: React.ReactNode }) {
|
||||
return <TooltipProvider>{children}</TooltipProvider>;
|
||||
}
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={cn("h-full", "antialiased", "font-sans", inter.variable)}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">
|
||||
<Providers>
|
||||
<Sidebar>{children}</Sidebar>
|
||||
</Providers>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user