Skip to content

Commit

Permalink
Merge pull request #22 from powdr-labs/footer-at-bottom
Browse files Browse the repository at this point in the history
Place footer at the bottom
  • Loading branch information
kuzdogan authored Sep 29, 2024
2 parents f268a76 + 2650748 commit 16630ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,18 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#fff" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000" />
<link rel="alternate" type="application/rss+xml" href={`${basePath}/feed.xml`} />
<body className="bg-white pl-[calc(100vw-100%)] text-black antialiased dark:bg-gray-950 dark:text-white">
<body className="min-h-screen bg-white pl-[calc(100vw-100%)] text-black antialiased dark:bg-gray-950 dark:text-white">
<ThemeProviders>
{/* <Analytics analyticsConfig={siteMetadata.analytics as AnalyticsConfig} /> */}
<SectionContainer>
<SearchProvider searchConfig={siteMetadata.search as SearchConfig}>
<Header />
<main className="mb-auto">{children}</main>
</SearchProvider>
</SectionContainer>
<Footer />
<div className="flex min-h-screen flex-col">
<SectionContainer>
<SearchProvider searchConfig={siteMetadata.search as SearchConfig}>
<Header />
<main className="mb-12 flex-grow">{children}</main>
</SearchProvider>
</SectionContainer>
<Footer />
</div>
</ThemeProviders>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PowdrLogo } from './powdrLogo'

export default function Footer() {
return (
<footer className="mt-12 bg-[#1e1b4b] py-8 text-white">
<footer className="mt-auto bg-[#1e1b4b] py-8 text-white">
<div className="container mx-auto flex flex-col items-center">
<PowdrLogo className="mb-4 h-24 w-auto text-white" />
<p className="mb-2 text-sm">
Expand Down

0 comments on commit 16630ed

Please sign in to comment.