Skip to content

Commit 325f649

Browse files
Fix align on the projects page.
1 parent 3abbbfa commit 325f649

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.github/workflows/static.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
steps:
5252
- name: Deploy to GitHub Pages
5353
id: deployment
54-
uses: actions/deploy-pages@v4
54+
uses: actions/deploy-pages@v4

src/components/projects/AllProjects.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import ProjectCard from "./ProjectCard"
55
export default function AllProjects() {
66
return (
77
<div className="container flex-full-centered" style={{marginBottom: "var(--ifm-spacing-3xl)"}}>
8-
<ul className="row">
8+
<ul className="row--no-gutters" style={{paddingLeft: "0"}}>
99
{projectsDetails.map((project, index) => {
1010
return(
1111
<li className="projects-list" key={index}>
12-
<div className="col">
12+
<div className="col" style={{padding:"0 0"}}>
1313
<ProjectCard project={project}/>
1414
</div>
1515
</li>

src/components/projects/ProjectCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function ProjectCard({ project }): JSX.Element {
55
const base = `${prefix}${project.name}`
66
return (
77
<div className="container">
8-
<div className="row row--no-gutters horizontally-centered">
8+
<div className="row row--no-gutters">
99
<div
1010
className={"col col--6 col" + " " + styles.project_text}
1111
>

src/components/projects/styles.module.css

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

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

@@ -46,12 +45,13 @@ div .project_title {
4645
letter-spacing: 0.25px;
4746
text-align: center;
4847
margin-bottom: var(--ifm-spacing-lg);
49-
padding: var(--ifm-spacing-lg) var(--ifm-spacing-2xl);
48+
padding: var(--ifm-spacing-lg) var(--ifm-spacing-xl);
5049
}
5150

52-
.col_project_text p {
51+
.project_text {
5352
background-color: white;
5453
text-align: justify;
54+
padding: var(--ifm-spacing-lg) var(--ifm-spacing-2xl)
5555
}
5656

5757
.project_picture_jupyter {

src/css/custom.css

+4-3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292

9393
ul {
9494
padding-left: 0;
95+
margin-left:0;
9596
}
9697

9798
.container {
@@ -211,7 +212,7 @@ ul {
211212
line-height: 150%;
212213
line-height: 20px;
213214
letter-spacing: 0.25px;
214-
text-align: center;
215+
padding: 0 var(--ifm-spacing-2xl)
215216
}
216217

217218
li {
@@ -641,6 +642,6 @@ a.menu__link:active {
641642

642643
.projects-list {
643644
list-style-type: none;
644-
padding: none;
645-
width: 100%;
645+
padding-left: 0;
646+
margin-left: 0;
646647
}

0 commit comments

Comments
 (0)