fix/layout-width #19
@ -34,6 +34,7 @@ export function DocsLayout(props: DocsLayoutProps) {
|
||||
/>
|
||||
<Prose>{props.children}</Prose>
|
||||
</article>
|
||||
|
||||
<PrevNextLinks />
|
||||
</main>
|
||||
|
||||
|
||||
@ -31,6 +31,22 @@ export default function DefaultLayout(props: DefaultLayoutProps) {
|
||||
|
||||
{pageContext.urlPathname === "/" && <HeroSection />}
|
||||
|
||||
{/* Backup */}
|
||||
{/* <div class="relative mx-auto w-full flex max-w-8xl flex-auto justify-center sm:px-2 lg:px-8 xl:px-12">
|
||||
<div class="hidden lg:relative lg:block lg:flex-none">
|
||||
<div class="absolute inset-y-0 right-0 w-[50vw] bg-slate-50" />
|
||||
<div class="absolute top-16 right-0 bottom-0 hidden h-12 w-px bg-linear-to-t from-slate-800" />
|
||||
<div class="absolute top-28 right-0 bottom-0 hidden w-px bg-slate-800" />
|
||||
<div class="sticky top-[4.75rem] -ml-0.5 h-[calc(100vh-4.75rem)] w-64 overflow-x-hidden overflow-y-auto py-16 pr-8 pl-0.5 xl:w-72 xl:pr-16">
|
||||
<Navigation />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col max-w-[calc(100vw-20rem)]">
|
||||
<DocsLayout>{props.children}</DocsLayout>
|
||||
</div>
|
||||
</div> */}
|
||||
|
||||
<div class="relative mx-auto w-full flex max-w-8xl flex-auto justify-center sm:px-2 lg:px-8 xl:px-12">
|
||||
<div class="hidden lg:relative lg:block lg:flex-none">
|
||||
<div class="absolute inset-y-0 right-0 w-[50vw] bg-slate-50" />
|
||||
@ -41,7 +57,7 @@ export default function DefaultLayout(props: DefaultLayoutProps) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col">
|
||||
<div class="flex flex-col max-w-[calc(100vw-20rem)]">
|
||||
<DocsLayout>{props.children}</DocsLayout>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -8,7 +8,7 @@ export function LatestDocs() {
|
||||
const data = useData<Data>();
|
||||
|
||||
return (
|
||||
<section class="bg-violet-200 rounded-md p-4 m-4 lg:m-6">
|
||||
<section class="bg-violet-200 rounded-md p-4 my-4 ml-4 lg:mr-2">
|
||||
<h2 class="font-display text-3xl tracking-tight text-slate-900 text-center">
|
||||
Dernières documentations
|
||||
</h2>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user