layout.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: "AI.DW",
  9. description: "",
  10. appleWebApp: {
  11. title: "AI.DW",
  12. statusBarStyle: "default",
  13. },
  14. viewport: "width=device-width, initial-scale=1, maximum-scale=1",
  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="theme-color"
  26. content="#fafafa"
  27. media="(prefers-color-scheme: light)"
  28. />
  29. <meta
  30. name="theme-color"
  31. content="#151515"
  32. media="(prefers-color-scheme: dark)"
  33. />
  34. <meta name="version" content={buildConfig.commitId} />
  35. <link rel="manifest" href="/site.webmanifest"></link>
  36. <script src="/serviceWorkerRegister.js" defer></script>
  37. </head>
  38. <body>{children}</body>
  39. </html>
  40. );
  41. }