forked from nextauthjs/next-auth-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
29 lines (26 loc) · 855 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
import "./globals.css"
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import Footer from "@/components/footer"
import Header from "@/components/header"
const inter = Inter({ subsets: ["latin"] })
export const metadata: Metadata = {
title: "NextAuth.js Example",
description:
"This is an example site to demonstrate how to use NextAuth.js for authentication",
}
export default function RootLayout({ children }: React.PropsWithChildren) {
return (
<html lang="en">
<body className={inter.className}>
<div className="flex flex-col justify-between w-full h-full min-h-screen">
<Header />
<main className="flex-auto w-full max-w-3xl px-4 py-4 mx-auto sm:px-6 md:py-6">
{children}
</main>
<Footer />
</div>
</body>
</html>
)
}