Skip to content

Commit fa0d086

Browse files
Fix the vertical and horizontal positionnings of the content of the columns of the footer.
1 parent 042c290 commit fa0d086

File tree

3 files changed

+44
-22
lines changed

3 files changed

+44
-22
lines changed

src/components/footer/Footer.tsx

+28-13
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function SocialMediasQuantStack() {
88
return (
99
<div>
1010
<b>Follow us on</b> <br />
11-
<div className={styles.social_media_links_quantstack}>
11+
<div style={{marginBottom: "var(--ifm-spacing-lg)"}}>
1212
<Link href={"https://github.com/QuantStack"}>{<GHPicture />}</Link>
1313
<Link href={"https://www.linkedin.com/company/quantstack/mycompany"}>
1414
{<LinkedInPicture />}
@@ -25,18 +25,18 @@ export default function Footer() {
2525
<div className={"row"} style={{ paddingBottom: "var(--ifm-spacing-xl)" }}>
2626
<div
2727
className={
28-
"col flex-full-centered" + " " + styles.social_media_desktop
28+
"col flex-horizontally-centered" + " " + styles.col_social_media_desktop
2929
}
3030
>
3131
<SocialMediasQuantStack />
3232
</div>
33-
<div className={"col"}>
33+
<div className={"col flex-horizontally-centered"}>
3434
<div className={"container" + " " + styles.menu_container}>
3535
<div style={{ textAlign: "center" }}>
3636
<b>Menu</b> <br />
3737
</div>
3838
<div className="row">
39-
<div className="col">
39+
<div className="col flex-horizontally-centered">
4040
<ul>
4141
<li>
4242
<Link href={"/home"}>Home</Link>
@@ -50,7 +50,7 @@ export default function Footer() {
5050
</li>
5151
</ul>
5252
</div>
53-
<div className="col">
53+
<div className="col flex-horizontally-centered">
5454
<ul>
5555
<li>
5656
<Link href={"/services"}>Services</Link>
@@ -67,16 +67,31 @@ export default function Footer() {
6767
</div>
6868
</div>
6969

70-
<div className="col">
71-
<div className={styles.social_media_mobile}>
72-
<SocialMediasQuantStack/>
70+
<div
71+
className={
72+
"col flex-full-centered" + " " + styles.col_address_desktop
73+
}
74+
>
75+
<div>
76+
<div>
77+
<b>QuantStack office</b> <br />
78+
16, avenue Curti <br />
79+
94100 Saint-Maur-des-Fossés <br />
80+
France
81+
</div>
82+
</div>
7383
</div>
7484

75-
<div className={styles.office_address}>
76-
<b>QuantStack office</b> <br />
77-
16, avenue Curti <br />
78-
94100 Saint-Maur-des-Fossés <br />
79-
France
85+
<div className={"col" + " " + styles.col_social_media_and_address_mobile}>
86+
<SocialMediasQuantStack />
87+
88+
<div>
89+
<div>
90+
<b>QuantStack office</b> <br />
91+
16, avenue Curti <br />
92+
94100 Saint-Maur-des-Fossés <br />
93+
France
94+
</div>
8095
</div>
8196
</div>
8297
</div>

src/components/footer/styles.module.css

+11-5
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,23 @@
1414
display: none;
1515
}
1616

17-
.social_media_desktop {
17+
.col_social_media_desktop {
18+
display: none;
19+
}
20+
21+
.col_address_desktop {
1822
display: none;
1923
}
2024
}
2125

2226
@media only screen and (min-width: 996px) {
2327
/*Desktop*/
24-
.social_media_links_quantstack {
25-
padding-bottom: var(--ifm-spacing-xl);
28+
29+
.col_social_media_mobile {
30+
display: none;
2631
}
27-
.social_media_mobile {
28-
display: none ;
32+
33+
.col_social_media_and_address_mobile {
34+
display: none;
2935
}
3036
}

src/css/custom.css

+5-4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
justify-content: center;
7070
}
7171

72+
.flex-horizontally-centered {
73+
display: flex;
74+
justify-content: center;
75+
}
76+
7277
.horizontally-centered {
7378
justify-content: center;
7479
}
@@ -95,10 +100,6 @@ ul {
95100
}
96101

97102
/***footer*****/
98-
.address {
99-
color: var(--ifm-text-color-footer);
100-
}
101-
102103
.footer__item {
103104
color: var(--ifm-text-color-footer);
104105
}

0 commit comments

Comments
 (0)