Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/site/src/components/sections/hero-home-b-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export function CommandCopy({ command, ctaLocation }: { command: string; ctaLoca
>
{copied ? (
<svg
width="16"
height="16"
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="#009aaa"
Expand All @@ -99,8 +99,8 @@ export function CommandCopy({ command, ctaLocation }: { command: string; ctaLoca
</svg>
) : (
<svg
width="16"
height="16"
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
Expand Down
93 changes: 48 additions & 45 deletions apps/site/src/components/sections/hero-home-b.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
min-height: min(100vh, 1120px);
min-height: min(100svh, 1120px);
padding-top: clamp(112px, 14vh, 140px);
padding-bottom: clamp(40px, 7vh, 80px);
padding-bottom: clamp(36px, 6.3vh, 72px);
box-sizing: border-box;
}

Expand Down Expand Up @@ -169,7 +169,10 @@
}
}

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

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

.hero {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
column-gap: 72px;
column-gap: 64px;
align-items: end;
}

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

.pitch {
margin: 0;
font-size: 21px;
font-size: 19px;
line-height: 1.5;
letter-spacing: -0.005em;
color: #3a3b3c;
Expand All @@ -232,7 +235,7 @@
align-items: center;
gap: 8px;
align-self: flex-start;
font-size: 15px;
font-size: 13.5px;
color: #3a3b3c;
text-decoration: none;
}
Expand Down Expand Up @@ -354,7 +357,7 @@ a:hover .arrow {
.card {
overflow: hidden;
border: 1px solid rgb(21 21 21 / 0.08);
border-radius: 20px;
border-radius: 18px;
background: rgb(255 255 255 / 0.82);
box-shadow: 0 24px 60px -32px rgb(21 21 21 / 0.25);
}
Expand All @@ -367,7 +370,7 @@ a:hover .arrow {
.tile {
display: flex;
flex-direction: column;
padding: 32px;
padding: 29px;
}

.tile + .tile {
Expand All @@ -379,7 +382,7 @@ a:hover .arrow {
align-items: center;
justify-content: space-between;
font-family: "Mona Sans Mono", ui-monospace, monospace;
font-size: 13px;
font-size: 12px;
letter-spacing: 0.04em;
color: #55565a;
}
Expand All @@ -391,37 +394,37 @@ a:hover .arrow {
}

.dot {
width: 7px;
height: 7px;
width: 6px;
height: 6px;
border-radius: 50%;
background: #55565a;
}

.tileArt {
display: flex;
height: clamp(176px, 24vh, 340px);
height: clamp(158px, 21.6vh, 306px);
align-items: center;
justify-content: center;
}

.tileArt img {
width: clamp(150px, 21vh, 280px);
height: clamp(150px, 21vh, 280px);
width: clamp(135px, 18.9vh, 252px);
height: clamp(135px, 18.9vh, 252px);
object-fit: contain;
}

.tileFoot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
gap: 18px;
flex-wrap: nowrap;
}

.cta {
display: inline-flex;
align-items: center;
gap: 16px;
gap: 14px;
color: #151515;
text-decoration: none;
white-space: nowrap;
Expand All @@ -430,15 +433,15 @@ a:hover .arrow {
.ctaTitle {
font-family: var(--font-sora), Inter, sans-serif;
font-weight: 600;
font-size: 40px;
font-size: 36px;
line-height: 1;
letter-spacing: -0.035em;
}

.ctaCircle {
display: inline-flex;
width: 48px;
height: 48px;
width: 43px;
height: 43px;
align-items: center;
justify-content: center;
border-radius: 50%;
Expand All @@ -454,26 +457,26 @@ a:hover .arrow {
.alt {
display: inline-flex;
align-items: center;
gap: 12px;
gap: 11px;
}

.altLabel {
font-size: 15px;
font-size: 13.5px;
color: #55565a;
white-space: nowrap;
}

.command {
display: inline-flex;
height: 40px;
height: 36px;
align-items: center;
gap: 4px;
padding: 0 4px 0 14px;
padding: 0 4px 0 13px;
border: 1px solid #e2e3dd;
border-radius: 999px;
background: #f9faf5;
font-family: "Mona Sans Mono", ui-monospace, monospace;
font-size: 13px;
font-size: 12px;
color: #151515;
}

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

.copy {
display: inline-flex;
width: 32px;
height: 32px;
width: 29px;
height: 29px;
margin-left: 4px;
align-items: center;
justify-content: center;
Expand All @@ -510,24 +513,24 @@ a:hover .arrow {
flex-wrap: wrap;
align-items: center;
justify-content: center;
column-gap: 18px;
column-gap: 16px;
row-gap: 8px;
margin: clamp(20px, 3.5vh, 48px) 0 0;
font-size: 15px;
margin: clamp(18px, 3.15vh, 43px) 0 0;
font-size: 13.5px;
color: #3a3b3c;
}

.proofItem {
display: inline-flex;
align-items: center;
gap: 7px;
gap: 6px;
white-space: nowrap;
}

.proofStat {
font-family: var(--font-sora), Inter, sans-serif;
font-weight: 600;
font-size: 21px;
font-size: 19px;
letter-spacing: -0.02em;
color: #151515;
}
Expand Down Expand Up @@ -556,12 +559,12 @@ a:hover .arrow {
}

.heroSection {
padding-bottom: 48px;
padding-bottom: 43px;
}

.hero {
grid-template-columns: minmax(0, 1fr);
gap: 32px;
gap: 29px;
}

.side {
Expand All @@ -580,11 +583,11 @@ a:hover .arrow {
.root {
min-height: 0;
padding-top: 112px;
padding-bottom: 64px;
padding-bottom: 58px;
}

.heroSection {
padding-bottom: 48px;
padding-bottom: 43px;
}

.cardSection {
Expand All @@ -601,7 +604,7 @@ a:hover .arrow {
}

.tile {
padding: 24px;
padding: 22px;
}

.tileFoot {
Expand All @@ -611,16 +614,16 @@ a:hover .arrow {

/* Smaller art on phones keeps the first card's CTA above the fold. */
.tileArt {
height: 200px;
height: 180px;
}

.tileArt img {
width: 168px;
height: 168px;
width: 151px;
height: 151px;
}

.pitch {
font-size: 19px;
font-size: 17px;
}
}

Expand Down
8 changes: 4 additions & 4 deletions apps/site/src/components/sections/hero-home-b.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function HeroHomeB() {
</p>
<Link href="/orm" className={styles.ormLink}>
Prisma ORM is free and open source
<ArrowRight size={16} />
<ArrowRight size={14} />
</Link>
</div>
</div>
Expand All @@ -133,7 +133,7 @@ export function HeroHomeB() {
</span>
</div>
<div className={styles.tileArt}>
<Image src={product.image} alt="" width={280} height={280} loading="eager" />
<Image src={product.image} alt="" width={252} height={252} loading="eager" />
</div>
<div className={styles.tileFoot}>
<HeroCta
Expand All @@ -144,7 +144,7 @@ export function HeroHomeB() {
>
<span className={styles.ctaTitle}>{product.cta}</span>
<span className={styles.ctaCircle}>
<ArrowRight size={20} />
<ArrowRight size={18} />
</span>
</HeroCta>
{product.command && (
Expand All @@ -169,7 +169,7 @@ export function HeroHomeB() {
·
</span>
<span className={styles.proofItem}>
<Github width={16} height={16} aria-hidden />
<Github width={14} height={14} aria-hidden />
<span className={styles.proofStat}>{stars.stat}</span> stars on GitHub
</span>
</p>
Expand Down
Loading