www: fix footer to the bottom when content is short (#271)
This commit is contained in:
@@ -66,10 +66,12 @@ export default function DocsPage(props: PageProps<Data>) {
|
|||||||
<link rel="stylesheet" href={`/gfm.css?build=${__FRSH_BUILD_ID}`} />
|
<link rel="stylesheet" href={`/gfm.css?build=${__FRSH_BUILD_ID}`} />
|
||||||
{description && <meta name="description" content={description} />}
|
{description && <meta name="description" content={description} />}
|
||||||
</Head>
|
</Head>
|
||||||
<Header />
|
<div class={tw`flex flex-col min-h-screen`}>
|
||||||
<NavigationBar active="/docs" />
|
<Header />
|
||||||
<Main path={props.url.pathname} page={props.data.page} />
|
<NavigationBar active="/docs" />
|
||||||
<Footer />
|
<Main path={props.url.pathname} page={props.data.page} />
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -152,13 +154,13 @@ function Title() {
|
|||||||
function Main(props: { path: string; page: Page }) {
|
function Main(props: { path: string; page: Page }) {
|
||||||
const main = tw`mx-auto max-w-screen-lg px-4 flex gap-6`;
|
const main = tw`mx-auto max-w-screen-lg px-4 flex gap-6`;
|
||||||
return (
|
return (
|
||||||
<>
|
<div class={tw`flex-1`}>
|
||||||
<MobileSidebar path={props.path} />
|
<MobileSidebar path={props.path} />
|
||||||
<div class={main}>
|
<div class={main}>
|
||||||
<DesktopSidebar path={props.path} />
|
<DesktopSidebar path={props.path} />
|
||||||
<Content page={props.page} />
|
<Content page={props.page} />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,11 +44,15 @@ export default function MainPage(props: PageProps) {
|
|||||||
<meta property="og:url" content={props.url.href} />
|
<meta property="og:url" content={props.url.href} />
|
||||||
<meta property="og:image" content={ogImageUrl} />
|
<meta property="og:image" content={ogImageUrl} />
|
||||||
</Head>
|
</Head>
|
||||||
<Hero />
|
<div class={tw`flex flex-col min-h-screen`}>
|
||||||
<Intro />
|
<Hero />
|
||||||
<GettingStarted origin={origin} />
|
<div class={tw`flex-1`}>
|
||||||
<Example />
|
<Intro />
|
||||||
<Footer />
|
<GettingStarted origin={origin} />
|
||||||
|
<Example />
|
||||||
|
</div>
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user