-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlayout.tsx
32 lines (29 loc) · 900 Bytes
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import {Header} from "@/app/components/Header";
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Next.js With Lepton AI",
description: "A Next.js starter with the Lepton LLM API",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className + " bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100"}>
<main className="min-h-screen flex flex-col items-center">
<div className="flex-1 w-full flex flex-col gap-20 items-center">
<Header/>
<div className="flex-1 flex flex-col gap-20 w-full px-3">
{children}
</div>
</div>
</main>
</body>
</html>
);
}