Files
wkc-website/src/app/layout.tsx
Lucid Kobold d90380b8d3
All checks were successful
Vercel Preview Deployment / Deploy-Preview (pull_request) Successful in 1m19s
Node.js CI / build (18.x) (pull_request) Successful in 1m1s
Node.js CI / build (20.x) (pull_request) Successful in 59s
Node.js CI / build (22.x) (pull_request) Successful in 1m0s
Updated metadata and added a color scheme to the wbsite
2025-09-19 18:57:16 -04:00

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>
);
}