Skip to content

Commit aa876f7

Browse files
committed
Equalize join card layout
1 parent 95d9ebc commit aa876f7

23 files changed

Lines changed: 49 additions & 5 deletions

src/components/Join.astro

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,16 @@ const contactHref = `#${join.contact.anchorId}`;
125125
.join__grid {
126126
display: grid;
127127
grid-template-columns: repeat(3, minmax(0, 1fr));
128+
align-items: stretch;
128129
gap: clamp(1rem, 0.65rem + 1.4vw, 1.75rem);
129130
}
130131
.join__card {
131132
/* Softer than the pricing tiers: raised fill, light hairline, gentle lift. */
132133
display: flex;
133134
flex-direction: column;
134135
gap: var(--space-xs);
136+
min-width: 0;
137+
min-height: 18rem;
135138
background: var(--bg-raised);
136139
border: 1.5px solid var(--hairline-strong);
137140
box-shadow: var(--shadow-px-sm);
@@ -164,18 +167,22 @@ const contactHref = `#${join.contact.anchorId}`;
164167
.join__card-title {
165168
font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
166169
letter-spacing: -0.02em;
170+
min-height: 2.08em;
167171
}
168172
.join__card-body {
169173
color: var(--fg-soft);
170174
font-size: var(--step--1);
171175
line-height: 1.5;
172-
max-width: 38ch;
173-
/* push the CTA to the foot so cards align */
174-
margin-bottom: auto;
176+
max-width: none;
177+
margin-bottom: 0;
175178
}
176179
.join__card-cta {
177-
align-self: flex-start;
178-
margin-top: var(--space-2xs);
180+
align-self: stretch;
181+
justify-content: space-between;
182+
width: 100%;
183+
min-height: 3.5rem;
184+
margin-top: auto;
185+
white-space: nowrap;
179186
}
180187
.join__card-cta span {
181188
transition: transform 0.18s var(--ease-out);
@@ -255,6 +262,9 @@ const contactHref = `#${join.contact.anchorId}`;
255262
.join__grid {
256263
grid-template-columns: 1fr;
257264
}
265+
.join__card {
266+
min-height: 17.25rem;
267+
}
258268
.join__card-body {
259269
max-width: none;
260270
}
-1.7 KB
Loading
-2.15 KB
Loading
2.26 KB
Loading
2.46 KB
Loading
-25 Bytes
Loading
558 Bytes
Loading
3.6 KB
Loading
-2.17 KB
Loading
-2.21 KB
Loading

0 commit comments

Comments
 (0)