2026-08-19 17:40:14 +07:00
|
|
|
import type { Metadata } from "next";
|
|
|
|
|
import Link from "next/link";
|
|
|
|
|
import "./globals.css";
|
2026-08-20 13:21:53 +07:00
|
|
|
import ThemeToggle from "@/components/ThemeToggle";
|
2026-08-20 16:57:30 +07:00
|
|
|
import Sidebar from "@/components/Sidebar";
|
2026-08-19 17:40:14 +07:00
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2026-08-20 16:57:30 +07:00
|
|
|
title: "MCPedia — Knowledge base for humans and AI agents",
|
|
|
|
|
description:
|
|
|
|
|
"A content-first knowledge base. Humans read the Web UI; AI agents use the MCP server. Both share one Core.",
|
2026-08-19 17:40:14 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: {
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
2026-08-20 16:57:30 +07:00
|
|
|
<html lang="en" className="h-full scroll-smooth">
|
|
|
|
|
<body className="min-h-screen bg-[#08090a] text-[#e2e4e7] font-inter">
|
|
|
|
|
<header className="sticky top-0 z-20 border-b border-[#1f2022]">
|
|
|
|
|
<div className="mx-auto max-w-7xl px-4 h-14 flex items-center justify-between">
|
|
|
|
|
<Link href="/" className="font-medium text-[#f7f8f8] text-lg">
|
2026-08-19 17:40:14 +07:00
|
|
|
MCPedia
|
|
|
|
|
</Link>
|
2026-08-20 16:57:30 +07:00
|
|
|
<nav className="flex items-center gap-6 text-sm">
|
|
|
|
|
<Link
|
|
|
|
|
href="/docs"
|
|
|
|
|
className="text-[#d0d6e0] hover:text-[#f7f8f8] transition-colors"
|
|
|
|
|
>
|
|
|
|
|
Docs
|
2026-08-20 13:21:53 +07:00
|
|
|
</Link>
|
2026-08-20 16:57:30 +07:00
|
|
|
<Link
|
|
|
|
|
href="/search"
|
|
|
|
|
className="text-[#d0d6e0] hover:text-[#f7f8f8] transition-colors"
|
|
|
|
|
>
|
2026-08-20 13:21:53 +07:00
|
|
|
Search
|
|
|
|
|
</Link>
|
2026-08-20 16:57:30 +07:00
|
|
|
<Link
|
|
|
|
|
href="/login"
|
|
|
|
|
className="text-[#d0d6e0] hover:text-[#f7f8f8] transition-colors"
|
|
|
|
|
>
|
|
|
|
|
Login
|
2026-08-19 17:40:14 +07:00
|
|
|
</Link>
|
2026-08-20 13:21:53 +07:00
|
|
|
<ThemeToggle />
|
2026-08-19 17:40:14 +07:00
|
|
|
</nav>
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
2026-08-20 16:57:30 +07:00
|
|
|
|
|
|
|
|
<div className="mx-auto max-w-7xl">
|
|
|
|
|
<div className="flex">
|
|
|
|
|
{/* Sticky sidebar for doc navigation */}
|
|
|
|
|
<aside className="hidden xl:block w-64 shrink-0 border-r border-[#1f2022]">
|
|
|
|
|
<Sidebar />
|
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
|
|
<main className="flex-1 min-w-0">
|
2026-08-20 21:46:55 +07:00
|
|
|
<div className="px-8 py-10 max-w-4xl mx-auto lg:max-w-5xl xl:max-w-6xl">
|
2026-08-20 16:57:30 +07:00
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-08-19 17:40:14 +07:00
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|