mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import {Image} from "@heroui/react";
|
|
|
|
import {ScriptProviders} from "@/components/scripts/script-providers";
|
|
|
|
interface DocsLayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function DocsLayout({children}: DocsLayoutProps) {
|
|
return (
|
|
<>
|
|
<main className="relative container mx-auto max-w-7xl z-10 px-6 min-h-[calc(100vh_-_64px_-_108px)] mb-12 flex-grow">
|
|
{children}
|
|
</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="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/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="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/docs-right.png"
|
|
/>
|
|
</div>
|
|
|
|
<ScriptProviders isKapaEnabled={false} />
|
|
</>
|
|
);
|
|
}
|