86 lines
2.6 KiB
TypeScript
86 lines
2.6 KiB
TypeScript
import React from "react";
|
|
import { Provider } from "@/components/ui/provider";
|
|
import { metadata } from "./page";
|
|
|
|
export default function RootLayout(props: { children: React.ReactNode }) {
|
|
const { children } = props;
|
|
|
|
const url = "https://werewolfkid.monster";
|
|
const img = "/images/logo/favicon/favicon.ico";
|
|
const domain = "werewolfkid.monster";
|
|
|
|
return (
|
|
<html suppressHydrationWarning>
|
|
<meta
|
|
property="title"
|
|
content={
|
|
typeof metadata.title === "string"
|
|
? metadata.title
|
|
: "error with metadata"
|
|
}
|
|
/>
|
|
<meta name="theme-color" content="#00ffff" />
|
|
<link rel="icon" href={img} sizes="any" />
|
|
<meta property="image" content="/images/logo/new-logo.png" />
|
|
<meta property="image:type" content="image/png" />
|
|
<meta property="image:width" content="653px" />
|
|
<link
|
|
rel="apple-touch-icon"
|
|
href="/images/logo/favicon/apple-touch-icon.png"
|
|
sizes="any"
|
|
/>
|
|
<meta
|
|
property="og:title"
|
|
content={
|
|
typeof metadata.title === "string"
|
|
? metadata.title
|
|
: "error with metadata"
|
|
}
|
|
/>
|
|
<meta
|
|
property="og:description"
|
|
content={
|
|
typeof metadata.description === "string"
|
|
? metadata.description
|
|
: "error with metadata"
|
|
}
|
|
/>
|
|
<meta property="og:url" content={url} />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:image" content="/images/logo/new-logo.png" />
|
|
<meta property="og:image:type" content="image/png" />
|
|
<meta property="og:image:width" content="653px" />
|
|
<meta property="og:image:height" content="651px" />
|
|
<meta property="image:height" content="651px" />
|
|
<meta
|
|
name="twitter:title"
|
|
content={
|
|
typeof metadata.title === "string"
|
|
? metadata.title
|
|
: "error with metadata"
|
|
}
|
|
/>
|
|
<meta property="twitter:domain" content={domain} />
|
|
<meta property="twitter:url" content={url} />
|
|
<meta
|
|
name="twitter:description"
|
|
content={
|
|
typeof metadata.description === "string"
|
|
? metadata.description
|
|
: "error with metadata"
|
|
}
|
|
/>
|
|
<meta
|
|
name="twitter:image"
|
|
content="https://werewolfkid.monster/images/logo/new-logo.png"
|
|
/>
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta httpEquiv="content-language" content="en_US" />
|
|
<meta charSet="UTF-8" />
|
|
<body>
|
|
<Provider>{children}</Provider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|