Skip to content

Commit 125c513

Browse files
Fix alignments issues on the mobile design.
1 parent dec1a63 commit 125c513

File tree

3 files changed

+28
-18
lines changed

3 files changed

+28
-18
lines changed
+18-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
import { projectsDetails } from "./descriptions/projectsDetails";
2-
import ProjectCard from "./ProjectCard"
3-
2+
import ProjectCard from "./ProjectCard";
43

54
export default function AllProjects() {
65
return (
7-
<div className="container flex-full-centered" style={{marginBottom: "var(--ifm-spacing-3xl)"}}>
8-
<ul className="row">
6+
<div
7+
className="container flex-full-centered"
8+
style={{ marginBottom: "var(--ifm-spacing-3xl)" }}
9+
>
10+
<ul className="row --no-gutters">
911
{projectsDetails.map((project, index) => {
10-
return(
11-
<li className="projects-list" key={index}>
12-
<div className="col">
13-
<ProjectCard project={project}/>
14-
</div>
15-
</li>
16-
)
12+
return (
13+
<li
14+
className="projects-list"
15+
key={index}
16+
17+
>
18+
<div className="col" style={{ paddingLeft: "0" }}>
19+
<ProjectCard project={project} />
20+
</div>
21+
</li>
22+
);
1723
})}
1824
</ul>
1925
</div>
20-
)
26+
);
2127
}

src/components/projects/styles.module.css

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ div .project_title {
1616
}
1717

1818
.project_description {
19-
padding: var(--ifm-spacing-md) var(--ifm-spacing-xl);
20-
text-align: center;
19+
padding: var(--ifm-spacing-sm) var(--ifm-spacing-xl);
2120
}
2221

2322
.project_description p {
@@ -51,7 +50,7 @@ div .project_title {
5150

5251
.col_project_text p {
5352
background-color: white;
54-
text-align: justify;
53+
text-align: center;
5554
}
5655

5756
.project_picture_jupyter {
@@ -96,7 +95,7 @@ div .project_title {
9695
}
9796

9897
.header_text p {
99-
text-align: center;
98+
text-align: justify;
10099
}
101100

102101
.project_text {

src/css/custom.css

+7-2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ ul {
9494
padding-left: 0;
9595
}
9696

97+
ul.row {
98+
padding-left: 0;
99+
}
100+
97101
.container {
98102
max-width: none;
99103
padding: 0;
@@ -216,7 +220,7 @@ ul {
216220

217221
li {
218222
font-size: 14px;
219-
margin-left: 24px;
223+
margin-left: 14px;
220224
}
221225

222226
.blue-banner-container {
@@ -637,10 +641,11 @@ a.menu__link:active {
637641
.cards-list {
638642
list-style-type: none;
639643
padding: none;
644+
margin-left: 0;
640645
}
641646

642647
.projects-list {
643648
list-style-type: none;
644649
padding: none;
645650
width: 100%;
646-
}
651+
}

0 commit comments

Comments
 (0)