layout.tsx
680 Bytes
import type { Metadata } from "next";
import "./globals.css";
import Sidebar from "@/components/Sidebar";
export const metadata: Metadata = {
title: "Wiki App",
description: "Enterprise Wiki Application",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="zh-CN"
className="h-full antialiased font-sans"
>
<body className="min-h-full flex h-screen bg-[#F8FAFC] text-slate-900 font-sans overflow-hidden">
<Sidebar />
<main className="flex-1 flex flex-col min-w-0 bg-white overflow-hidden">
{children}
</main>
</body>
</html>
);
}