Skip to content

Commit 042c290

Browse files
Add specific css classes and use some display none properties to adjust the content of the footer in the mobile and in the desktop designs respectively.
1 parent a2c8d52 commit 042c290

File tree

2 files changed

+35
-21
lines changed

2 files changed

+35
-21
lines changed

src/components/footer/Footer.tsx

+27-20
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,34 @@ import styles from "./styles.module.css";
33
import GHPicture from "@site/static/img/socialmedias/GH.svg";
44
import LinkedInPicture from "@site/static/img/socialmedias/LinkedIn.svg";
55
import XPicture from "@site/static/img/socialmedias/X.svg";
6-
import AstronautPicture from "@site/static/img/quantstack/astronaut-footer.svg";
6+
7+
export function SocialMediasQuantStack() {
8+
return (
9+
<div>
10+
<b>Follow us on</b> <br />
11+
<div className={styles.social_media_links_quantstack}>
12+
<Link href={"https://github.com/QuantStack"}>{<GHPicture />}</Link>
13+
<Link href={"https://www.linkedin.com/company/quantstack/mycompany"}>
14+
{<LinkedInPicture />}
15+
</Link>
16+
<Link href={"https://twitter.com/QuantStack"}>{<XPicture />}</Link>
17+
</div>
18+
</div>
19+
);
20+
}
721

822
export default function Footer() {
923
return (
1024
<div className={"container" + " " + styles.footer_container}>
1125
<div className={"row"} style={{ paddingBottom: "var(--ifm-spacing-xl)" }}>
12-
<div className="col col--4 flex-full-centered">
13-
<div className={styles.social_media_links}>
14-
<b>Follow us on</b> <br />
15-
<div className="flex-full-centered">
16-
<Link href={"https://github.com/QuantStack"}>
17-
{<GHPicture />}
18-
</Link>
19-
<Link
20-
href={"https://www.linkedin.com/company/quantstack/mycompany"}
21-
>
22-
{<LinkedInPicture />}
23-
</Link>
24-
<Link href={"https://twitter.com/QuantStack"}>
25-
{<XPicture />}
26-
</Link>
27-
</div>
28-
</div>
26+
<div
27+
className={
28+
"col flex-full-centered" + " " + styles.social_media_desktop
29+
}
30+
>
31+
<SocialMediasQuantStack />
2932
</div>
30-
<div className={"col col--4"}>
33+
<div className={"col"}>
3134
<div className={"container" + " " + styles.menu_container}>
3235
<div style={{ textAlign: "center" }}>
3336
<b>Menu</b> <br />
@@ -64,7 +67,11 @@ export default function Footer() {
6467
</div>
6568
</div>
6669

67-
<div className="col col--4 flex-full-centered">
70+
<div className="col">
71+
<div className={styles.social_media_mobile}>
72+
<SocialMediasQuantStack/>
73+
</div>
74+
6875
<div className={styles.office_address}>
6976
<b>QuantStack office</b> <br />
7077
16, avenue Curti <br />

src/components/footer/styles.module.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@
1313
.menu_container {
1414
display: none;
1515
}
16+
17+
.social_media_desktop {
18+
display: none;
19+
}
1620
}
1721

1822
@media only screen and (min-width: 996px) {
1923
/*Desktop*/
20-
.social_media_links {
24+
.social_media_links_quantstack {
2125
padding-bottom: var(--ifm-spacing-xl);
2226
}
27+
.social_media_mobile {
28+
display: none ;
29+
}
2330
}

0 commit comments

Comments
 (0)