Skip to content

Commit b3eb841

Browse files
committed
Footer at bottom
1 parent 366d9dc commit b3eb841

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/Layout/Layout.component.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,20 @@ const Layout = ({ children, title }: ILayoutProps) => {
6060
<Header title={title} />
6161
{title === 'Hjem' ? (
6262
<>
63-
<main className="flex-grow">
63+
<main className="flex-1">
6464
{children}
6565
</main>
6666
</>
6767
) : (
68-
<div className="container mx-auto px-6">
68+
<div className="container mx-auto px-6 flex-1">
6969
<PageTitle title={title} />
70-
<main className="flex-grow">{children}</main>
70+
<main>{children}</main>
7171
</div>
7272
)}
73-
<Footer />
74-
<Stickynav />
73+
<div className="mt-auto">
74+
<Footer />
75+
<Stickynav />
76+
</div>
7577
</div>
7678
);
7779
};

0 commit comments

Comments
 (0)