Skip to content

Commit 5bf4f17

Browse files
committed
chore(dev-hub) Integration Card final edit
1 parent 6f0f8dd commit 5bf4f17

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

apps/developer-hub/src/components/ProductCard/index.module.scss

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
display: flex;
66
flex-direction: column;
77
height: 100%;
8-
max-width: 28rem; // 448px - prevents cards from being too wide
8+
max-width: 28rem;
99
padding: 1.5rem; // 24px
1010
border: 1px solid var(--color-fd-border);
1111
border-radius: 1.5rem; // 24px
@@ -29,13 +29,13 @@
2929
gap: 2rem; // 32px
3030
height: 100%;
3131
flex: 1;
32-
overflow: hidden;
32+
overflow: visible;
3333
}
3434

3535
.mainContent {
3636
display: flex;
3737
flex-direction: column;
38-
gap: 2.5rem; // 40px
38+
gap: 3rem;
3939
padding-top: 0;
4040
padding-bottom: 0;
4141
flex: 1;
@@ -78,7 +78,7 @@
7878
letter-spacing: -0.03em; // -0.9px
7979
color: var(--color-fd-foreground);
8080
white-space: nowrap;
81-
overflow: hidden;
81+
overflow: visble;
8282
text-overflow: ellipsis;
8383
flex-shrink: 0;
8484
}
@@ -91,11 +91,11 @@
9191
letter-spacing: -0.01em; // -0.16px
9292
color: var(--color-fd-foreground);
9393
opacity: 0.9;
94-
max-width: 20rem; // 320px
95-
overflow: hidden;
94+
max-width: 20rem;
95+
overflow: visible;
9696
display: -webkit-box;
97-
-webkit-line-clamp: 3; // Limit to 2 lines
98-
line-clamp: 3; // Standard property for compatibility
97+
-webkit-line-clamp: 3;
98+
line-clamp: 3;
9999
-webkit-box-orient: vertical;
100100
flex: 1;
101101
}
@@ -104,23 +104,23 @@
104104
display: flex;
105105
flex-direction: column;
106106
gap: 1.5rem; // 24px
107-
min-height: 9rem; // 96px - fixed minimum height to keep QUICK LINKS at consistent position
108-
max-height: 9rem; // 96px - fixed maximum height
109-
overflow: hidden;
107+
min-height: 12rem;
108+
max-height: 12rem;
109+
overflow: visible;
110110
}
111111

112112
.quickLinksSection {
113113
display: flex;
114114
flex-direction: column;
115-
gap: 1.5rem; // 24px
115+
gap: 1.5rem;
116116
}
117117

118118
.sectionLabel {
119119
margin: 0;
120-
font-size: 0.6875rem; // 11px
120+
font-size: 0.6875rem;
121121
font-weight: 500;
122-
line-height: 1.82; // 20px
123-
letter-spacing: -0.01em; // -0.11px
122+
line-height: 1.82;
123+
letter-spacing: -0.01em;
124124
color: var(--color-fd-foreground);
125125
opacity: 0.5;
126126
text-transform: uppercase;
@@ -129,21 +129,21 @@
129129

130130
.features {
131131
display: flex;
132-
flex-wrap: wrap;
132+
flex-direction: column;
133133
gap: 0.5rem; // 8px
134-
overflow: hidden;
135-
max-height: 8rem; // 128px - limit features container height
136134
}
137135

138136
.featureItem {
139137
position: relative;
140138
display: flex;
141139
align-items: center;
142140
gap: 0.5rem; // 8px
143-
padding: 0.3125rem 0.8125rem 0.3125rem 0.5rem; // 5px 13px 5px 8px
144-
border: 1px solid var(--color-fd-border);
141+
padding: 0.3125rem 0.8125rem 0.3125rem 0.5rem;
142+
border: 1px solid var(--color-fd-border, #ddd4d4);
145143
border-radius: 1.3125rem; // 21px
146144
background-color: var(--color-fd-card);
145+
justify-content: left;
146+
box-shadow: 0 0 4px 0 rgb(255 255 255 / 25%) inset;
147147
}
148148

149149
.featureIcon {
@@ -170,7 +170,7 @@
170170
inset: 0;
171171
pointer-events: none;
172172
box-shadow: inset 0 0 4px 0 rgb(255 255 255 / 25%);
173-
border-radius: 1.3125rem; // 21px
173+
border-radius: 1.32rem; // 21px
174174
}
175175

176176
.quickLinks {

apps/developer-hub/src/components/ProductCard/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type QuickLink = {
2222
type ProductCardProps = {
2323
title: string;
2424
description?: string;
25+
icon?: ReactNode;
2526
features?: Feature[];
2627
quickLinks?: QuickLink[];
2728
buttonLabel?: string;
@@ -33,6 +34,7 @@ type ProductCardProps = {
3334
export function ProductCard({
3435
title,
3536
description,
37+
icon,
3638
features,
3739
quickLinks,
3840
buttonLabel,
@@ -59,6 +61,7 @@ export function ProductCard({
5961
<div className={styles.header}>
6062
<h3 className={styles.title}>{title}</h3>
6163
{description && <p className={styles.description}>{description}</p>}
64+
{icon && <div className={styles.icon}>{icon}</div>}
6265
</div>
6366

6467
{features && features.length > 0 && (

0 commit comments

Comments
 (0)