forked from Lilly-Protocol/lily-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
60 lines (50 loc) · 1.41 KB
/
Copy pathlayout.tsx
File metadata and controls
60 lines (50 loc) · 1.41 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
import type { Viewport } from "next";
import { IBM_Plex_Mono, Space_Grotesk } from "next/font/google";
import { createOrganizationJsonLd, createSiteMetadata } from "@/config/site";
import './globals.css';
const spaceGrotesk = Space_Grotesk({
variable: '--font-space-grotesk',
subsets: ['latin'],
});
const ibmPlexMono = IBM_Plex_Mono({
variable: '--font-ibm-plex-mono',
subsets: ['latin'],
weight: ['400', '500'],
});
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
themeColor: "#f7f7f5",
colorScheme: "light",
};
export const metadata = createSiteMetadata();
const jsonLd = createOrganizationJsonLd();
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const organizationJsonLd = serializeJsonLd(createOrganizationJsonLd());
return (
<html
lang="en"
className={`${spaceGrotesk.variable} ${ibmPlexMono.variable} h-full`}
>
<head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
</head>
<body className="min-h-full bg-[var(--color-surface)] text-[var(--color-ink)]">
<script
dangerouslySetInnerHTML={{ __html: organizationJsonLd }}
id="organization-json-ld"
type="application/ld+json"
/>
{children}
<SiteFooter />
</body>
</html>
);
}