layout.tsx 491 B

123456789101112131415161718192021222324
  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. };
  8. export default function RootLayout({
  9. children
  10. }: Readonly<{
  11. children: React.ReactNode;
  12. }>) {
  13. return (
  14. <html lang="zh-CN">
  15. <body>
  16. <SiteHeader />
  17. {children}
  18. </body>
  19. </html>
  20. );
  21. }