Skip to content

Commit 6f3ed89

Browse files
committed
Projects: unify card background across text and image columns
1 parent dee7a1b commit 6f3ed89

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/components/projects/ProjectCard.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export default function ProjectCard({ project }): JSX.Element {
2626
);
2727

2828
return (
29-
<div className="row row--no-gutters">
30-
{isReverse ? <>{imageCol}{textCol}</> : <>{textCol}{imageCol}</>}
29+
<div className={styles.project_row}>
30+
<div className="row row--no-gutters">
31+
{isReverse ? <>{imageCol}{textCol}</> : <>{textCol}{imageCol}</>}
32+
</div>
3133
</div>
3234
);
3335
}

src/components/projects/styles.module.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
color: var(--ifm-color-primary-p2);
2020
}
2121

22+
/* Unified card wrapper — gives both text and image columns the same background */
23+
.project_row {
24+
border-radius: 10px;
25+
overflow: hidden;
26+
margin-bottom: var(--ifm-spacing-xl);
27+
background-color: var(--ifm-color-orange-light);
28+
}
29+
2230
/* Logo wrapper — border is on the inner box, not the full column */
2331
.project_logo {
2432
max-width: 160px;
@@ -96,7 +104,6 @@
96104
}
97105

98106
.project_text {
99-
background-color: white;
100107
padding: var(--ifm-spacing-lg);
101108
}
102109

@@ -130,9 +137,6 @@
130137
}
131138

132139
.project_text {
133-
background-color: var(--ifm-color-orange-light);
134-
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-2xl);
135-
margin-bottom: var(--ifm-spacing-lg);
136-
border-radius: 10px;
140+
padding: var(--ifm-spacing-2xl);
137141
}
138142
}

0 commit comments

Comments
 (0)