layout.tsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* eslint-disable @next/next/no-page-custom-font */
  2. import "./styles/globals.scss";
  3. import "./styles/markdown.scss";
  4. import "./styles/highlight.scss";
  5. import { getBuildConfig } from "./config/build";
  6. const buildConfig = getBuildConfig();
  7. export const metadata = {
  8. title: "ChatGPT Next Web",
  9. description: "Your personal ChatGPT Chat Bot.",
  10. viewport: {
  11. width: "device-width",
  12. initialScale: 1,
  13. maximumScale: 1,
  14. },
  15. themeColor: [
  16. { media: "(prefers-color-scheme: light)", color: "#fafafa" },
  17. { media: "(prefers-color-scheme: dark)", color: "#151515" },
  18. ],
  19. appleWebApp: {
  20. title: "ChatGPT Next Web",
  21. statusBarStyle: "default",
  22. },
  23. };
  24. export default function RootLayout({
  25. children,
  26. }: {
  27. children: React.ReactNode;
  28. }) {
  29. return (
  30. <html lang="en">
  31. <head>
  32. <meta name="version" content={buildConfig.commitId} />
  33. <link rel="manifest" href="/site.webmanifest"></link>
  34. <link rel="preconnect" href="https://fonts.proxy.ustclug.org"></link>
  35. <link
  36. rel="stylesheet"
  37. href="https://fonts.proxy.ustclug.org/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
  38. ></link>
  39. <script src="/serviceWorkerRegister.js" defer></script>
  40. </head>
  41. <body>{children}</body>
  42. </html>
  43. );
  44. }