feat: footer for mobiles
This commit is contained in:
6
src/components/layout/Footer/Footer.module.css
Normal file
6
src/components/layout/Footer/Footer.module.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.footer {
|
||||||
|
padding: var(--mantine-spacing-md);
|
||||||
|
@media (max-width: 48em) {
|
||||||
|
padding: 0
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,5 +1,6 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Group, Text } from "@mantine/core";
|
import { Group, Text } from "@mantine/core";
|
||||||
|
import styles from "@/components/layout/Footer/Footer.module.css";
|
||||||
|
|
||||||
const Footer = () => {
|
const Footer = () => {
|
||||||
return (
|
return (
|
||||||
@ -7,7 +8,7 @@ const Footer = () => {
|
|||||||
justify={"flex-end"}
|
justify={"flex-end"}
|
||||||
align={"flex-end"}
|
align={"flex-end"}
|
||||||
h={"7vh"}
|
h={"7vh"}
|
||||||
p={"md"}>
|
className={styles.footer}>
|
||||||
<Group gap={"xl"}>
|
<Group gap={"xl"}>
|
||||||
<Link
|
<Link
|
||||||
href={"#"}
|
href={"#"}
|
||||||
|
|||||||
@ -37,5 +37,15 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-footer {
|
||||||
|
display: none;
|
||||||
|
@media (max-width: 48em) {
|
||||||
|
display: block;
|
||||||
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { CSSProperties, FC, ReactNode } from "react";
|
import { CSSProperties, FC, ReactNode } from "react";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { MotionWrapper } from "@/components/layout/MotionWrapper/MotionWrapper";
|
import { MotionWrapper } from "@/components/layout/MotionWrapper/MotionWrapper";
|
||||||
|
import Footer from "@/components/layout/Footer/Footer";
|
||||||
import styles from "./PageItem.module.css";
|
import styles from "./PageItem.module.css";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -31,6 +32,11 @@ const PageItem: FC<Props> = ({
|
|||||||
fullScreenMobile && styles["container-full-screen-mobile"]
|
fullScreenMobile && styles["container-full-screen-mobile"]
|
||||||
)}>
|
)}>
|
||||||
{children}
|
{children}
|
||||||
|
{fullScreenMobile && (
|
||||||
|
<div className={styles["mobile-footer"]}>
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user