Set minimum page height

This commit is contained in:
Sam Becker 2023-09-14 23:14:02 -05:00
parent e864bdf5b0
commit 583cecc241
5 changed files with 22 additions and 6 deletions

View File

@ -1,4 +1,5 @@
import FooterAuth from '@/components/FooterAuth';
import PageContentContainer from '@/components/PageContentContainer';
import { SessionProvider } from 'next-auth/react';
export default function RootLayout({
@ -8,10 +9,10 @@ export default function RootLayout({
}) {
return (
<SessionProvider>
{children}
<div className="my-8">
<FooterAuth />
</div>
<PageContentContainer>
{children}
</PageContentContainer>
<FooterAuth />
</SessionProvider>
);
}

View File

@ -1,4 +1,5 @@
import FooterStatic from '@/components/FooterStatic';
import PageContentContainer from '@/components/PageContentContainer';
export default function RootLayout({
children,
@ -7,7 +8,9 @@ export default function RootLayout({
}) {
return (
<>
{children}
<PageContentContainer>
{children}
</PageContentContainer>
<FooterStatic />
</>
);

View File

@ -24,6 +24,7 @@ export default function FooterAuth() {
<SiteGrid
contentMain={<div className={cc(
'flex items-center',
'my-8',
'text-gray-400 dark:text-gray-500',
)}>
<div className="flex gap-x-4 gap-y-1 flex-wrap flex-grow">

View File

@ -0,0 +1,11 @@
export default function PageContentContainer({
children,
}: {
children: React.ReactNode
}) {
return (
<div className="min-h-[16rem] sm:min-h-[30rem]">
{children}
</div>
);
}

View File

@ -29,7 +29,7 @@ export default function PhotosEmptyState() {
{' '}
<Link
href="/admin"
className="underline hover:no-underline"
className="hover:text-gray-800 hover:dark:text-gray-100"
>
/admin
</Link>