Skip to content

Commit 5d7d008

Browse files
committed
fix(hero): increase title size and center on mobile viewports
1 parent 0d064df commit 5d7d008

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/components/slides/Slide01Hero.svelte

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,21 @@
281281
}
282282
283283
@media (max-width: 768px) {
284-
.title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
284+
.title {
285+
font-size: clamp(3.5rem, 13vw, 5.5rem);
286+
text-align: center;
287+
width: 100%;
288+
}
285289
.tools-row { gap: var(--spacing-xs); }
286290
.author-card { padding: var(--spacing-md) var(--spacing-lg); }
287291
}
288292
289293
@media (max-width: 480px) {
290-
.title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
294+
.title {
295+
font-size: clamp(3rem, 13vw, 4.5rem);
296+
text-align: center;
297+
width: 100%;
298+
}
291299
.subtitle { font-size: 1rem; }
292300
.author-avatar { width: 42px; height: 42px; }
293301
.tool-badge {
@@ -304,7 +312,9 @@
304312
}
305313
306314
.title {
307-
font-size: clamp(1.8rem, 9vw, 2.8rem);
315+
font-size: clamp(2.6rem, 12vw, 3.5rem);
316+
text-align: center;
317+
width: 100%;
308318
line-height: 1.1;
309319
}
310320

0 commit comments

Comments
 (0)