Skip to content

Commit 7f62831

Browse files
Fix style and alignment issues for the mobile design.
1 parent a48df42 commit 7f62831

File tree

9 files changed

+44
-29
lines changed

9 files changed

+44
-29
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/about/styles.module.css

+11-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
line-height: 20px;
2525
letter-spacing: 0.25px;
2626
color: var(--ifm-text-color-on-primary-p1);
27-
text-align: center;
27+
text-align: justify;
2828
}
2929

3030
div .row {
@@ -138,9 +138,9 @@ div .join_the_team_text {
138138
@media only screen and (max-width: 996px) {
139139
/*Mobile*/
140140
.value_card {
141-
height: 400px;
142-
width: 264px;
143-
padding: var(--ifm-spacing-xl) var(--ifm-spacing-lg);
141+
height: 420px;
142+
width: 280px;
143+
padding: var(--ifm-spacing-lg) var(--ifm-spacing-md);
144144
border-radius: 8px;
145145
box-shadow: 0px 0px 8px 1px #c8c8c7;
146146
background-color: var(--ifm-color-primary-p1);
@@ -158,6 +158,11 @@ div .join_the_team_text {
158158
color: var(--ifm-text-color-on-primary-p1);
159159
}
160160

161+
.value_text p {
162+
text-align: justify;
163+
padding: 0;
164+
}
165+
161166
.large_portrait_card {
162167
width: 100%;
163168
height: 100%;
@@ -189,8 +194,8 @@ div .join_the_team_text {
189194
@media only screen and (min-width: 996px) {
190195
/*Desktop*/
191196
.value_card {
192-
height: 540px;
193-
width: 264px;
197+
height: 460px;
198+
width: 300px;
194199
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg);
195200
border-radius: 8px;
196201
box-shadow: 0px 0px 8px 1px #c8c8c7;

src/components/home/WhatWeDo/styles.module.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ div .topics_header {
2727

2828
.topics_card {
2929
width: 100%;
30-
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg);
30+
padding: var(--ifm-spacing-lg) var(--ifm-spacing-lg);
31+
text-align: justify;
32+
}
33+
34+
.topics_card .p {
35+
padding: var(--ifm-spacing-lg) var(--ifm-spacing-lg);
3136
}
3237

38+
3339
.services_link_desktop {
3440
display: none;
3541
}

src/components/projects/AllProjects.tsx

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
import { projectsDetails } from "./descriptions/projectsDetails";
22
import ProjectCard from "./ProjectCard";
3+
import styles from "./styles.module.css";
34

45
export default function AllProjects() {
56
return (
67
<div
7-
className="container flex-full-centered"
8-
style={{ marginBottom: "var(--ifm-spacing-3xl)" }}
8+
className={
9+
"container flex-full-centered" + " " + styles.all_projects_container
10+
}
911
>
1012
<ul className="row --no-gutters">
1113
{projectsDetails.map((project, index) => {
1214
return (
13-
<li
14-
className="projects-list"
15-
key={index}
16-
17-
>
15+
<li className="projects-list" key={index}>
1816
<div className="col" style={{ paddingLeft: "0" }}>
1917
<ProjectCard project={project} />
2018
</div>

src/components/projects/ProjectCard.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ 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
10-
className={"col col--6 col" + " " + styles.project_text}
10+
className={"col col--6 col col--offset-1" + " " + styles.project_text}
1111
>
1212
<div className={styles.project_title}>{project.title}</div>
1313
<div className={styles.project_description}>

src/components/projects/styles.module.css

+12-8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ div .project_title {
2525

2626
@media only screen and (max-width: 996px) {
2727
/*Mobile*/
28+
.all_projects_container {
29+
margin-bottom: var(--ifm-spacing-3xl);
30+
31+
}
2832

2933
.header_container {
3034
padding-top: var(--ifm-spacing-2xl);
@@ -43,14 +47,14 @@ div .project_title {
4347
font-weight: 400;
4448
line-height: 20px;
4549
letter-spacing: 0.25px;
46-
text-align: center;
50+
text-align: justify;
4751
margin-bottom: var(--ifm-spacing-lg);
48-
padding: var(--ifm-spacing-lg) var(--ifm-spacing-2xl);
52+
padding: var(--ifm-spacing-lg) var(--ifm-spacing-xl);
4953
}
5054

51-
.col_project_text p {
55+
.project_text {
5256
background-color: white;
53-
text-align: center;
57+
text-align: justify;
5458
}
5559

5660
.project_picture_jupyter {
@@ -76,6 +80,10 @@ div .project_title {
7680

7781
@media only screen and (min-width: 996px) {
7882
/*Desktop*/
83+
84+
.all_projects_container {
85+
margin: 0 0 var(--ifm-spacing-5xl) 0 ;
86+
}
7987
.header_container {
8088
margin-top: var(--ifm-spacing-6xl);
8189
}
@@ -94,10 +102,6 @@ div .project_title {
94102
padding: var(--ifm-spacing-lg) var(--ifm-spacing-4xl);
95103
}
96104

97-
.header_text p {
98-
text-align: justify;
99-
}
100-
101105
.project_text {
102106
background-color: var(--ifm-color-orange-light);
103107
padding: var(--ifm-spacing-4xl) var(--ifm-spacing-3xl);

src/components/services/SpecialProjects.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function SpecialProjects() {
77
<div className="main-container-with-margins">
88
<div className="container upper-container-with-margin-top">
99
<div className="row">
10-
<div className="col col--4 col--offset-2">
10+
<div className={"col col--4 col--offset-2"} style={{textAlign:"justify"}}>
1111
<h2>Special projects</h2>
1212
<SpecialProjectsMD />
1313
</div>

src/components/services/Support.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Support() {
1111
<SupportIllustration height={"280px"} alt="Illustration for the support section, showing symbolically a person indicating the direction to take." />
1212
</div>
1313
</div>
14-
<div className={"col col--6"}>
14+
<div className={"col col--6"} style={{textAlign:"justify"}}>
1515
<h2>Professional Support</h2>
1616
<SupportMD />
1717
</div>

src/css/custom.css

+4-2
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
ul.row {
@@ -215,7 +216,7 @@ ul.row {
215216
line-height: 150%;
216217
line-height: 20px;
217218
letter-spacing: 0.25px;
218-
text-align: center;
219+
padding: 0 var(--ifm-spacing-lg)
219220
}
220221

221222
li {
@@ -301,6 +302,7 @@ ul.row {
301302
margin: var(--ifm-spacing-2xl) 0;
302303
}
303304

305+
304306
h1 {
305307
color: var(--ifm-color-primary-p2);
306308
font-family: var(--ifm-font-family-bebas-neue);
@@ -648,4 +650,4 @@ a.menu__link:active {
648650
list-style-type: none;
649651
padding: none;
650652
width: 100%;
651-
}
653+
}

0 commit comments

Comments
 (0)