fix: ensure footer stays at bottom
This commit is contained in:
@@ -151,6 +151,8 @@ body {
|
|||||||
body {
|
body {
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.overflow-hidden {
|
body.overflow-hidden {
|
||||||
|
|||||||
3
apps/scandic-web/components/Footer/footer.module.css
Normal file
3
apps/scandic-web/components/Footer/footer.module.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.footer {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
@@ -6,6 +6,8 @@ import CurrentFooter from "@/components/Current/Footer"
|
|||||||
import FooterDetails from "./Details"
|
import FooterDetails from "./Details"
|
||||||
import FooterNavigation from "./Navigation"
|
import FooterNavigation from "./Navigation"
|
||||||
|
|
||||||
|
import styles from "./footer.module.css"
|
||||||
|
|
||||||
export function preload() {
|
export function preload() {
|
||||||
void getFooter()
|
void getFooter()
|
||||||
}
|
}
|
||||||
@@ -18,7 +20,7 @@ export default function Footer() {
|
|||||||
preload()
|
preload()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer>
|
<footer className={styles.footer}>
|
||||||
<FooterNavigation />
|
<FooterNavigation />
|
||||||
<FooterDetails />
|
<FooterDetails />
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user