mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-31 00:34:25 -04:00
32 lines
620 B
Plaintext
32 lines
620 B
Plaintext
---
|
|
import MoreMenu from '../RightSidebar/MoreMenu.astro';
|
|
|
|
type Props = {
|
|
githubEditUrl?: string;
|
|
};
|
|
|
|
const { githubEditUrl } = Astro.props as Props;
|
|
---
|
|
|
|
<article id="article" class="content">
|
|
<section class="main-section">
|
|
<!-- TODO: add dropdown toc on mobile -->
|
|
<div class="prose dark:prose-invert max-w-full pb-8">
|
|
<slot />
|
|
</div>
|
|
</section>
|
|
<nav class="block sm:hidden">
|
|
<MoreMenu editHref={githubEditUrl} />
|
|
</nav>
|
|
</article>
|
|
<style>
|
|
.content {
|
|
padding: 0;
|
|
max-width: 75ch;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
</style>
|