NextChat-U/app/layout.tsx

50 lines
1.4 KiB
TypeScript
Raw Normal View History

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