2026-08-22 02:18:27 +03:00
|
|
|
import type { Metadata } from "next";
|
2026-09-12 23:37:31 +03:00
|
|
|
import { JetBrains_Mono, Source_Sans_3 } from "next/font/google";
|
2026-08-22 03:23:11 +03:00
|
|
|
import "katex/dist/katex.min.css";
|
2026-08-22 02:18:27 +03:00
|
|
|
import "./globals.css";
|
2026-08-22 04:28:13 +03:00
|
|
|
import { AppShell, SidebarProvider } from "@/components/sidebar";
|
2026-09-14 11:56:22 +03:00
|
|
|
import { ActivityProvider } from "@/components/activity-dock";
|
2026-09-19 18:26:25 +03:00
|
|
|
import { AppearanceProvider } from "@/components/settings/appearance";
|
2026-08-22 02:18:27 +03:00
|
|
|
|
2026-09-12 23:37:31 +03:00
|
|
|
// Chrome = JetBrains Mono, teaching prose = Source Sans 3, titles = CMU
|
|
|
|
|
// Serif (the bundled lh-cmu @font-face in globals.css — no CDN).
|
|
|
|
|
const ui = JetBrains_Mono({ subsets: ["latin"], variable: "--font-jetbrains" });
|
|
|
|
|
const prose = Source_Sans_3({ subsets: ["latin"], variable: "--font-sans3" });
|
|
|
|
|
|
2026-08-22 02:18:27 +03:00
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: "Learning Harness",
|
|
|
|
|
description: "A teacher agent with a memory — sessions, quizzes, and a knowledge graph of what you know.",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
|
|
|
return (
|
2026-09-12 23:53:47 +03:00
|
|
|
<html lang="en" className={`dark ${ui.variable} ${prose.variable}`}>
|
|
|
|
|
<body className="min-h-dvh antialiased">
|
2026-09-19 18:26:25 +03:00
|
|
|
<AppearanceProvider>
|
|
|
|
|
<SidebarProvider>
|
|
|
|
|
<ActivityProvider>
|
|
|
|
|
<AppShell>{children}</AppShell>
|
|
|
|
|
</ActivityProvider>
|
|
|
|
|
</SidebarProvider>
|
|
|
|
|
</AppearanceProvider>
|
2026-08-22 04:28:13 +03:00
|
|
|
</body>
|
2026-08-22 02:18:27 +03:00
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|