Skip to content

Commit

Permalink
Change position of Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Dec 9, 2023
1 parent 954a8f6 commit 21d1e22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/components/PageLayout/Footer/Footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
width: 100%;
background-color: black;
color: white;
position: absolute;
bottom: 0;
}

.grid {
Expand Down
3 changes: 3 additions & 0 deletions src/components/PageLayout/PageLayout.module.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.pageContainer {
min-height: 100vh;
position: relative;
display: flex;
flex-direction: column;
}

.grid {
flex: 1;
display: grid;
grid-template-columns: repeat(4, 1fr);
// bottom offset because of sticky debug footer
Expand Down
4 changes: 2 additions & 2 deletions src/components/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export const PageLayout: FC<PageLayoutProps> = ({contentWidth = 2, title = '', c
<div className={styles.pageContainer}>
<TopGrid />
<MenuMain />
<StromLogo />
<div className={styles.grid}>
<StromLogo />
<div
className={clsx(
styles.mainContent,
Expand All @@ -55,8 +55,8 @@ export const PageLayout: FC<PageLayoutProps> = ({contentWidth = 2, title = '', c
{children}
</div>
</div>
<DebugFooter />
<Footer />
<DebugFooter />
</div>
</BannerContainer.Provider>
</PageTitleContainer.Provider>
Expand Down

0 comments on commit 21d1e22

Please sign in to comment.