-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
68 lines (63 loc) · 1.75 KB
/
Copy pathlayout.tsx
File metadata and controls
68 lines (63 loc) · 1.75 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
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { SiteHeader } from "@/components/layout/site-header";
import { MotionProvider } from "@/components/providers/motion-provider";
import { ThemeProvider } from "@/components/providers/theme-provider";
import { env } from "@/lib/env";
import "@/styles/globals.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
const siteName = "Hem Gabhawala — Cybersecurity Portfolio";
const description =
"Cybersecurity portfolio of Hem Gabhawala: projects, certifications, and experience.";
/**
* Metadata scaffold (Phase 1C): structure is final; copy and OG images are
* finalized with real content in later phases. metadataBase falls back to
* localhost until NEXT_PUBLIC_SITE_URL is set for the deployed origin.
*/
export const metadata: Metadata = {
metadataBase: new URL(env.NEXT_PUBLIC_SITE_URL ?? "http://localhost:3000"),
title: {
default: siteName,
template: "%s — Hem Gabhawala",
},
description,
openGraph: {
type: "website",
url: "/",
siteName,
title: siteName,
description,
},
twitter: {
card: "summary_large_image",
title: siteName,
description,
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<ThemeProvider>
<MotionProvider>
<SiteHeader />
{children}
</MotionProvider>
</ThemeProvider>
</body>
</html>
);
}