Skip to content

Commit 14538b0

Browse files
Layout fixes.
1 parent 7e9d2cb commit 14538b0

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

src/components/Hero2026.astro

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,15 @@
7373
text-align: center;
7474
padding: 3.5rem 1.5rem 2.5rem;
7575
max-width: 720px;
76+
width: 100%;
7677
margin: 0 auto;
78+
box-sizing: border-box;
79+
min-width: 0;
7780
}
7881

7982
.hero-eyebrow {
8083
display: inline-block;
84+
max-width: 100%;
8185
margin: 0 0 1.25rem;
8286
padding: 0.35rem 0.85rem;
8387
border-radius: 999px;
@@ -130,6 +134,9 @@
130134
justify-content: center;
131135
gap: 0.75rem;
132136
margin-bottom: 2rem;
137+
width: 100%;
138+
max-width: 100%;
139+
box-sizing: border-box;
133140
}
134141

135142
.date-pill {
@@ -140,7 +147,10 @@
140147
border-radius: 1rem;
141148
background: rgba(255, 255, 255, 0.08);
142149
border: 1px solid rgba(255, 255, 255, 0.14);
143-
min-width: 8.5rem;
150+
flex: 1 1 calc(50% - 0.375rem);
151+
min-width: 0;
152+
max-width: 100%;
153+
box-sizing: border-box;
144154
}
145155

146156
.date-pill--primary {
@@ -166,6 +176,9 @@
166176
flex-wrap: wrap;
167177
justify-content: center;
168178
gap: 0.75rem;
179+
width: 100%;
180+
max-width: 100%;
181+
box-sizing: border-box;
169182
}
170183

171184
.btn {
@@ -177,6 +190,8 @@
177190
font-size: 1rem;
178191
font-weight: 700;
179192
text-decoration: none;
193+
box-sizing: border-box;
194+
max-width: 100%;
180195
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
181196
}
182197

@@ -252,6 +267,18 @@
252267
padding: 2.5rem 1rem 2rem;
253268
}
254269

270+
.hero-dates {
271+
flex-direction: column;
272+
align-items: stretch;
273+
width: 100%;
274+
}
275+
276+
.date-pill {
277+
flex: none;
278+
width: 100%;
279+
max-width: 100%;
280+
}
281+
255282
.schedule-strip {
256283
grid-template-columns: 1fr;
257284
}
@@ -262,6 +289,7 @@
262289
}
263290

264291
.btn {
292+
display: flex;
265293
width: 100%;
266294
}
267295
}

0 commit comments

Comments
 (0)