multica/apps/web/app/layout.tsx
Naiyuan Qing 4036463d6c feat(web): add sidebar layout
Wrap layout in SidebarProvider, restructure page into left
sidebar navigation + right SidebarInset content area.
Add use-mobile hook via shadcn for responsive behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 20:40:35 +08:00

39 lines
923 B
TypeScript

import type { Metadata } from "next";
import { Geist, Geist_Mono, Inter } from "next/font/google";
import "@multica/ui/globals.css";
import { SidebarProvider } from "@multica/ui/components/ui/sidebar";
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" className={inter.variable}>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<SidebarProvider>
{children}
</SidebarProvider>
</body>
</html>
);
}