ChatGPT-Next-Web/app/layout.tsx

50 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-03-25 14:24:52 +00:00
/* eslint-disable @next/next/no-page-custom-font */
2023-03-19 14:13:00 +00:00
import "./styles/globals.scss";
import "./styles/markdown.scss";
import "./styles/highlight.scss";
2023-04-10 17:21:34 +00:00
import { getBuildConfig } from "./config/build";
2023-04-10 17:21:34 +00:00
const buildConfig = getBuildConfig();
2023-03-07 15:23:54 +00:00
export const metadata = {
2023-03-09 17:01:40 +00:00
title: "ChatGPT Next Web",
2023-03-25 14:24:52 +00:00
description: "Your personal ChatGPT Chat Bot.",
2023-03-27 07:02:12 +00:00
appleWebApp: {
title: "ChatGPT Next Web",
statusBarStyle: "default",
2023-03-27 07:02:12 +00:00
},
2023-05-11 15:21:16 +00:00
viewport: "width=device-width, initial-scale=1, maximum-scale=1",
2023-03-09 17:01:40 +00:00
};
2023-03-07 15:23:54 +00:00
export default function RootLayout({
children,
}: {
2023-03-09 17:01:40 +00:00
children: React.ReactNode;
2023-03-07 15:23:54 +00:00
}) {
return (
2023-03-15 17:24:03 +00:00
<html lang="en">
<head>
<meta
2023-05-11 15:21:16 +00:00
name="theme-color"
content="#fafafa"
media="(prefers-color-scheme: light)"
/>
<meta
name="theme-color"
content="#151515"
media="(prefers-color-scheme: dark)"
/>
2023-04-10 17:21:34 +00:00
<meta name="version" content={buildConfig.commitId} />
<link rel="manifest" href="/site.webmanifest"></link>
2023-05-05 14:49:41 +00:00
<link rel="preconnect" href="https://fonts.proxy.ustclug.org"></link>
2023-03-23 16:01:00 +00:00
<link
2023-05-05 14:49:41 +00:00
href="https://fonts.proxy.ustclug.org/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
2023-03-23 16:01:00 +00:00
rel="stylesheet"
></link>
2023-03-27 10:02:35 +00:00
<script src="/serviceWorkerRegister.js" defer></script>
</head>
2023-03-07 15:23:54 +00:00
<body>{children}</body>
</html>
2023-03-09 17:01:40 +00:00
);
2023-03-07 15:23:54 +00:00
}