-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlayout.tsx
More file actions
68 lines (65 loc) · 2.37 KB
/
Copy pathlayout.tsx
File metadata and controls
68 lines (65 loc) · 2.37 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 { Open_Sans } from "next/font/google";
import { TopNav } from "@/components/layout/top-nav";
import { ThemeProvider } from "@/providers/theme-provider";
import { NavWidthProvider } from "@/contexts/nav-width-context";
import { cn } from "@/lib/utils";
import { getSiteUrl } from "@/lib/site-config";
import "./globals.css";
import "@docsearch/css";
const openSans = Open_Sans({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "OpenTimelineIO - Open Timeline Interchange Format",
description:
"OpenTimelineIO is an open-source interchange format and API for editorial timeline information, facilitating collaboration and interoperability among various post-production tools.",
keywords: ["timeline", "editorial", "video", "post-production", "interchange", "format", "OTIO", "open source"],
metadataBase: new URL(getSiteUrl()),
openGraph: {
title: "OpenTimelineIO - Open Timeline Interchange Format",
description: "An open-source interchange format and API for editorial timeline information.",
type: "website",
url: getSiteUrl(),
siteName: "OpenTimelineIO",
locale: "en_US",
},
twitter: {
card: "summary_large_image",
title: "OpenTimelineIO - Open Timeline Interchange Format",
description: "An open-source interchange format and API for editorial timeline information.",
creator: "@OpenTimelineIO",
},
icons: {
icon: [
{ url: '/icons/open-timeline-io-icon-color.svg', type: 'image/svg+xml' },
{ url: '/icons/open-timeline-io-icon-color.png', type: 'image/png' },
],
apple: '/icons/open-timeline-io-icon-color.png',
shortcut: '/icons/open-timeline-io-icon-color.png',
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={cn("min-h-dvh bg-background text-foreground antialiased", openSans.className)}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
disableTransitionOnChange={false}
>
<NavWidthProvider>
<div className="flex flex-col min-h-dvh">
<TopNav />
<main className="flex-1 flex flex-col">
{children}
</main>
</div>
</NavWidthProvider>
</ThemeProvider>
</body>
</html>
);
}