fix footer placement (#1351)

This commit is contained in:
Daniel Chew 2024-03-12 15:57:27 +09:00 committed by GitHub
parent 51667f7af3
commit 23620cb217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@ import Header from './Header'
const Layout = ({ children }: { children: React.ReactNode }) => { const Layout = ({ children }: { children: React.ReactNode }) => {
return ( return (
<div className="relative overflow-hidden"> <div className="flex flex-col min-h-screen relative overflow-hidden">
<Header /> <Header />
<main>{children}</main> <main className="flex-grow">{children}</main>
<Footer /> <Footer />
</div> </div>
) )