make separate component for section footer to show links below section content on mobile
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import Link from "next/link";
|
||||
import styles from "./sectionFooter.module.scss";
|
||||
|
||||
export const SectionFooter = ({ link, linkText }: { link: string, linkText: string }) => {
|
||||
return (
|
||||
<footer className={styles.sectionFooter}>
|
||||
{link && linkText && <Link href={link}>{linkText}</Link>}
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,25 @@
|
||||
.sectionFooter {
|
||||
margin-top: var(--spacing-s);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
font-family: var(--font-serif);
|
||||
position: relative;
|
||||
padding-right: 1.4rem;
|
||||
|
||||
&:after {
|
||||
content: "→";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
display: none;
|
||||
@media (max-width: 800px) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
@@ -17,4 +17,10 @@
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
a {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user