Skip to content

Commit 3924d93

Browse files
Fix style and alignment issues for the mobile design.
1 parent 053a0b1 commit 3924d93

File tree

9 files changed

+54
-30
lines changed

9 files changed

+54
-30
lines changed

Diff for: .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

Diff for: src/components/about/styles.module.css

+9-4
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;
141+
height: 420px;
142142
width: 264px;
143-
padding: var(--ifm-spacing-xl) var(--ifm-spacing-lg);
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,7 +194,7 @@ div .join_the_team_text {
189194
@media only screen and (min-width: 996px) {
190195
/*Desktop*/
191196
.value_card {
192-
height: 540px;
197+
height: 460px;
193198
width: 264px;
194199
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg);
195200
border-radius: 8px;

Diff for: 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
}

Diff for: src/components/projects/AllProjects.tsx

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

45
export default function AllProjects() {
56
return (
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-
)
7+
<div
8+
className={
9+
"container flex-full-centered" + " " + styles.all_projects_container
10+
}
11+
>
12+
<ul className="row --no-gutters">
13+
{projectsDetails.map((project, index) => {
14+
return (
15+
<li className="projects-list" key={index}>
16+
<div className="col" style={{ paddingLeft: "0" }}>
17+
<ProjectCard project={project} />
18+
</div>
19+
</li>
20+
);
1621
})}
1722
</ul>
1823
</div>

Diff for: 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
>

Diff for: src/components/projects/styles.module.css

+12-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ div .project_title {
1717

1818
.project_description {
1919
padding: var(--ifm-spacing-md) var(--ifm-spacing-xl);
20-
text-align: center;
20+
text-align: justify;
2121
}
2222

2323
.project_description p {
@@ -26,6 +26,10 @@ div .project_title {
2626

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

3034
.header_container {
3135
padding-top: var(--ifm-spacing-2xl);
@@ -44,12 +48,12 @@ div .project_title {
4448
font-weight: 400;
4549
line-height: 20px;
4650
letter-spacing: 0.25px;
47-
text-align: center;
51+
text-align: justify;
4852
margin-bottom: var(--ifm-spacing-lg);
49-
padding: var(--ifm-spacing-lg) var(--ifm-spacing-2xl);
53+
padding: var(--ifm-spacing-lg) var(--ifm-spacing-xl);
5054
}
5155

52-
.col_project_text p {
56+
.project_text {
5357
background-color: white;
5458
text-align: justify;
5559
}
@@ -77,6 +81,10 @@ div .project_title {
7781

7882
@media only screen and (min-width: 996px) {
7983
/*Desktop*/
84+
85+
.all_projects_container {
86+
margin: 0 0 var(--ifm-spacing-5xl) 0 ;
87+
}
8088
.header_container {
8189
margin-top: var(--ifm-spacing-6xl);
8290
}
@@ -95,10 +103,6 @@ div .project_title {
95103
padding: var(--ifm-spacing-lg) var(--ifm-spacing-4xl);
96104
}
97105

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

Diff for: 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>

Diff for: 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>

Diff for: src/css/custom.css

+6-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
.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-lg)
215216
}
216217

217218
li {
@@ -297,6 +298,7 @@ ul {
297298
margin: var(--ifm-spacing-2xl) 0;
298299
}
299300

301+
300302
h1 {
301303
color: var(--ifm-color-primary-p2);
302304
font-family: var(--ifm-font-family-bebas-neue);
@@ -637,10 +639,12 @@ a.menu__link:active {
637639
.cards-list {
638640
list-style-type: none;
639641
padding: none;
642+
margin-left: 0;
640643
}
641644

642645
.projects-list {
643646
list-style-type: none;
644647
padding: none;
648+
margin-left:0;
645649
width: 100%;
646-
}
650+
}

0 commit comments

Comments
 (0)