layout.tsx 536 B

123456789101112131415161718192021222324252627
  1. import type { Metadata } from "next";
  2. import "./globals.css";
  3. import { SiteHeader } from "@/components/site-header";
  4. export const metadata: Metadata = {
  5. title: "局域网书房",
  6. description: "一个同时包含局域网聊天和书架阅读的网站骨架。",
  7. other: {
  8. "theme-color": "#f4efe7"
  9. }
  10. };
  11. export default function RootLayout({
  12. children
  13. }: Readonly<{
  14. children: React.ReactNode;
  15. }>) {
  16. return (
  17. <html lang="zh-CN">
  18. <body>
  19. <SiteHeader />
  20. {children}
  21. </body>
  22. </html>
  23. );
  24. }