aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/layout.tsx
blob: f74ee23290d93af2f00eaf507b78a3993768cad8 (plain) (blame)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import "@repo/tailwind-config/globals.css";

import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";
import { cn } from "@repo/ui/lib/utils";
import { Toaster } from "@repo/ui/shadcn/toaster";
import { PHProvider } from "./providers";
import PostHogPageView from "./PHPageViews";

const inter = Inter({ subsets: ["latin"] });

export const runtime = "edge";

export const metadata: Metadata = {
	title: "Supermemory - Your personal second brain.",
	description:
		"Bring saved information from all over the internet into one place where you can connect it, and ask AI about it",
	openGraph: {
		images: [
			{
				url: "https://supermemory.ai/og-image.png",
				width: 1200,
				height: 627,
				alt: "Supermemory - Your personal second brain.",
			},
		],
	},
	metadataBase: {
		host: "https://supermemory.ai",
		href: "/",
		origin: "https://supermemory.ai",
		password: "supermemory",
		hash: "supermemory",
		pathname: "/",
		search: "",
		username: "supermemoryai",
		hostname: "supermemory.ai",
		port: "",
		protocol: "https:",
		searchParams: new URLSearchParams(""),
		toString: () => "https://supermemory.ai/",
		toJSON: () => "https://supermemory.ai/",
	},
	twitter: {
		card: "summary_large_image",
		site: "https://supermemory.ai",
		creator: "https://supermemory.ai",
		title: "Supermemory - Your personal second brain.",
		description:
			"Bring saved information from all over the internet into one place where you can connect it, and ask AI about it",
		images: [
			{
				url: "https://supermemory.ai/og-image.png",
				width: 1200,
				height: 627,
				alt: "Supermemory - Your personal second brain.",
			},
		],
	},
	manifest: "/manifest.webmanifest",
};

export default function RootLayout({
	children,
}: {
	children: React.ReactNode;
}): JSX.Element {
	return (
		<html lang="en" className="overflow-x-hidden" suppressHydrationWarning>
			<head>
				{/* Cloudflare web analytics */}
				<script
					defer
					src="https://static.cloudflareinsights.com/beacon.min.js"
					data-cf-beacon='{"token": "16d76ebb82c74d9983b71d09ab6617bc"}'
				></script>
			</head>
			<PHProvider>
				<body
					className={cn(
						`${inter.className} dark`,
						GeistMono.variable,
						GeistSans.variable,
					)}
				>
					{children}
					<Toaster />
					{/* <PostHogPageView /> */}
				</body>
			</PHProvider>
		</html>
	);
}