Skip to content

Commit 002da31

Browse files
peasclaude
andcommitted
Home nav: logo + Signals/Stories/Newsletter bar at top
Styled like editorial header: logo left, links right, z-index above gradients. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3daaa83 commit 002da31

1 file changed

Lines changed: 43 additions & 11 deletions

File tree

src/pages/index.astro

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ function formatDate(date: Date): string {
4444
<body>
4545
<!-- Nav -->
4646
<nav class="home-nav">
47-
<a href="/signals">Signals</a>
48-
<a href="/stories">Stories</a>
49-
<a href="/newsletter">Newsletter</a>
47+
<div class="home-nav__brand">
48+
<a href="/">Hipsters<span class="home-nav__dot">.</span><span class="home-nav__b">builders</span></a>
49+
</div>
50+
<div class="home-nav__links">
51+
<a href="/signals">Signals</a>
52+
<a href="/stories">Stories</a>
53+
<a href="/newsletter">Newsletter</a>
54+
</div>
5055
</nav>
5156

5257
<!-- Warm radial gradients -->
@@ -413,25 +418,52 @@ function formatDate(date: Date): string {
413418
=========================================== */
414419
.home-nav {
415420
display: flex;
416-
justify-content: center;
417-
gap: clamp(1.25rem, 3vw, 2rem);
418-
padding: 1rem clamp(1rem, 3vw, 2rem) 0;
421+
align-items: center;
422+
justify-content: space-between;
423+
padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 4vw, 3rem);
424+
max-width: 72rem;
425+
margin: 0 auto;
426+
position: relative;
427+
z-index: 10;
428+
}
429+
430+
.home-nav__brand a {
431+
font-family: 'Source Serif 4', Georgia, serif;
432+
font-size: clamp(1.25rem, 2.5vw, 1.5rem);
433+
font-weight: 700;
434+
color: #2c2418;
435+
text-decoration: none;
436+
letter-spacing: -0.02em;
437+
}
438+
439+
.home-nav__dot {
440+
color: #c56e4a;
441+
}
442+
443+
.home-nav__b {
444+
font-weight: 400;
445+
color: #6b5e4f;
446+
}
447+
448+
.home-nav__links {
449+
display: flex;
450+
gap: clamp(1rem, 2.5vw, 2rem);
451+
}
452+
453+
.home-nav__links a {
419454
font-family: 'Space Grotesk', system-ui, sans-serif;
420455
font-size: 0.8125rem;
421456
font-weight: 500;
422457
letter-spacing: 0.06em;
423458
text-transform: uppercase;
424-
}
425-
426-
.home-nav a {
427459
color: #6b5e4f;
428460
text-decoration: none;
429-
transition: color 0.15s;
430461
padding-bottom: 0.25rem;
431462
border-bottom: 2px solid transparent;
463+
transition: color 0.15s, border-color 0.15s;
432464
}
433465

434-
.home-nav a:hover {
466+
.home-nav__links a:hover {
435467
color: #c56e4a;
436468
border-bottom-color: #c56e4a;
437469
}

0 commit comments

Comments
 (0)