-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathlayout.tsx
57 lines (52 loc) · 1.54 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { ThemeProvider } from "@/components/theme-provider";
import "./globals.css";
import { Inter } from "next/font/google";
import ReactQueryProvider from "@/providers/react-query";
import { Toaster } from "@/components/ui/toaster";
import Script from "next/script";
import { cn } from "@/lib/utils";
import { Column } from "@/components/ui/column";
import Footer from "@/components/footer";
import { Metadata } from "next";
const inter = Inter({ subsets: ["latin"] });
const title = "JSON Data AI";
const description = "Get JSON data about anything depending on your prompt";
export const metadata: Metadata = {
metadataBase: new URL("https://jsondataai.com"),
title,
description,
openGraph: {
title,
description,
locale: "en_US",
type: "website",
},
twitter: {
card: "summary_large_image",
title,
description,
},
};
export default async function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" suppressHydrationWarning>
<body className={cn("selection:bg-secondary", inter.className)}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<ReactQueryProvider>
<Toaster />
<Column className="w-full p-4 pb-0 items-center min-h-screen">
<div className="max-w-7xl w-full mx-auto flex-1 flex flex-col items-center">
{children}
</div>
<Footer />
</Column>
</ReactQueryProvider>
</ThemeProvider>
</body>
</html>
);
}