aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/layout.tsx
blob: 1527c8a0f632820f221a63ea2abe6da7eb8abe9c (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
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 BackgroundPlus from "./(landing)/GridPatterns/PlusGrid";
import { Toaster } from "@repo/ui/shadcn/toaster";

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.",
      },
    ],
  },
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}): JSX.Element {
  return (
    <html lang="en" className="overflow-x-hidden" suppressHydrationWarning>
      {/* <head>
        <ThemeScript />
      </head> */}
      {/* TODO: when lightmode support is added, remove the 'dark' class from the body tag */}
      <body
        className={cn(
          `${inter.className} dark`,
          GeistMono.variable,
          GeistSans.variable,
        )}
      >
        {children}
        <Toaster />
      </body>
    </html>
  );
}