www: fix footer to the bottom when content is short (#271)

This commit is contained in:
Yusuke Tanaka
2022-06-22 14:40:29 +02:00
committed by GitHub
parent f9559b1079
commit 56f612c8f3
2 changed files with 17 additions and 11 deletions
+9 -5
View File
@@ -44,11 +44,15 @@ export default function MainPage(props: PageProps) {
<meta property="og:url" content={props.url.href} />
<meta property="og:image" content={ogImageUrl} />
</Head>
<Hero />
<Intro />
<GettingStarted origin={origin} />
<Example />
<Footer />
<div class={tw`flex flex-col min-h-screen`}>
<Hero />
<div class={tw`flex-1`}>
<Intro />
<GettingStarted origin={origin} />
<Example />
</div>
<Footer />
</div>
</>
);
}