-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlayout.tsx
More file actions
63 lines (61 loc) · 1.91 KB
/
layout.tsx
File metadata and controls
63 lines (61 loc) · 1.91 KB
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
import type { Metadata } from 'next';
import './globals.css';
import { ThemeProvider } from '@/providers/ThemeProvider';
import { QueryProvider } from '@/providers/QueryProvider';
import Header from '@/components/layout/Header';
import { Toaster } from '@/components/ui/toaster';
export const metadata: Metadata = {
title: 'CPython Memory Insights',
description: 'Analyze and compare CPython memory benchmark runs',
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossOrigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<script
defer
data-domain="memory.python.org"
src="https://analytics.python.org/js/script.file-downloads.hash.outbound-links.js"
></script>
</head>
<body className="font-body antialiased min-h-screen flex flex-col">
<QueryProvider>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<Header />
<main className="flex-grow container mx-auto px-4 py-8">
{children}
</main>
<Toaster />
</ThemeProvider>
</QueryProvider>
</body>
</html>
);
}