- Display Multica icon alongside brand name in sidebar header - Use Playfair Display serif font for an artistic brand feel - Expose --font-brand CSS variable from layout Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
69 lines
1.8 KiB
TypeScript
69 lines
1.8 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono, Inter, Playfair_Display } from "next/font/google";
|
|
import "@multica/ui/globals.css";
|
|
import {
|
|
SidebarProvider,
|
|
SidebarInset,
|
|
SidebarTrigger,
|
|
} from "@multica/ui/components/ui/sidebar";
|
|
import { AppSidebar } from "@multica/ui/components/app-sidebar";
|
|
import { ThemeProvider } from "@multica/ui/components/theme-provider";
|
|
import { Toaster } from "@multica/ui/components/ui/sonner";
|
|
|
|
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"],
|
|
});
|
|
|
|
const playfair = Playfair_Display({
|
|
variable: "--font-brand",
|
|
subsets: ["latin"],
|
|
weight: ["400"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Multica",
|
|
description: "Distributed AI agent framework",
|
|
};
|
|
|
|
const NAV_ITEMS = [
|
|
{ title: "Home", url: "#" },
|
|
{ title: "Documents", url: "#" },
|
|
{ title: "Settings", url: "#" },
|
|
];
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" className={inter.variable} suppressHydrationWarning>
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} ${playfair.variable} antialiased`}
|
|
>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<SidebarProvider>
|
|
<AppSidebar items={NAV_ITEMS} />
|
|
<SidebarInset>
|
|
<div className="flex h-dvh overflow-hidden">{children}</div>
|
|
</SidebarInset>
|
|
</SidebarProvider>
|
|
</ThemeProvider>
|
|
<Toaster />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|