forked from XiaoMo/ChatGPT-Next-Web
50 lines
1.4 KiB
TypeScript
50 lines
1.4 KiB
TypeScript
/* eslint-disable @next/next/no-page-custom-font */
|
|
import "./styles/globals.scss";
|
|
import "./styles/markdown.scss";
|
|
import "./styles/highlight.scss";
|
|
import { getBuildConfig } from "./config/build";
|
|
|
|
const buildConfig = getBuildConfig();
|
|
|
|
export const metadata = {
|
|
title: "ChatGPT Next Web",
|
|
description: "Your personal ChatGPT Chat Bot.",
|
|
appleWebApp: {
|
|
title: "ChatGPT Next Web",
|
|
statusBarStyle: "default",
|
|
},
|
|
viewport: "width=device-width, initial-scale=1, maximum-scale=1",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<meta
|
|
name="theme-color"
|
|
content="#fafafa"
|
|
media="(prefers-color-scheme: light)"
|
|
/>
|
|
<meta
|
|
name="theme-color"
|
|
content="#151515"
|
|
media="(prefers-color-scheme: dark)"
|
|
/>
|
|
<meta name="version" content={buildConfig.commitId} />
|
|
<link rel="manifest" href="/site.webmanifest"></link>
|
|
<link rel="preconnect" href="https://fonts.proxy.ustclug.org"></link>
|
|
<link
|
|
href="https://fonts.proxy.ustclug.org/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
|
|
rel="stylesheet"
|
|
></link>
|
|
<script src="/serviceWorkerRegister.js" defer></script>
|
|
</head>
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|