Skip to content

Commit

Permalink
Fix styles padding and margin issues, add a background color on topic…
Browse files Browse the repository at this point in the history
…s cards.
  • Loading branch information
HaudinFlorence committed Oct 24, 2024
1 parent d10b612 commit 7292bc1
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 43 deletions.
5 changes: 0 additions & 5 deletions src/components/home/ProjectsOverview/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
}
}

.project_desktop {
margin-bottom: var(--ifm-spacing-3xl);
}

.h2_custom {
color: var(--ifm-color-blue-jupyter);
}
Expand All @@ -16,7 +12,6 @@
padding: var(--ifm-spacing-4xl) var(--ifm-spacing-3xl);
}


.project_yellow {
background-color: var(--ifm-color-primary-p1);
}
Expand Down
10 changes: 4 additions & 6 deletions src/components/home/WhatWeDo/Topics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ export function Topics() {
<ul className="row flex-full-centered">
{topicsDetails.map((topics, index) => (
<li className="cards-list" key={index}>
<div className="col flex-full-centered">
<TopicsCard
topics={topics}
TopicsDescriptionMD={TopicsDescriptions[index]}
/>
</div>
<TopicsCard
topics={topics}
TopicsDescriptionMD={TopicsDescriptions[index]}
/>
</li>
))}
</ul>
Expand Down
31 changes: 11 additions & 20 deletions src/components/home/WhatWeDo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,20 @@ import LinkToProjects from "../LinkToProjects";

export function WhatWeDo() {
return (
<div className={"container" + " " + styles.whatwedo_container}>
<div className="row">
<div className="col flex-full-centered">
<div className={styles.services_link_mobile}>
<LinkToServices label={"DISCOVER OUR SERVICES"} />
</div>
<div className={"container" + styles.whatwedo_container}>
<div className="row flex-full-centered">
<div className={styles.services_link_mobile}>
<LinkToServices label={"DISCOVER OUR SERVICES"} />
</div>
</div>
<div className="row">
<div className="col flex-full-centered">
<h1 className={styles.header}> What we do </h1>
</div>
<div className={"row flex-full-centered"}>
<h1 className={styles.header}> What we do </h1>
<Topics />
</div>
<div className="row">
<div className="col flex-full-centered">
<Topics />
</div>
</div>
<div className="row">
<div className="col flex-full-centered">
<div className={styles.projects_link}>
<LinkToProjects label={"DISCOVER ALL OF OUR PROJECTS"} />
</div>
<div className="row flex-full-centered">
<div className={styles.projects_link}>
<LinkToProjects label={"DISCOVER ALL OF OUR PROJECTS"} />

<div className={styles.services_link_desktop}>
<LinkToServices label={"DISCOVER OUR SERVICES"} />
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/home/WhatWeDo/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ div .topics_header {
display: none;
}


.whatwedo_container {
/*background-color: var(--ifm-color-primary-p1);*/
padding: 0;
margin-top: 0;
}

.topics_card {
width: 100%;
padding: var(--ifm-spacing-lg) var(--ifm-spacing-lg);
width: 80%;
text-align: justify;
background-color: var(--ifm-color-primary-p0);
margin: var(--ifm-spacing-lg) auto var(--ifm-spacing-lg) auto ;
}

.topics_card .p {
padding: var(--ifm-spacing-lg) var(--ifm-spacing-lg);
padding: var(--ifm-spacing-xs) var(--ifm-spacing-xs);
}


Expand Down
1 change: 0 additions & 1 deletion src/components/home/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
font-weight: 700;
}


.link_to_about_us {
background-color: var(--ifm-color-primary-p1);
color: var(--ifm-text-color-on-primary-p1);
Expand Down
21 changes: 14 additions & 7 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@

ul {
padding-left: 0;
margin-left:0;
margin-left: 0;
}

.container {
Expand Down Expand Up @@ -183,6 +183,9 @@ ul {
.row-with-margins {
margin: var(--ifm-spacing-xl) 0;
}
.col {
padding: 0;
}

h1 {
color: var(--ifm-text-color-main-title);
Expand Down Expand Up @@ -212,7 +215,7 @@ ul {
line-height: 150%;
line-height: 20px;
letter-spacing: 0.25px;
padding: 0 var(--ifm-spacing-lg)
padding: 0 var(--ifm-spacing-lg);
}

li {
Expand Down Expand Up @@ -298,7 +301,6 @@ ul {
margin: var(--ifm-spacing-2xl) 0;
}


h1 {
color: var(--ifm-color-primary-p2);
font-family: var(--ifm-font-family-bebas-neue);
Expand Down Expand Up @@ -638,13 +640,18 @@ a.menu__link:active {

.cards-list {
list-style-type: none;
padding: none;
margin-left: 0;
padding: 0;
margin: 0;
}

ul.row {
margin: 0;
padding: 0;
}

.projects-list {
list-style-type: none;
padding: none;
margin-left:0;
margin-left: 0;
width: 100%;
}
}

0 comments on commit 7292bc1

Please sign in to comment.