layout.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. appleWebApp: {
  11. title: "ChatGPT Next Web",
  12. statusBarStyle: "default",
  13. },
  14. themeColor: "#fafafa",
  15. };
  16. export default function RootLayout({
  17. children,
  18. }: {
  19. children: React.ReactNode;
  20. }) {
  21. return (
  22. <html lang="en">
  23. <head>
  24. <meta
  25. name="viewport"
  26. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
  27. />
  28. <meta
  29. name="theme-color"
  30. content="#151515"
  31. media="(prefers-color-scheme: dark)"
  32. />
  33. <meta name="version" content={buildConfig.commitId} />
  34. <link rel="manifest" href="/site.webmanifest"></link>
  35. <link rel="preconnect" href="https://fonts.googleapis.com"></link>
  36. <link rel="preconnect" href="https://fonts.gstatic.com"></link>
  37. <link
  38. href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
  39. rel="stylesheet"
  40. ></link>
  41. <script src="/serviceWorkerRegister.js" defer></script>
  42. </head>
  43. <body>{children}</body>
  44. </html>
  45. );
  46. }