[site/layout][s]: fixed layout

This commit is contained in:
olayway 2022-06-02 11:25:30 +02:00
parent a00a90a345
commit cf95061bec
2 changed files with 32 additions and 33 deletions

View File

@ -17,10 +17,7 @@ export default function Layout({ children }) {
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
</Head> </Head>
<Nav /> <Nav />
<main className="max-w-7xl relative mx-auto px-2 sm:px-6 md:px-8"> <main>
{/* <div className="hidden md:block w-[16rem] fixed top-16 left-[max(0px,calc(50%-40rem))] bottom-0 right-auto px-8 overflow-y-auto border-2 border-red-500"> */}
{/* <Sidebar /> */}
{/* </div> */}
{children} {children}
</main> </main>
<footer className="w-full h-24 mt-16"> <footer className="w-full h-24 mt-16">

View File

@ -87,6 +87,7 @@ export default function MdxPage({ body, frontMatter, editUrl }) {
{ name: "keywords", content: keywords ? keywords : "" }, { name: "keywords", content: keywords ? keywords : "" },
]} ]}
/> />
<div className="max-w-7xl mx-auto px-2 sm:px-6 md:px-8">
<article className="prose dark:prose-invert prose-a:break-all mx-auto lg:mr-[20rem] p-6"> <article className="prose dark:prose-invert prose-a:break-all mx-auto lg:mr-[20rem] p-6">
<header> <header>
<div className="mb-6"> <div className="mb-6">
@ -150,6 +151,7 @@ export default function MdxPage({ body, frontMatter, editUrl }) {
)} )}
</main> </main>
</article> </article>
</div>
</> </>
); );
} }