Skip to content

Commit 0a26269

Browse files
authoredOct 23, 2024··
Merge pull request #161 from HaudinFlorence/revert_changes_related_to_alignments_on_PR_160
Revert changes made in PR 160 related to style on projects page
2 parents 74f0ebc + db42937 commit 0a26269

File tree

3 files changed

+17
-28
lines changed

3 files changed

+17
-28
lines changed
 
+12-19
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
import { projectsDetails } from "./descriptions/projectsDetails";
2-
import ProjectCard from "./ProjectCard";
2+
import ProjectCard from "./ProjectCard"
33

44
export default function AllProjects() {
55
return (
6-
<div
7-
className="container flex-full-centered"
8-
style={{ marginBottom: "var(--ifm-spacing-3xl)" }}
9-
>
10-
<ul className="row --no-gutters">
11-
{projectsDetails.map((project, index) => {
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-
);
6+
<div className="container flex-full-centered" style={{marginBottom: "var(--ifm-spacing-3xl)"}}>
7+
<ul className="row">
8+
{projectsDetails.map((project, index) => {
9+
return(
10+
<li className="projects-list" key={index}>
11+
<div className="col">
12+
<ProjectCard project={project}/>
13+
</div>
14+
</li>
15+
)
2316
})}
2417
</ul>
2518
</div>
26-
);
19+
)
2720
}

‎src/components/projects/styles.module.css

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

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

2223
.project_description p {
@@ -50,7 +51,7 @@ div .project_title {
5051

5152
.col_project_text p {
5253
background-color: white;
53-
text-align: center;
54+
text-align: justify;
5455
}
5556

5657
.project_picture_jupyter {
@@ -95,7 +96,7 @@ div .project_title {
9596
}
9697

9798
.header_text p {
98-
text-align: justify;
99+
text-align: center;
99100
}
100101

101102
.project_text {

‎src/css/custom.css

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

97-
ul.row {
98-
padding-left: 0;
99-
}
100-
10197
.container {
10298
max-width: none;
10399
padding: 0;
@@ -220,7 +216,7 @@ ul.row {
220216

221217
li {
222218
font-size: 14px;
223-
margin-left: 14px;
219+
margin-left: 24px;
224220
}
225221

226222
.blue-banner-container {
@@ -641,7 +637,6 @@ a.menu__link:active {
641637
.cards-list {
642638
list-style-type: none;
643639
padding: none;
644-
margin-left: 0;
645640
}
646641

647642
.projects-list {

0 commit comments

Comments
 (0)
Please sign in to comment.