Skip to content

Commit

Permalink
Merge pull request #161 from HaudinFlorence/revert_changes_related_to…
Browse files Browse the repository at this point in the history
…_alignments_on_PR_160

Revert changes made in PR 160 related to style on projects page
  • Loading branch information
SylvainCorlay authored Oct 23, 2024
2 parents 74f0ebc + db42937 commit 0a26269
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 28 deletions.
31 changes: 12 additions & 19 deletions src/components/projects/AllProjects.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
import { projectsDetails } from "./descriptions/projectsDetails";
import ProjectCard from "./ProjectCard";
import ProjectCard from "./ProjectCard"

export default function AllProjects() {
return (
<div
className="container flex-full-centered"
style={{ marginBottom: "var(--ifm-spacing-3xl)" }}
>
<ul className="row --no-gutters">
{projectsDetails.map((project, index) => {
return (
<li
className="projects-list"
key={index}

>
<div className="col" style={{ paddingLeft: "0" }}>
<ProjectCard project={project} />
</div>
</li>
);
<div className="container flex-full-centered" style={{marginBottom: "var(--ifm-spacing-3xl)"}}>
<ul className="row">
{projectsDetails.map((project, index) => {
return(
<li className="projects-list" key={index}>
<div className="col">
<ProjectCard project={project}/>
</div>
</li>
)
})}
</ul>
</div>
);
)
}
7 changes: 4 additions & 3 deletions src/components/projects/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ div .project_title {
}

.project_description {
padding: var(--ifm-spacing-sm) var(--ifm-spacing-xl);
padding: var(--ifm-spacing-md) var(--ifm-spacing-xl);
text-align: center;
}

.project_description p {
Expand Down Expand Up @@ -50,7 +51,7 @@ div .project_title {

.col_project_text p {
background-color: white;
text-align: center;
text-align: justify;
}

.project_picture_jupyter {
Expand Down Expand Up @@ -95,7 +96,7 @@ div .project_title {
}

.header_text p {
text-align: justify;
text-align: center;
}

.project_text {
Expand Down
7 changes: 1 addition & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ ul {
padding-left: 0;
}

ul.row {
padding-left: 0;
}

.container {
max-width: none;
padding: 0;
Expand Down Expand Up @@ -220,7 +216,7 @@ ul.row {

li {
font-size: 14px;
margin-left: 14px;
margin-left: 24px;
}

.blue-banner-container {
Expand Down Expand Up @@ -641,7 +637,6 @@ a.menu__link:active {
.cards-list {
list-style-type: none;
padding: none;
margin-left: 0;
}

.projects-list {
Expand Down

0 comments on commit 0a26269

Please sign in to comment.