-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlayout.tsx
More file actions
72 lines (68 loc) · 2.17 KB
/
Copy pathlayout.tsx
File metadata and controls
72 lines (68 loc) · 2.17 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
64
65
66
67
68
69
70
71
72
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Header } from "@/components/layout/header";
import { Footer } from "@/components/layout/footer";
import { SkipLinks } from "@/components/ui/skip-links";
import { KeyboardNavigation } from "@/components/ui/keyboard-navigation";
import { ThemeProvider } from "@/lib/theme-context";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
display: "swap", // Better font loading performance
preload: true,
fallback: ['system-ui', 'arial'],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
display: "swap",
preload: false, // Only preload primary font
fallback: ['ui-monospace', 'monaco'],
});
export const metadata: Metadata = {
title: {
default: "CodeStorm Hub",
template: "%s | CodeStorm Hub",
},
description: "A vibrant community of open source enthusiasts, researchers, and creators. We collaborate on powerful open-source solutions.",
keywords: ["open source", "community", "collaboration", "development", "research"],
authors: [{ name: "CodeStorm Hub Team" }],
creator: "CodeStorm Hub",
openGraph: {
type: "website",
locale: "en_US",
url: "https://codestorm-hub.github.io",
title: "CodeStorm Hub",
description: "A vibrant community of open source enthusiasts, researchers, and creators.",
siteName: "CodeStorm Hub",
},
twitter: {
card: "summary_large_image",
title: "CodeStorm Hub",
description: "A vibrant community of open source enthusiasts, researchers, and creators.",
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<ThemeProvider>
<KeyboardNavigation />
<SkipLinks />
<div className="flex min-h-screen flex-col">
<Header />
<main id="main-content" className="flex-1" tabIndex={-1}>{children}</main>
<Footer />
</div>
</ThemeProvider>
</body>
</html>
);
}