Skip to content

Commit 59fa864

Browse files
vanrensbirdclaude
andcommitted
site: scale the homepage hero B to 90%
Version B was reviewed at 90% browser zoom, so at 100% everything in the hero read about 10% too large: the headline, pitch, card art, CTAs, command pill, labels, proof line and gaps. They are now 90% of the first build, including the window-relative sizes. The content width (lined up with the header) and the space cleared for the header are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5091fd4 commit 59fa864

3 files changed

Lines changed: 56 additions & 53 deletions

File tree

‎apps/site/src/components/sections/hero-home-b-client.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export function CommandCopy({ command, ctaLocation }: { command: string; ctaLoca
8585
>
8686
{copied ? (
8787
<svg
88-
width="16"
89-
height="16"
88+
width="14"
89+
height="14"
9090
viewBox="0 0 24 24"
9191
fill="none"
9292
stroke="#009aaa"
@@ -99,8 +99,8 @@ export function CommandCopy({ command, ctaLocation }: { command: string; ctaLoca
9999
</svg>
100100
) : (
101101
<svg
102-
width="16"
103-
height="16"
102+
width="14"
103+
height="14"
104104
viewBox="0 0 24 24"
105105
fill="none"
106106
stroke="currentColor"

‎apps/site/src/components/sections/hero-home-b.module.css‎

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
min-height: min(100vh, 1120px);
3636
min-height: min(100svh, 1120px);
3737
padding-top: clamp(112px, 14vh, 140px);
38-
padding-bottom: clamp(40px, 7vh, 80px);
38+
padding-bottom: clamp(36px, 6.3vh, 72px);
3939
box-sizing: border-box;
4040
}
4141

@@ -169,7 +169,10 @@
169169
}
170170
}
171171

172-
/* ---- layout --------------------------------------------------------------- */
172+
/* ---- layout ----------------------------------------------------------------
173+
* Sizes are 90% of the first build: the design was reviewed at 90% browser
174+
* zoom. The content width and the header clearance are not scaled.
175+
*/
173176

174177
.wrap {
175178
position: relative;
@@ -186,13 +189,13 @@
186189
both CTAs and the proof line all fit in the frame; taller screens get the
187190
full sizes. */
188191
.heroSection {
189-
padding-bottom: clamp(28px, 5vh, 56px);
192+
padding-bottom: clamp(25px, 4.5vh, 50px);
190193
}
191194

192195
.hero {
193196
display: grid;
194197
grid-template-columns: auto minmax(0, 1fr);
195-
column-gap: 72px;
198+
column-gap: 64px;
196199
align-items: end;
197200
}
198201

@@ -202,7 +205,7 @@
202205
font-weight: 685;
203206
/* The smaller of the window's width and height decides, so the hero fills the
204207
first screen on any display without pushing the CTAs or proof below it. */
205-
font-size: clamp(52px, min(7.6vw, 12.4vh), 140px);
208+
font-size: clamp(47px, min(6.84vw, 11.16vh), 126px);
206209
line-height: 0.98;
207210
letter-spacing: -0.045em;
208211
color: #151515;
@@ -212,16 +215,16 @@
212215
justify-self: end;
213216
display: flex;
214217
flex-direction: column;
215-
gap: 18px;
216-
max-width: 460px;
217-
padding-bottom: 22px;
218-
padding-left: 36px;
218+
gap: 16px;
219+
max-width: 414px;
220+
padding-bottom: 20px;
221+
padding-left: 32px;
219222
border-left: 1px solid rgb(21 21 21 / 0.14);
220223
}
221224

222225
.pitch {
223226
margin: 0;
224-
font-size: 21px;
227+
font-size: 19px;
225228
line-height: 1.5;
226229
letter-spacing: -0.005em;
227230
color: #3a3b3c;
@@ -232,7 +235,7 @@
232235
align-items: center;
233236
gap: 8px;
234237
align-self: flex-start;
235-
font-size: 15px;
238+
font-size: 13.5px;
236239
color: #3a3b3c;
237240
text-decoration: none;
238241
}
@@ -354,7 +357,7 @@ a:hover .arrow {
354357
.card {
355358
overflow: hidden;
356359
border: 1px solid rgb(21 21 21 / 0.08);
357-
border-radius: 20px;
360+
border-radius: 18px;
358361
background: rgb(255 255 255 / 0.82);
359362
box-shadow: 0 24px 60px -32px rgb(21 21 21 / 0.25);
360363
}
@@ -367,7 +370,7 @@ a:hover .arrow {
367370
.tile {
368371
display: flex;
369372
flex-direction: column;
370-
padding: 32px;
373+
padding: 29px;
371374
}
372375

373376
.tile + .tile {
@@ -379,7 +382,7 @@ a:hover .arrow {
379382
align-items: center;
380383
justify-content: space-between;
381384
font-family: "Mona Sans Mono", ui-monospace, monospace;
382-
font-size: 13px;
385+
font-size: 12px;
383386
letter-spacing: 0.04em;
384387
color: #55565a;
385388
}
@@ -391,37 +394,37 @@ a:hover .arrow {
391394
}
392395

393396
.dot {
394-
width: 7px;
395-
height: 7px;
397+
width: 6px;
398+
height: 6px;
396399
border-radius: 50%;
397400
background: #55565a;
398401
}
399402

400403
.tileArt {
401404
display: flex;
402-
height: clamp(176px, 24vh, 340px);
405+
height: clamp(158px, 21.6vh, 306px);
403406
align-items: center;
404407
justify-content: center;
405408
}
406409

407410
.tileArt img {
408-
width: clamp(150px, 21vh, 280px);
409-
height: clamp(150px, 21vh, 280px);
411+
width: clamp(135px, 18.9vh, 252px);
412+
height: clamp(135px, 18.9vh, 252px);
410413
object-fit: contain;
411414
}
412415

413416
.tileFoot {
414417
display: flex;
415418
align-items: center;
416419
justify-content: space-between;
417-
gap: 20px;
420+
gap: 18px;
418421
flex-wrap: nowrap;
419422
}
420423

421424
.cta {
422425
display: inline-flex;
423426
align-items: center;
424-
gap: 16px;
427+
gap: 14px;
425428
color: #151515;
426429
text-decoration: none;
427430
white-space: nowrap;
@@ -430,15 +433,15 @@ a:hover .arrow {
430433
.ctaTitle {
431434
font-family: var(--font-sora), Inter, sans-serif;
432435
font-weight: 600;
433-
font-size: 40px;
436+
font-size: 36px;
434437
line-height: 1;
435438
letter-spacing: -0.035em;
436439
}
437440

438441
.ctaCircle {
439442
display: inline-flex;
440-
width: 48px;
441-
height: 48px;
443+
width: 43px;
444+
height: 43px;
442445
align-items: center;
443446
justify-content: center;
444447
border-radius: 50%;
@@ -454,26 +457,26 @@ a:hover .arrow {
454457
.alt {
455458
display: inline-flex;
456459
align-items: center;
457-
gap: 12px;
460+
gap: 11px;
458461
}
459462

460463
.altLabel {
461-
font-size: 15px;
464+
font-size: 13.5px;
462465
color: #55565a;
463466
white-space: nowrap;
464467
}
465468

466469
.command {
467470
display: inline-flex;
468-
height: 40px;
471+
height: 36px;
469472
align-items: center;
470473
gap: 4px;
471-
padding: 0 4px 0 14px;
474+
padding: 0 4px 0 13px;
472475
border: 1px solid #e2e3dd;
473476
border-radius: 999px;
474477
background: #f9faf5;
475478
font-family: "Mona Sans Mono", ui-monospace, monospace;
476-
font-size: 13px;
479+
font-size: 12px;
477480
color: #151515;
478481
}
479482

@@ -489,8 +492,8 @@ a:hover .arrow {
489492

490493
.copy {
491494
display: inline-flex;
492-
width: 32px;
493-
height: 32px;
495+
width: 29px;
496+
height: 29px;
494497
margin-left: 4px;
495498
align-items: center;
496499
justify-content: center;
@@ -510,24 +513,24 @@ a:hover .arrow {
510513
flex-wrap: wrap;
511514
align-items: center;
512515
justify-content: center;
513-
column-gap: 18px;
516+
column-gap: 16px;
514517
row-gap: 8px;
515-
margin: clamp(20px, 3.5vh, 48px) 0 0;
516-
font-size: 15px;
518+
margin: clamp(18px, 3.15vh, 43px) 0 0;
519+
font-size: 13.5px;
517520
color: #3a3b3c;
518521
}
519522

520523
.proofItem {
521524
display: inline-flex;
522525
align-items: center;
523-
gap: 7px;
526+
gap: 6px;
524527
white-space: nowrap;
525528
}
526529

527530
.proofStat {
528531
font-family: var(--font-sora), Inter, sans-serif;
529532
font-weight: 600;
530-
font-size: 21px;
533+
font-size: 19px;
531534
letter-spacing: -0.02em;
532535
color: #151515;
533536
}
@@ -556,12 +559,12 @@ a:hover .arrow {
556559
}
557560

558561
.heroSection {
559-
padding-bottom: 48px;
562+
padding-bottom: 43px;
560563
}
561564

562565
.hero {
563566
grid-template-columns: minmax(0, 1fr);
564-
gap: 32px;
567+
gap: 29px;
565568
}
566569

567570
.side {
@@ -580,11 +583,11 @@ a:hover .arrow {
580583
.root {
581584
min-height: 0;
582585
padding-top: 112px;
583-
padding-bottom: 64px;
586+
padding-bottom: 58px;
584587
}
585588

586589
.heroSection {
587-
padding-bottom: 48px;
590+
padding-bottom: 43px;
588591
}
589592

590593
.cardSection {
@@ -601,7 +604,7 @@ a:hover .arrow {
601604
}
602605

603606
.tile {
604-
padding: 24px;
607+
padding: 22px;
605608
}
606609

607610
.tileFoot {
@@ -611,16 +614,16 @@ a:hover .arrow {
611614

612615
/* Smaller art on phones keeps the first card's CTA above the fold. */
613616
.tileArt {
614-
height: 200px;
617+
height: 180px;
615618
}
616619

617620
.tileArt img {
618-
width: 168px;
619-
height: 168px;
621+
width: 151px;
622+
height: 151px;
620623
}
621624

622625
.pitch {
623-
font-size: 19px;
626+
font-size: 17px;
624627
}
625628
}
626629

‎apps/site/src/components/sections/hero-home-b.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function HeroHomeB() {
112112
</p>
113113
<Link href="/orm" className={styles.ormLink}>
114114
Prisma ORM is free and open source
115-
<ArrowRight size={16} />
115+
<ArrowRight size={14} />
116116
</Link>
117117
</div>
118118
</div>
@@ -133,7 +133,7 @@ export function HeroHomeB() {
133133
</span>
134134
</div>
135135
<div className={styles.tileArt}>
136-
<Image src={product.image} alt="" width={280} height={280} loading="eager" />
136+
<Image src={product.image} alt="" width={252} height={252} loading="eager" />
137137
</div>
138138
<div className={styles.tileFoot}>
139139
<HeroCta
@@ -144,7 +144,7 @@ export function HeroHomeB() {
144144
>
145145
<span className={styles.ctaTitle}>{product.cta}</span>
146146
<span className={styles.ctaCircle}>
147-
<ArrowRight size={20} />
147+
<ArrowRight size={18} />
148148
</span>
149149
</HeroCta>
150150
{product.command && (
@@ -169,7 +169,7 @@ export function HeroHomeB() {
169169
·
170170
</span>
171171
<span className={styles.proofItem}>
172-
<Github width={16} height={16} aria-hidden />
172+
<Github width={14} height={14} aria-hidden />
173173
<span className={styles.proofStat}>{stars.stat}</span> stars on GitHub
174174
</span>
175175
</p>

0 commit comments

Comments
 (0)