Skip to content

Commit 49f55b4

Browse files
fix(landing): restore the nav, and use the accents as blocks
Three things the owner's screenshot showed. THE NAV WAS MISSING ENTIRELY. Navbar renders only inside DashboardShell, and the chapters deliberately do not use that shell because its max-width container and padding would break full-bleed chapters. The landing therefore had no way to reach the other ten pages. Navbar is now rendered directly, which gives the landing the same chrome without the container. THE PAGE WAS STILL DARK for them. A stored theme of 'dark' refers to the retired pure-black design rather than a preference for this one, so a one-time migration clears it; anything chosen after that sticks. Clerk's modal was also pinned to its dark baseTheme and opened a black sign-in sheet over a cream page. IT WAS NOT VIBRANT. The accents were being used as 12px tint bars on white cards, which is the timid version of what the reference does with them. They are now whole coloured grounds: the five source cards, the six roadmap cards, the coral eyebrow, a four-accent band under the logo wall, a blue media caption, and green for a selected technology. All five source cards measure 4.95:1 to 10.30:1 with charcoal type, checked in rendered pixels rather than assumed. Two defects found while fixing those. Chapter 3's left column used sticky positioning that never engaged (body's overflow-x clip defeats it) so it scrolled up under the header instead of holding. And the header was transparent at every scroll position, which was the retired system's rule and guarantees a collision on a light page the moment anything passes under it; it now takes a ground once you scroll. The folio also moved to xl and the chapters are inset by its width: at 1440 the centred content left only 20px of margin and the two collided. Desktop, 390x844 and reduced motion: no dead scroll, every cue peaks, contrast clears 4.5:1. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 1dcf3d3 commit 49f55b4

9 files changed

Lines changed: 64 additions & 29 deletions

File tree

‎frontend/src/app/layout.tsx‎

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from "next";
22
import { Inter, Space_Grotesk, JetBrains_Mono } from "next/font/google";
33
import { ClerkProvider } from "@clerk/nextjs";
4-
import { dark } from "@clerk/themes";
4+
// (Clerk dark theme import removed with the retired design system.)
55
import SmoothScrollProvider from "@/components/providers/SmoothScroll";
66
import Preloader from "@/components/ui/Preloader";
77
import CustomCursor from "@/components/ui/CustomCursor";
@@ -53,15 +53,39 @@ export default function RootLayout({
5353
}: Readonly<{
5454
children: React.ReactNode;
5555
}>) {
56+
// Clerk's own modal follows the site, not the retired dark design: its
57+
// baseTheme was pinned to `dark`, which opened a black sign-in sheet on top
58+
// of a cream page.
5659
return (
57-
<ClerkProvider appearance={{ baseTheme: dark }}>
60+
<ClerkProvider
61+
appearance={{
62+
variables: {
63+
colorPrimary: "#2C2E2A",
64+
colorText: "#2C2E2A",
65+
colorBackground: "#FFFFFF",
66+
borderRadius: "10px",
67+
},
68+
}}
69+
>
5870
<html lang="en" suppressHydrationWarning>
5971
<head>
6072
<script
6173
dangerouslySetInnerHTML={{
6274
__html: `
6375
// Light-first: the warm editorial system is the default look,
6476
// and dark is the opt-in. Runs before paint so there's no flash.
77+
//
78+
// One-time migration: a stored 'dark' from before 2026-08-27
79+
// refers to the RETIRED pure-black design, not a preference for
80+
// this one, and it left returning visitors staring at a dark
81+
// page after the system was rebuilt around cream. The stale
82+
// value is cleared once; anything chosen after that sticks.
83+
try {
84+
if (!localStorage.getItem('theme-v2')) {
85+
localStorage.removeItem('theme');
86+
localStorage.setItem('theme-v2', '1');
87+
}
88+
} catch (_) {}
6589
try {
6690
const theme = localStorage.getItem('theme');
6791
if (theme === 'dark') {

‎frontend/src/app/page.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
type Overview,
1010
type Roadmap,
1111
} from "@/data/trends";
12+
import Navbar from "@/components/Navbar";
1213
import ScrollcraftRoot from "@/components/scrollcraft/ScrollcraftRoot";
1314
import StackFolio from "@/components/landing/StackFolio";
1415
import ChTitle from "@/components/landing/ChTitle";
@@ -139,6 +140,8 @@ export default function Home() {
139140

140141
return (
141142
<>
143+
<Navbar />
144+
142145
<StackFolio
143146
chapter={chapter + 1}
144147
chapterTitle={CHAPTERS[chapter] ?? CHAPTERS[0]}
@@ -147,7 +150,7 @@ export default function Home() {
147150
onRemove={remove}
148151
/>
149152

150-
<ScrollcraftRoot>
153+
<ScrollcraftRoot className="xl:pl-[13rem]">
151154
<span data-sc-progress className="sr-only" />
152155
<main id="top">
153156
<ChTitle overview={overview} tools={tools} />

‎frontend/src/components/Navbar.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ export default function Navbar() {
107107
}, [mobileOpen]);
108108

109109
return (
110-
<header className="fixed top-0 inset-x-0 z-50 w-full">
110+
<header
111+
className={`fixed top-0 inset-x-0 z-50 w-full transition-colors duration-300 ${
112+
scrollProgress > 0.001
113+
? "bg-[var(--c-ground)]/92 backdrop-blur-md"
114+
: "bg-transparent"
115+
}`}
116+
>
111117
<div className="relative flex h-16 items-center justify-between px-4 md:px-8 max-w-[1400px] mx-auto">
112118
{/* ─── Mark ───
113119
Kept from Dala: flat geometric primitives on a grid, gradient-filled,

‎frontend/src/components/landing/ChCatalog.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default function ChCatalog({
119119
aria-pressed={on}
120120
className={`group flex w-full items-center gap-3 rounded-[10px] border p-3 text-left transition-colors duration-200 ${
121121
on
122-
? "border-transparent bg-[var(--c-ink)] text-[var(--c-ground)]"
122+
? "border-transparent bg-[#8ED462] text-[#2C2E2A]"
123123
: "border-[var(--c-border)] bg-[var(--c-surface)] text-[var(--c-ink)] hover:border-[color-mix(in_srgb,var(--c-ink)_32%,transparent)]"
124124
}`}
125125
>

‎frontend/src/components/landing/ChGuess.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function ChGuess({ tools }: { tools: Tool[] }) {
5656
className="h-auto w-full"
5757
priority={false}
5858
/>
59-
<figcaption className="border-t border-[var(--c-border)] bg-[var(--c-surface)] px-5 py-3 text-[13px] font-medium text-[var(--c-ink-2)]">
59+
<figcaption className="bg-[#2BA0FF] px-5 py-3 text-[13px] font-medium text-[#2C2E2A]">
6060
The trends board, updated daily from live readings.
6161
</figcaption>
6262
</figure>

‎frontend/src/components/landing/ChMeasure.tsx‎

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,43 +26,43 @@ export default function ChMeasure({
2626
detail: "Stars, forks and release cadence for every tracked repository.",
2727
figure: (overview?.total_stars ?? 0).toLocaleString("en-US"),
2828
unit: "stars indexed",
29-
tint: "var(--accent-green)",
29+
tint: "#8ED462",
3030
},
3131
{
3232
name: "Hacker News",
3333
detail: "Front page and new, matched against the catalog.",
3434
figure: sum((t) => t.hn_count).toLocaleString("en-US"),
3535
unit: "mentions",
36-
tint: "var(--accent-coral)",
36+
tint: "#FF705D",
3737
},
3838
{
3939
name: "Reddit",
4040
detail: "Developer subreddits, read as RSS with no account attached.",
4141
figure: sum((t) => t.reddit_count).toLocaleString("en-US"),
4242
unit: "mentions",
43-
tint: "var(--accent-blue)",
43+
tint: "#2BA0FF",
4444
},
4545
{
4646
name: "Dev.to",
4747
detail: "Posts, tags and descriptions across the whole feed.",
4848
figure: sum((t) => t.devto_count).toLocaleString("en-US"),
4949
unit: "mentions",
50-
tint: "var(--accent-yellow)",
50+
tint: "#F5E211",
5151
},
5252
{
5353
name: "Tech press",
5454
detail: "RSS across the trade publications that cover releases.",
5555
figure: sum((t) => t.news_count).toLocaleString("en-US"),
5656
unit: "mentions",
57-
tint: "var(--accent-green)",
57+
tint: "#C3AEFF",
5858
},
5959
];
6060

6161
return (
6262
<section className="ch-cream" data-sc-act="flow" aria-labelledby="ch-measure-h">
6363
<div className="mx-auto w-full max-w-[1400px] px-6 py-[16vh] md:px-8">
6464
<div className="grid gap-14 lg:grid-cols-[minmax(0,0.9fr)_minmax(0,1fr)] lg:items-start">
65-
<div className="lg:sticky lg:top-[18vh]">
65+
<div>
6666
<h2
6767
id="ch-measure-h"
6868
className="max-w-[15ch] text-[clamp(2rem,4.4vw,3.28rem)] font-medium leading-[1.04] tracking-[-0.04em] text-[var(--c-ink)]"
@@ -95,28 +95,26 @@ export default function ChMeasure({
9595
<li
9696
key={s.name}
9797
className="stack-card p-7 md:p-9"
98-
style={{ ["--i" as string]: i }}
98+
style={{ ["--i" as string]: i, background: s.tint, borderColor: "transparent" }}
9999
>
100-
<span
101-
aria-hidden="true"
102-
className="block h-1.5 w-12 rounded-full"
103-
style={{ background: s.tint }}
104-
/>
105-
<h3 className="mt-5 text-[24px] font-medium tracking-[-0.02em] text-[var(--c-ink)]">
100+
<span className="font-mono text-[11px] uppercase tracking-[0.2em] text-[#2C2E2A]/70">
101+
source {String(i + 1).padStart(2, "0")}
102+
</span>
103+
<h3 className="mt-4 text-[26px] font-medium tracking-[-0.02em] text-[#2C2E2A]">
106104
{s.name}
107105
</h3>
108-
<p className="mt-2 max-w-[38ch] text-[15px] font-medium leading-relaxed text-[var(--c-ink-2)]">
106+
<p className="mt-2 max-w-[38ch] text-[15px] font-medium leading-relaxed text-[#2C2E2A]/80">
109107
{s.detail}
110108
</p>
111109
<p className="mt-6 flex items-baseline gap-2">
112110
<span
113-
className="font-mono text-[clamp(1.75rem,3vw,2.5rem)] font-medium tabular-nums tracking-[-0.03em] text-[var(--c-ink)]"
111+
className="font-mono text-[clamp(2rem,3.4vw,3rem)] font-medium tabular-nums tracking-[-0.03em] text-[#2C2E2A]"
114112
data-sc-count={`0 ${s.figure}`}
115113
data-sc-count-at="0.1 0.5"
116114
>
117115
{s.figure}
118116
</span>
119-
<span className="text-[13px] font-medium text-[var(--c-ink-3)]">
117+
<span className="text-[13px] font-medium text-[#2C2E2A]/70">
120118
{s.unit}
121119
</span>
122120
</p>

‎frontend/src/components/landing/ChOrder.tsx‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import type { Roadmap } from "@/data/trends";
1010
* ship-blocker, and an obviously empty slot is more honest than a plausible
1111
* invention.
1212
*/
13+
const CARD_TINTS = ["#8ED462", "#FF705D", "#F5E211", "#2BA0FF", "#C3AEFF", "#A8E5E5"];
14+
1315
export default function ChOrder({ roadmaps }: { roadmaps: Roadmap[] }) {
1416
const shown = roadmaps.slice(0, 6);
1517
const totalSteps = roadmaps.reduce((n, r) => n + (r.step_count ?? 0), 0);
@@ -44,15 +46,16 @@ export default function ChOrder({ roadmaps }: { roadmaps: Roadmap[] }) {
4446
<li key={r.slug} data-sc-in style={{ transitionDelay: `${i * 55}ms` }}>
4547
<Link
4648
href={`/roadmap/${r.slug}`}
47-
className="tech-panel tech-panel-interactive block h-full p-7"
49+
className="block h-full rounded-[10px] p-7 transition-transform duration-300 hover:-translate-y-1"
50+
style={{ background: CARD_TINTS[i % CARD_TINTS.length] }}
4851
>
49-
<p className="font-mono text-[11px] uppercase tracking-[0.2em] text-[var(--c-ink-3)] tabular-nums">
52+
<p className="font-mono text-[11px] uppercase tracking-[0.2em] text-[#2C2E2A]/70 tabular-nums">
5053
{String(i + 1).padStart(2, "0")}
5154
</p>
52-
<h3 className="mt-4 text-[21px] font-medium tracking-[-0.02em] text-[var(--c-ink)]">
55+
<h3 className="mt-4 text-[21px] font-medium tracking-[-0.02em] text-[#2C2E2A]">
5356
{r.title ?? r.slug}
5457
</h3>
55-
<p className="mt-2 text-[14px] font-medium leading-relaxed text-[var(--c-ink-2)]">
58+
<p className="mt-2 text-[14px] font-medium leading-relaxed text-[#2C2E2A]/80">
5659
{r.step_count ?? 0} steps
5760
{r.estimated_weeks ? ` · about ${r.estimated_weeks} weeks` : ""}
5861
</p>

‎frontend/src/components/landing/ChTitle.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function ChTitle({
2323
<section className="ch-cream" data-sc-act="flow" aria-labelledby="ch-title-h">
2424
<div className="mx-auto w-full max-w-[1400px] px-6 pb-24 pt-[26vh] md:px-8">
2525
<p
26-
className="font-mono text-[11px] uppercase tracking-[0.22em] text-[var(--c-ink-2)]"
26+
className="inline-block rounded-full bg-[#FF705D] px-3 py-1 font-mono text-[11px] uppercase tracking-[0.22em] text-[#2C2E2A]"
2727
data-sc-in
2828
>
2929
Momentum intelligence for developers
@@ -51,7 +51,8 @@ export default function ChTitle({
5151

5252
{/* The logo wall the reference uses for client brands. Ours is the
5353
catalog we actually track, so it is a claim we can support. */}
54-
<div className="mt-20 border-t border-[var(--c-border)] pt-8" data-sc-in>
54+
<div className="mt-20 pt-8" data-sc-in>
55+
<span aria-hidden="true" className="mb-8 block h-1.5 w-full rounded-full bg-[linear-gradient(90deg,#8ED462_0_25%,#FF705D_25%_50%,#F5E211_50%_75%,#2BA0FF_75%_100%)]" />
5556
<p className="font-mono text-[10px] uppercase tracking-[0.2em] text-[var(--c-ink-3)]">
5657
tracking {tracked} technologies · {stars} stars indexed
5758
</p>

‎frontend/src/components/landing/StackFolio.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function StackFolio({
3030

3131
return (
3232
<aside
33-
className="pointer-events-none fixed left-0 top-0 z-40 hidden h-screen w-[clamp(9rem,13vw,13rem)] flex-col justify-between py-24 pl-6 lg:flex"
33+
className="pointer-events-none fixed left-0 top-0 z-40 hidden h-screen w-[13rem] flex-col justify-between py-28 pl-6 xl:flex"
3434
aria-label="Reading position and your stack"
3535
>
3636
<div className="pointer-events-auto">

0 commit comments

Comments
 (0)