neroshitron/app/layout.tsx

36 lines
950 B
TypeScript
Raw Normal View History

2024-05-24 17:57:03 -04:00
import { GeistSans } from "geist/font/sans";
import "./globals.css";
import NavigationBar from "@/components/NavigationBar";
2024-05-24 17:57:03 -04:00
const defaultUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
export const metadata = {
metadataBase: new URL(defaultUrl),
title: "Next.js and Supabase Starter Kit",
description: "The fastest way to build apps with Next.js and Supabase",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={GeistSans.className}>
<body className="bg-background text-foreground">
2024-05-24 19:03:20 -04:00
<div className="w-full">
<NavigationBar/>
2024-05-24 19:03:20 -04:00
</div>
2024-05-24 17:57:03 -04:00
<main className="min-h-screen flex flex-col items-center">
<div className="flex-1 w-full flex flex-col gap-20 items-center animate-in">
{children}
</div>
2024-05-24 17:57:03 -04:00
</main>
</body>
</html>
);
}