-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathlayout.tsx
81 lines (77 loc) · 1.92 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import styles from './layout.module.css'
import '@styles/global.css'
import { GeistSans } from 'geist/font/sans';
import { GeistMono } from 'geist/font/mono';
import { Analytics } from '@vercel/analytics/react'
import { ThemeProvider } from 'next-themes'
import { Viewport } from 'next'
export const dynamic = 'force-static'
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en" suppressHydrationWarning className={`${GeistSans.variable} ${GeistMono.variable}`}>
<body>
<ThemeProvider>
<div className={styles.wrapper}>
<main className={styles.main}>{children}</main>
</div>
<Analytics />
</ThemeProvider>
{/* {process.env.NODE_ENV === 'development' ? <VercelToolbar /> : null} */}
</body>
</html>
)
}
export const metadata = {
metadataBase: new URL('https://maxleiter.com'),
title: {
template: '%s | Max Leiter',
default: 'Max Leiter',
},
description: 'A website by Max Leiter.',
openGraph: {
title: 'Max Leiter',
url: 'https://maxleiter.com',
siteName: "Max Leiter's website",
locale: 'en_US',
type: 'website',
images: [
{
url: `https://maxleiter.com/opengraph-image`,
width: 1200,
height: 630,
alt: "Max Leiter's site",
},
],
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
},
},
twitter: {
title: 'Max Leiter',
card: 'summary_large_image',
creator: '@max_leiter',
},
icons: {
shortcut: 'https://maxleiter.com/favicons/favicon.ico',
},
alternates: {
types: {
'application/rss+xml': 'https://maxleiter.com/feed.xml',
},
},
}
export const viewport: Viewport = {
themeColor: [
{ media: '(prefers-color-scheme: light)', color: '#f5f5f5' },
{ media: '(prefers-color-scheme: dark)', color: '#000' },
],
}