Newer
Older
import { Inter } from 'next/font/google'
import './globals.css'

Yusuf Akgül
committed
import { ThemeProvider } from '@/components/ui/theme-provider'
import Providers from '@/lib/react-query/provider'
const inter = Inter({ subsets: ['latin'] })
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
title: {
default: siteConfig.name,
template: `%s | ${siteConfig.name}`,
},
description: siteConfig.description,
keywords: [
"Next.js",
"React",
"Tailwind CSS",
"Server Components",
"Radix UI",
"TypeScript",
"ESLint",
"Prisma ORM",
"PostgreSQL",
"Vercel",
"Jest",
"IGDB",
],
authors: [
{
name: "Yusuf Akgül",
},
{
name: "Caner Ilaslan",
},
{
name: "David Jakszta",
},
{
name: "Omar Kasbah",
},
{
name: "Serdar Dorak",
},
{
name: "Valeria Luft",
},
],
creator: "The Golden Order Studio",
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "white" },
{ media: "(prefers-color-scheme: dark)", color: "black" },
],
metadataBase: new URL(siteConfig.url),
alternates: {
canonical: '/',
languages: {
'en-US': '/en-US',
},
},
openGraph: {
type: "website",
locale: "en_US",
url: siteConfig.url,
title: siteConfig.name,
description: siteConfig.description,
siteName: siteConfig.name,
},
twitter: {
card: "summary_large_image",
title: siteConfig.name,
description: siteConfig.description,
images: [`${siteConfig.url}/og.jpg`],
creator: "@shadcn",
},
icons: {
icon: "/favicon.ico",
shortcut: "/favicon-16x16.png",
apple: "/apple-touch-icon.png",
},
}
export default function RootLayout({

Yusuf Akgül
committed
children,

Yusuf Akgül
committed
children: React.ReactNode

Yusuf Akgül
committed
return (
<html lang="en" suppressHydrationWarning>
<head />
<body className={inter.className}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<Providers>
{children}
<Toaster />
</Providers>
</ThemeProvider>
</body>
</html>
)