Update layout.tsx

This commit is contained in:
MacRimi 2025-02-17 22:41:36 +01:00 committed by GitHub
parent dcf8c4bb04
commit 4432cd6815
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,15 +1,16 @@
import DocSidebar from "@/components/DocSidebar"
import type React from "react"
import DocSidebar from "@/components/DocSidebar"
import Footer from "@/components/footer"
export default function DocsLayout({
children,
}: {
children: React.ReactNode
}) {
export default function DocsLayout({ children }: { children: React.ReactNode }) {
return (
<div className="flex flex-col md:flex-row min-h-screen pt-40 md:pt-16">
<div className="flex flex-col min-h-screen bg-white text-gray-900">
<div className="flex flex-col md:flex-row flex-1">
<DocSidebar />
<main className="flex-1 p-4 md:p-6 mt-4 md:mt-0">{children}</main>
<main className="flex-1 p-4 md:p-6">{children}</main>
</div>
<Footer />
</div>
)
}