mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import {Image} from "@nextui-org/react";
|
|
|
|
import manifest from "@/content/docs/manifest.json";
|
|
import {DocsSidebar} from "@/components/docs/sidebar";
|
|
|
|
interface DocsLayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function DocsLayout({children}: DocsLayoutProps) {
|
|
return (
|
|
<>
|
|
<main className="container mx-auto max-w-7xl px-6 pt-16 min-h-[calc(100vh_-_64px_-_108px)] mb-12 flex-grow">
|
|
<div className="grid grid-cols-12">
|
|
<div className="hidden relative z-10 lg:block lg:col-span-2 mt-8 pr-4">
|
|
<DocsSidebar routes={manifest.routes} />
|
|
</div>
|
|
{children}
|
|
</div>
|
|
</main>
|
|
<div
|
|
aria-hidden="true"
|
|
className="fixed hidden dark:md:block dark:opacity-70 -bottom-[40%] -left-[20%] z-0"
|
|
>
|
|
<Image removeWrapper alt="docs left background" src="/gradients/docs-left.png" />
|
|
</div>
|
|
<div
|
|
aria-hidden="true"
|
|
className="fixed hidden dark:md:block dark:opacity-70 -top-[80%] -right-[60%] 2xl:-top-[60%] 2xl:-right-[45%] z-0 rotate-12"
|
|
>
|
|
<Image removeWrapper alt="docs right background" src="/gradients/docs-right.png" />
|
|
</div>
|
|
</>
|
|
);
|
|
}
|