Skip to content

Commit 09aec0a

Browse files
committed
polish: a glass capsule topbar, and sections that flow instead of stacking
1 parent e0eb708 commit 09aec0a

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎frontend/src/app/(main)/page.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export default function HomePage() {
129129
paper-light it would sit like a hole in the page. */}
130130
<div
131131
aria-hidden
132-
className="pointer-events-none absolute inset-x-0 top-0 hidden h-[820px] bg-[url(/hero-canvas.jpg)] bg-cover bg-[position:62%_44%] opacity-80 dark:block
133-
[mask-image:linear-gradient(180deg,#000_0%,#000_62%,transparent_98%)]"
132+
className="pointer-events-none absolute inset-x-0 top-0 hidden h-[1200px] bg-[url(/hero-canvas.jpg)] bg-cover bg-[position:62%_38%] opacity-80 dark:block
133+
[mask-image:linear-gradient(180deg,#000_0%,#000_48%,transparent_96%)]"
134134
/>
135135
<div
136136
aria-hidden
@@ -230,7 +230,7 @@ export default function HomePage() {
230230

231231
{/* ---------- the numbers ---------- */}
232232
<section className="mx-auto w-full max-w-[1180px] px-5 pb-16 sm:px-10">
233-
<div className="grid gap-8 border-t-[3px] border-border pt-8 sm:grid-cols-3">
233+
<div className="grid gap-8 pt-8 sm:grid-cols-3">
234234
{FACTS.map((f) => (
235235
<div key={f.title}>
236236
<p
@@ -259,7 +259,7 @@ export default function HomePage() {
259259
`text-primary` children rendered near-white on near-white. A
260260
neighbouring surface from the same palette separates the band and
261261
leaves every token inside it working. */}
262-
<section className="bg-secondary py-20">
262+
<section className="bg-[linear-gradient(180deg,transparent,hsl(var(--secondary))_140px,hsl(var(--secondary))_calc(100%-140px),transparent)] py-24">
263263
<div className="mx-auto w-full max-w-[1180px] px-5 sm:px-10">
264264
<p className="mb-6 font-mono text-[11px] uppercase tracking-[0.14em] text-primary">
265265
One turn, start to finish

‎frontend/src/components/root/nav.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ const FloatingNavbar = ({
6969

7070
return (
7171
<>
72-
<div className={` top-5 left-0 right-0 z-50 ${className}`}>
72+
{/* A glass capsule floating over the page rather than a full-bleed bar:
73+
sticky so it stays in flow (nothing hides under it), translucent with
74+
backdrop blur so the painted hero reads through it. */}
75+
<div className={`sticky top-4 z-50 px-4 pt-4 ${className}`}>
7376
<div
74-
className={`mx-auto flex w-full max-w-[1180px] items-center justify-between gap-4 px-5 py-6 sm:px-10 ${containerClassName}`}
77+
className={`mx-auto flex w-full max-w-[1040px] items-center justify-between gap-4 rounded-2xl border border-border/60 bg-background/55 px-4 py-2.5 shadow-lg shadow-black/20 backdrop-blur-xl sm:px-6 ${containerClassName}`}
7578
>
7679
{/* Left side - terminal prompt wordmark, always a way home */}
7780
<div className={`flex items-center ${logoContainerClassName}`}>

0 commit comments

Comments
 (0)