Skip to content

Commit 0d98fd3

Browse files
feat(landing): the chapter reveals follow the grid instead of all matching
Seventeen elements on the landing carried data-sc-in and exactly one of them carried a direction, so the whole page revealed one way — every headline, figure row, panel and byline rising identically. The chaptered-editorial grammar already alternates text-left against media-right per chapter, and the motion was ignoring a rhythm the layout had established. Reveals now follow that rhythm. The hero stack rises while its CTA arrives from the right column it actually occupies; chapter 3 reverses with the argument coming in from cols 8-12; the colophon's read-out enters from the left and the byline plate from the right, so the closing spread converges rather than marching. Uses the engine's own data-sc-reveal rather than anything bespoke — up, down, left and right are the four values it accepts, confirmed against the vendored source. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 756ab7f commit 0d98fd3

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function ChColophon({
6464
<div className="ed-grid mt-16 items-start">
6565
<div className="col-span-4 md:col-span-7">
6666

67-
<div className="mt-8" data-sc-in>
67+
<div className="mt-8" data-sc-in data-sc-reveal="left">
6868
<StackDiagnosis
6969
d={d}
7070
exampleOf={empty ? "example · the three fastest risers" : null}
@@ -74,7 +74,7 @@ export default function ChColophon({
7474
{/* The picks themselves, removable. An editable list is the
7575
difference between a summary and a tool. */}
7676
{!empty && (
77-
<ul className="mt-8 flex flex-wrap gap-2" data-sc-in>
77+
<ul className="mt-8 flex flex-wrap gap-2" data-sc-in data-sc-reveal="left">
7878
{picked.map((slug) => {
7979
const t = bySlug.get(slug);
8080
if (!t) return null;
@@ -135,7 +135,7 @@ export default function ChColophon({
135135
</p>
136136
</div>
137137

138-
<div className="col-span-4 md:col-span-4 md:col-start-9" data-sc-in>
138+
<div className="col-span-4 md:col-span-4 md:col-start-9" data-sc-in data-sc-reveal="right">
139139
<AssetSlot
140140
n={3}
141141
label="Your photo, or a short clip"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export default function ChMeasure({
113113
<p
114114
className="text-[17px] font-medium leading-relaxed text-[var(--c-ink-2)]"
115115
data-sc-in
116+
data-sc-reveal="right"
116117
>
117118
A tool does not rise because it got louder. It rises because it
118119
got louder than the others: every score is a percentile rank,
@@ -123,7 +124,7 @@ export default function ChMeasure({
123124
at once.
124125
</p>
125126

126-
<div className="mt-10" data-sc-in>
127+
<div className="mt-10" data-sc-in data-sc-reveal="right">
127128
<AssetSlot
128129
n={1}
129130
label="Screen recording"

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default function ChTitle({
5555
<p
5656
className="col-span-4 md:col-span-9"
5757
data-sc-in
58+
data-sc-reveal="up"
5859
>
5960
<span className="inline-block rounded-full bg-[#FF705D] px-3 py-1 font-mono text-[11px] uppercase tracking-[0.22em] text-[#2C2E2A]">
6061
Momentum intelligence for developers
@@ -65,6 +66,7 @@ export default function ChTitle({
6566
id="ch-title-h"
6667
className="col-span-4 mt-6 text-[clamp(2.75rem,7.4vw,7.5rem)] font-medium leading-[0.95] tracking-[-0.06em] text-[var(--c-ink)] md:col-span-9"
6768
data-sc-in
69+
data-sc-reveal="up"
6870
>
6971
Stop guessing what to learn next.
7072
</h1>
@@ -85,6 +87,7 @@ export default function ChTitle({
8587
<div
8688
className="col-span-4 mt-8 flex flex-wrap items-start gap-3 md:col-span-5 md:col-start-8 md:mt-10 md:justify-end"
8789
data-sc-in
90+
data-sc-reveal="right"
8891
>
8992
<Link href="#build" className="btn-primary">
9093
Build my stack
@@ -98,7 +101,7 @@ export default function ChTitle({
98101
{/* ── The spec row. ──
99102
A ruled line of measured figures, right-aligned in their columns.
100103
This is the page's subject stated as the subject states itself. */}
101-
<dl className="ed-grid ed-rule mt-24 pt-5" data-sc-in>
104+
<dl className="ed-grid ed-rule mt-24 pt-5" data-sc-in data-sc-reveal="up">
102105
{spec.map((s) => (
103106
<div key={s.label} className="col-span-2 md:col-span-3">
104107
<dt className="font-mono text-[10px] uppercase tracking-[0.2em] text-[var(--c-ink-3)]">

0 commit comments

Comments
 (0)