Repository navigation
feat: brutalist one-page rebuild with scroll reveals - #3
Conversation
Replace the marketing one-pager with a brutalist monochrome design: Geist typography, five alternating black/white full-viewport sections (Hero / Problem / Method / FAQ / Contact), fixed mix-blend-mode navbar with active-section indicator, and scroll-driven text reveals via animation-timeline: view() with an IntersectionObserver fallback. Broaden content from AI-specific to general large-file delivery — open datasets, game patches, linux ISOs, scientific archives, with AI models as one use case among many. Legacy price band corrected to $0.02-$0.17/GB. Remove components/site/* and components/ui/* scaffolding; app/page.tsx is now the sole layout surface. Add components/Chrome.tsx (fixed navbar with IntersectionObserver-driven active link) and components/ScrollReveal.tsx. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request performs a significant refactor of the frontend, consolidating the homepage into a single file and introducing a new design system with custom CSS variables and scroll-triggered animations. Key changes include the addition of Chrome and ScrollReveal components, updated metadata, and the removal of several legacy UI components. Review feedback focuses on maintaining design system consistency by using theme-based Tailwind utility classes instead of hardcoded RGB values and correcting legacy pricing data to align with the pull request description.
Extract the monolithic app/page.tsx into one file per block as documented in AGENTS.md: - components/site/ — page sections composed by page.tsx (Hero, Problem, Method, Faq, Close) plus the layout-level overlays moved out of components/ root (Chrome, ScrollReveal). - components/ui/ — reusable primitives (SectionHeader, Figure, Ledger, MethodRow, FaqItem). app/page.tsx shrinks to a 16-line composition; app/layout.tsx updates Chrome and ScrollReveal imports to their new site/ paths. No content, styling, or behavior changes — pure structural split. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Reframe §02 from a one-sided problem narrative into a legacy-vs-decdn
comparison. The headline stays ("open information scaled. / its
plumbing didn't.") but the ledger and before/after callout are
replaced with a seven-axis grid: a dramatic big price row (struck
$0.085-$0.17/GB → $0.01/GB) plus six smaller rows (delivery, billing,
operators, integrity, failure, scaling). Reveal delays cascade
through the grid.
- New UI primitive: components/ui/ComparisonRow.tsx.
- Remove orphaned components/ui/Ledger.tsx (no longer referenced).
- Section header relabelled "Side by side · legacy vs decdn · seven axes".
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The §02 section is now framed as a legacy-vs-decdn comparison, not a problem narrative, so the file, component, and nav label should match. - components/site/Problem.tsx → components/site/Comparison.tsx (git mv) - exported symbol Problem → Comparison - app/page.tsx import + JSX updated - Chrome navbar label "Problem" → "Compare" Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Add HeroTerminal, an animated deCDN CLI mockup that runs in the top-right of the hero. Each 4.5s cycle walks through a full fetch: prompt → peer probe → selection → streaming (with progress bar) → verification → settlement → fresh prompt with blinking cursor. Three sessions rotate (13.4 GB, 550 MB, 4.2 GB) with distinct hashes, peer sets, chunk counts, and market-variance prices ($0.1309, $0.0055, $0.0411) — demonstrating deCDN's per-megabyte pricing story directly. The client component cycles via setInterval and forces a CSS remount with React key so each session restarts the cascade cleanly. Also: scale the navbar hover interaction a bit (1.1×) with a 200ms transition so the active-link feedback is visible without being loud. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The hero stat grid previously included a projected business margin (64–83%), which felt investor-pitch-y in a marketing hero. Swap it for a concrete protocol metric — settlement "per-MB · usdc" — consistent with the other ops-level stats (target price, p50 latency, gas overhead). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Add FleetStatus, an ops-dashboard visual embedded in §05 Close as a counterpart to the hero terminal. Eight-node roster (six serving, two idle) with staggered pulsing whisper-green dots; two aggregate stats (Σ throughput 15.1 GB/s, Σ revenue $0.151/s) backed by bars that slowly extend to the peak, pause, slowly rewind, pause, then loop — an explicit breathe pattern instead of constant oscillation. Panel inverts the hero terminal's palette (dark surface on the white Close section), uses a rounded 14px dashed border with a hard 7px offset shadow, and scales subtly (1.03×) on hover. Positioned as a decorative background with pointer events enabled for the hover. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Enlarge all body-text descriptions from text-[14px]/sm:text-[15px] to text-[15px]/sm:text-[17px] — a modest but visible bump across Hero, Comparison, Method rows, FAQ answers, and Close. Titles and headlines are untouched. Thread the brand accent through descriptions by rendering "deCDN" in whisper green wherever it appears in body text: - Hero, Comparison, Close: inline <span color=whisper>deCDN</span>. - FaqItem: add highlightBrand() helper that splits answer strings on /(deCDN|decdn)/g and normalises every match to "deCDN" in green — no API change, all callers stay as-is. Also tighten fleet panel position in §05 (another small nudge right). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Bump every full-viewport section's horizontal padding from px-4 sm:px-10 (16 / 40 px) to px-6 sm:px-16 (24 / 64 px). Gives the content more room to breathe against the viewport edges without breaking the brutalist tight-grid feel. Applied consistently across Hero, Comparison, Method, Faq, Close. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Animations were hidden below md (768px) via hidden md:block; now render inline as full-width blocks on mobile and return to their original absolute positions on desktop. Moved inside each section's z-10 content wrapper so mobile layout flows naturally, then compensated the absolute top/right offsets for the wrapper's padding so the desktop rendering sits in exactly the same place as before: HeroTerminal: md:top-[23rem] md:right-[-2rem] (was sm:top-[30rem] sm:right-8 on section) FleetStatus: md:top-24 md:right-4 (was sm:top-52 sm:right-20 on section) Also drop .terminal/.fleet font-size to 11px on narrow viewports so monospace lines fit in a ~327px mobile content area; restore to 13px / 12px at md+ via @media (min-width: 768px). §02 comparison grid now reads as a side-by-side comparison on mobile instead of a 3-line vertical stack per row. Axis label takes its own row full-width; legacy and decdn values sit in a 2-column grid below. Uses display: contents (sm:contents) on an inner wrapper so desktop keeps the original 12-col grid unchanged. Applied to ComparisonRow, the header row, and the big price row. Price font-size clamp dropped from clamp(26px, 5.5vw, 64px) → clamp(18px, 5vw, 64px) so the two struck/clean prices fit side-by-side on 375px; strikethrough thinned to 2px on mobile. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
/gemini review |
There was a problem hiding this comment.
Pull request overview
This PR rebuilds the marketing page into a brutalist monochrome one-page layout with five full-viewport sections, scroll-driven reveal animations, and new “live ops” visual panels (CLI terminal + fleet status), along with a refactor into components/site/* and components/ui/*.
Changes:
- Replaces the previous multi-section page (Nav/Problem/HowItWorks/Economics/Audiences/Status/Footer) with a new 5-section composition (Hero/Comparison/Method/FAQ/Close).
- Adds scroll reveal behavior (CSS
animation-timeline: view()+ IntersectionObserver fallback) and a fixed “chrome” navbar with active-section tracking. - Introduces new UI building blocks (SectionHeader, Figure, MethodRow, ComparisonRow, FaqItem) and animated hero/close panels (HeroTerminal, FleetStatus).
Reviewed changes
Copilot reviewed 28 out of 28 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| components/ui/Stat.tsx | Removes legacy stat component (no longer used in new layout). |
| components/ui/SectionHeader.tsx | Adds shared section header element used across new sections. |
| components/ui/Section.tsx | Removes legacy Section wrapper in favor of per-section layout markup. |
| components/ui/Mono.tsx | Removes legacy mono helper; new design uses system monospace stacks in CSS. |
| components/ui/MethodRow.tsx | Adds “How it works” row component with reveal delay support. |
| components/ui/Figure.tsx | Adds key/value figure component for stat grids. |
| components/ui/FaqItem.tsx | Adds FAQ row component with brand highlighting helper. |
| components/ui/ComparisonRow.tsx | Adds comparison grid row component with mobile/desktop layout behavior. |
| components/ui/Button.tsx | Removes legacy button component; new design uses styled links. |
| components/site/Status.tsx | Removes legacy status/roadmap section. |
| components/site/ScrollReveal.tsx | Adds IntersectionObserver fallback for one-time reveal triggers. |
| components/site/Problem.tsx | Removes legacy “Problem” section (replaced by Comparison). |
| components/site/Nav.tsx | Removes legacy top navigation (replaced by Chrome). |
| components/site/Method.tsx | Adds new full-viewport “How it works” section using MethodRow/Figure. |
| components/site/HowItWorks.tsx | Removes legacy “How it works” card grid section. |
| components/site/HeroTerminal.tsx | Adds animated CLI terminal panel (client component) for hero. |
| components/site/Hero.tsx | Reworks hero into new typography/layout and embeds HeroTerminal + stat grid. |
| components/site/Footer.tsx | Removes legacy footer (Close section now contains footer content). |
| components/site/FleetStatus.tsx | Adds animated fleet ops panel used in Close section. |
| components/site/Faq.tsx | Adds new full-viewport FAQ section using FaqItem. |
| components/site/Economics.tsx | Removes legacy economics section. |
| components/site/Comparison.tsx | Adds new side-by-side comparison section with price row + axes rows. |
| components/site/Close.tsx | Adds new closing/contact section and embeds FleetStatus + footer row. |
| components/site/Chrome.tsx | Adds fixed blend-mode navbar + active-section indicator logic. |
| components/site/Audiences.tsx | Removes legacy audiences section. |
| app/page.tsx | Simplifies page into a short composition of the five new sections. |
| app/layout.tsx | Updates fonts/metadata and mounts Chrome + ScrollReveal globally. |
| app/globals.css | Replaces prior theme with new tokens/utilities + reveal/terminal/fleet animation suites. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @supports (animation-timeline: view()) { | ||
| [data-reveal] { | ||
| animation: reveal-wipe linear both; | ||
| animation-timeline: view(); | ||
| animation-range: entry 8% cover 28%; | ||
| transition: none; | ||
| } |
There was a problem hiding this comment.
In the @supports (animation-timeline: view()) path, the animation shorthand doesn’t specify a duration, so animation-duration defaults to 0s. With scroll-linked timelines this can cause the reveal to effectively not animate (or jump instantly), defeating the intended scroll-scrubbed reveal. Set an explicit duration (e.g. 1s) alongside the timeline/range so progress can map cleanly to scroll.
There was a problem hiding this comment.
Code Review
This pull request implements a comprehensive visual and structural redesign of the deCDN landing page, replacing the existing component library with a new "brutal" design system. Key changes include the introduction of a custom scroll-reveal system, a mock CLI terminal, and a live fleet status dashboard, alongside a complete overhaul of the global CSS and site metadata. Feedback focuses on improving the scalability of animation delay logic in the fleet status component and enhancing the brand-name highlighting utility to be case-insensitive.
…ish) Respond to inline review comments from Gemini and Copilot on PR #3. Bug fix — Chrome active-section indicator IntersectionObserver callbacks only include targets whose intersection *changed*, so filtering the current entries array alone could pick a section that just crossed a threshold rather than the section that's actually most visible. Now tracks intersection ratio for every observed section in a persistent Map updated per-entry across callbacks, then picks the max across the full set. Theme consistency - components/ui/FaqItem.tsx and components/site/Comparison.tsx: replace hardcoded style={{ color: "rgb(255 255 255 / 0.75)" }} with the Tailwind theme utility text-paper/75. - components/ui/FaqItem.tsx: highlightBrand regex is now case-insensitive (/(decdn)/gi) and normalises every match to "deCDN" regardless of source casing. Future-proofing + polish - components/site/FleetStatus.tsx: pulse-${i} → pulse-${i % 6} so a roster beyond 6 active nodes still animates cleanly. - app/globals.css: explicit 1s duration on the reveal-wipe animation in the @supports (animation-timeline: view()) branch (some engines treat duration 0 as "not running"). Stale "6.5s loop" comment in the hero terminal block corrected to "4.5s loop". - components/ui/Figure.tsx: rename cryptic props k/v to label/value and update all 8 call sites across Hero and Method. Also includes an earlier color-scheme declaration (html { color-scheme: light }) + Viewport.colorScheme = "light" so browsers and force-dark extensions don't auto-invert the page. Skipped the four "$0.085 → $0.02" price-correction suggestions — the current $0.085–$0.17 range is the authoritative legacy CDN band and the PR description already matches. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Three related fixes for tablet / touch-laptop viewports. 1. Navbar color — swap mix-blend-mode: difference for JS-driven color Safari has a known bug where mix-blend-mode silently fails on position: fixed elements, so on iPad and iOS Safari the nav would render with color: #fff against a white section and vanish. Chrome now tracks which sections paint on dark (s-02 / s-04) via a DARK_SECTIONS set and flips the nav text color between text-[var(--ink)] and text-[var(--paper)] with a 300ms transition as the active section changes. No more blend-mode on fixed chrome. 2. Animation panel breakpoint — lg → min-[1400px] At 1024-1399px (iPad landscape, 13" MacBooks, laptop-with-touch 1280px emulator) the floating HeroTerminal / FleetStatus panels overlapped the headline and wordmark. Breakpoint raised so the absolute layout only activates at 1400+; below that both panels render inline below their section content. 3. Fleet panel max width — min(54vw,640px) → min(38vw,540px) At 1440 the 640px-wide fleet panel still clipped the right edge of the "decdn." wordmark by ~44px. Shrunk the max width so it sits cleanly past the wordmark at every supported desktop width. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ebpage docs
Tone-preserving content sharpenings that pull precise vocabulary and
protocol claims from the canonical product docs in
internal/Webpage/{index,how-it-works,run-a-node}.md. Voice, layout,
animations, numbers, and the general "large files with AI as one
example" framing all stay — just tighter phrasing.
§01 Hero paragraph
"…is a peer-to-peer delivery layer built for open information at
scale" → "…is demand-shaped, locality-optimised delivery for large
files at scale: supply forms around demand, cost collapses as
regional traffic concentrates."
§02 Comparison intro close
"same delivery, different physics" → "supply forms around demand,
not allocated to it."
§03 Method
probe: "replies with a price and a latency estimate" → "answers
with what it has, what it charges, and how fast it can serve."
stream: add "for large payloads the client pulls from several
nodes in parallel." (matches the docs' >10 GB multi-peer swarm
behavior).
settle: unchanged.
§04 FAQ
"How is it 90% cheaper?" — rewrite middle beat with the canonical
"demand-shaped" term plus "bandwidth gets reused across many pulls"
and an explicit inversion clause.
"What happens if a node lies?" — add "non-custodial" before Merkle
proof and swap the closer to "the math is the arbiter", matching
the integrity answer's closing line.
Other four answers unchanged.
Close section and all layout/numbers explicitly left as-is.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…c settlement
§04 FAQ — last question replaced
"Can I just use S3 and skip all this?" → "Does this work well for AI
models?". New answer pulls three concrete AI wins from
internal/Webpage/how-it-works.md: parallel peer fetch saturates the
client's uplink, BLAKE3 chunk addressing lets teams grab one
quantisation variant or a single layer without the full checkpoint,
and the mesh warms around a model-drop's demand rather than choking
at a central bucket.
§03 Method — arbitrum → chain-agnostic
settle body: "the channel settles on arbitrum at session close" →
"settles on-chain at session close — chain-agnostic by design".
stack strip: arbitrum → evm.
stat grid: settlement value arbitrum → chain-agnostic.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Two polish passes on the §05 fleet status panel. Panel surface Background was a flat near-black (3% paper mix). Swap for a subtle top-to-bottom gradient on a mid-charcoal base (18% → 12% paper mix) plus a 1px inset top-edge highlight, so the panel reads as a lit surface rather than a heavy ink slab. Outer shadow switched from a paper-alpha tint to an ink-alpha tint so it behaves like a real drop shadow on the white Close section. Border softened from 30% → 26% paper alpha. Aggregate bar motion Previous keyframe swung bars from 32% to 88% with explicit pauses at both ends — implied a metric dramatically rising and falling, which doesn't fit "per-second rate" semantics. Replace with fleet-wave: five irregular waypoints in a 72–82% band that reads as live-data jitter around a steady state. Throughput runs on a 7s cycle, revenue on 8.5s with a 2.3s phase offset, so the two bars drift independently without ever syncing. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ettle
Three rewrites in §03 pulled from internal/Webpage/how-it-works.md:
probe — adds kademlia dht reference, names a concrete p50 latency
(<100 ms), states the three ranking criteria (price/latency/
reputation) that match the doc's rate × latency × reputation⁻²
score, and ends with the swarm hook.
swarm (was stream) — word change captures the distinctive behavior:
for files over 10 GB the client opens parallel streams to several
peers at once and aggregates throughput. Body quantifies the win
("a 1 gbps origin turns into multi-gigabit delivery") and keeps
the byte-level verification clause. Timestamp and word updated to
match.
settle — rewritten in plain language per founder direction (no
"channel," "on-chain," "vouchers," "gas"). Now: "you pay per
megabyte in usdc, automatically, as the bytes arrive — no monthly
invoice, no subscription, no whole-file minimum. pay for what you
pulled, nothing more." Two sentences, one maxim.
Stack strip and stat grid unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request performs a significant redesign of the landing page, replacing the previous section-based architecture with a new set of components including a hero terminal, fleet status dashboard, and scroll-triggered reveal animations. The global CSS has been overhauled with a new color system and utility classes. Feedback focuses on improving the reliability of the intersection observer for active section tracking and replacing inline styles with Tailwind theme classes for better consistency and maintainability.
| }); | ||
| if (next !== null) setActive(next); | ||
| }, | ||
| { threshold: [0.3, 0.6] }, |
There was a problem hiding this comment.
The current threshold values ([0.3, 0.6]) might cause the active section tracking to fail if a section's height significantly exceeds the viewport height (which is likely on mobile devices). In such cases, the intersectionRatio may never reach the 0.3 threshold. Consider using a more granular set of thresholds or a rootMargin based approach to ensure reliable detection regardless of section height.
| { threshold: [0.3, 0.6] }, | |
| { threshold: Array.from({ length: 21 }, (_, i) => i / 20) }, |
| <nav | ||
| aria-label="Primary" | ||
| className={`fixed inset-x-0 top-0 z-50 flex items-center justify-between gap-4 px-4 py-3 transition-colors duration-300 sm:px-8 sm:py-4 ${ | ||
| onDark ? "text-[var(--paper)]" : "text-[var(--ink)]" |
There was a problem hiding this comment.
Since paper and ink are defined in the Tailwind theme (via app/globals.css), you can use standard Tailwind classes instead of arbitrary values with var(). This improves consistency and leverages the theme configuration.
| onDark ? "text-[var(--paper)]" : "text-[var(--ink)]" | |
| onDark ? "text-paper" : "text-ink" |
| <a | ||
| href={links.whitepaper} | ||
| className="meta flex items-center gap-2 no-underline" | ||
| style={{ borderBottom: "1px solid currentColor", paddingBottom: 2 }} |
There was a problem hiding this comment.
Avoid using inline styles for properties that can be handled by Tailwind classes. This improves maintainability and keeps the styling logic consistent with the rest of the project.
| style={{ borderBottom: "1px solid currentColor", paddingBottom: 2 }} | |
| className="meta flex items-center gap-2 no-underline border-b border-current pb-[2px]" |
| className="inline-block h-[8px] w-[8px] rounded-full" | ||
| style={{ background: "var(--whisper)" }} |
| function highlightBrand(s: string): ReactNode[] { | ||
| return s.split(/(decdn)/gi).map((part, i) => | ||
| part.toLowerCase() === "decdn" ? ( | ||
| <span key={i} style={{ color: "var(--whisper)" }}> |
|
Round-3 review polish tracked in #4 — deferred from this PR to keep the diff focused. Price-correction comments remain wontfix per PR description. |
Pulling compliance (gated/takedown) up to #3 and nudging token up to #4 serves developers, investors, and operators in a single ordering without demoting any audience. Top 3 items now address universal concerns (cost, trust, legal); middle 2 address token value accrual and pricing-model flexibility; bottom is the AI-wedge traction signal. Investor-relevant copy (buyback-and-burn in the token item) is no longer buried at the bottom where bouncing readers miss it. New order: 1. How is it 90% cheaper? (hook) 2. How is byte-level integrity enforced? (trust) 3. Can content be gated or taken down? (compliance) 4. Why does the network need a token? (value accrual + stake) 5. Can publishers pay on behalf of users? (pricing flex) 6. Does this work well for AI models? (wedge)
* feat: rewrite hero, comparison, close copy and add encryption FAQ
Align the site's framing with the actual product (ADR 006: the network
is encryption-agnostic and serves ciphertext via a key distribution
mechanism). "Open information" overclaimed what we do; the three real
opens on the site remain untouched — code, network, and posted price.
- app/layout.tsx: title → "A peer-to-peer delivery layer for bytes at
scale"
- Hero.tsx: headline → "the delivery layer / for information. / shaped
by demand." Payload list swaps "scientific archive" for "media
library" so it covers subscription/paywalled content without leading
with encryption.
- Comparison.tsx: heading → "information scaled. / supply didn't."
(capacity did scale; market structure and supply side didn't — the
honest contrast).
- Close.tsx: use-case list trimmed to "software releases, datasets,
media libraries, ai models" — removes the back-to-back "open"
qualifiers.
- Faq.tsx: new Q&A on private/subscription content explaining the
ciphertext-addressing + app-held keys pattern from ADR 006.
* refactor: name sections, fix deCDN span spacing, restructure FAQ
- Rename section ids from s-0N to semantic names (intro, compare,
method, faq, contact). Covers Frame ids, sr-only heading ids, Chrome
nav array, DARK_SECTIONS set, useState default, and the logo anchor.
- Close.tsx: fix "decdnis" collision — the deCDN span was the first
child of the <p>, which triggered a JSX whitespace edge case that
dropped the space between </span> and "is a peer-to-peer...". Use
{" "} with a prettier-ignore guard so the formatter doesn't revert
the explicit space.
- Faq.tsx: drop "What happens if a node lies?" — it duplicated the
byte-level-integrity item's answer. Add a content-takedown item
covering ADR 011 (governance-flagged BLAKE3 hashes, compliance
window, slashing, auditable flag list). Renumber delays to keep the
reveal cadence tight.
* fix: hoist hero h1 to full width to prevent line wrapping
The h1 lived inside the left column of a 2-column grid where the
right column was the HeroTerminal (440px). The new headline "shaped
by demand." with its pl-[8vw] indent didn't fit in the remaining
column width on @4XL and wrapped awkwardly.
Move the status bar and h1 out to a full-width row at the top of the
Frame; keep body copy, CTAs, figures, and the terminal in the
original 2-column grid below. Preserves mt-auto bottom alignment,
all rise-N animation classes, and the mobile single-column stacking.
* feat: point runNode to real docs, surface docs link in nav
- lib/links.ts: runNode now points at the live node-operators overview
on docs.decdn.org instead of the decdn.example placeholder.
- Chrome.tsx: add a "Docs" link next to "Whitepaper" in the top-right,
grouped as a single external-resources cluster with gap-5. Matches
the nav's same meta / border-bottom treatment. Docs navigates in
place; Whitepaper still opens in a new tab (it's a PDF).
* refactor: rename Whitepaper to Litepaper
We don't have a whitepaper-grade doc yet, and we're not going to
pretend otherwise. "Litepaper" is crypto-native for "preliminary
short-form spec," sets expectations honestly for the current devnet
stage, and leaves the ADRs in decdn/adr/ as the authoritative
technical reference.
Rename the link key, the PDF path placeholder, and every display
label across Chrome, Hero, and Close. The commented TODO in
lib/links.ts still flags litepaper + site as placeholder URLs that
gate the robots index flag.
* refactor: address review comments on #10
- Faq.tsx: unify the two "Yes —" openers — private/subscription item
now uses the same em-dash pattern as "Does this work well for AI
models?" instead of "Yes." with a period.
- Hero.tsx: mark the decorative whisper-period in the h1 aria-hidden
so screen readers don't announce an out-of-flow "dot" between
"information" and "shaped by demand." Matches the existing
aria-hidden on Close.tsx's brand-mark period.
- Hero.tsx: drop "open" from "an open dataset" in the hero payload
list — "open dataset" is accurate as a category, but it reads
inconsistently with Close.tsx, which already dropped the "open"
qualifier from the same list.
* feat: sharpen hero headline to anyone-serves / priced-not-quoted
"shaped by demand" was insider jargon the headline can't afford —
nobody lands on the page knowing P2P CDN economics, and the body
copy already unpacks it. Swap for the political line: "anyone can
serve" is a direct challenge to the three-hyperscaler oligopoly
(AWS/Cloudflare/Akamai can't let anyone serve, structurally), and
"priced, not quoted" jabs at the "contact sales for pricing" motion
every incumbent uses to hide opacity behind annual contracts.
* docs(faq): flag origin onboarding as part of the compliance perimeter
The takedown FAQ previously landed on "compliance is a first-class
part of the protocol." Extend that closing with the end-to-end
bookend — compliance starts at origin onboarding (governance-
approved) and ends at peer-level slashing (on-chain). Makes the
asymmetry in "anyone can serve" honest: caches are permissionless,
origins aren't, and that's deliberate.
* refactor(method): de-jargon the probe and swarm bodies
The "stack" block under Probe · Swarm · Settle already lists blake3 ·
quic · iroh · usdc · evm, so the prose doesn't have to surface the
wire-level acronyms a second time. Specifically, "a single quic 0-rtt
handshake broadcasts the blake3 hash to a kademlia dht of nearby
peers" was a wall of jargon that blocked any non-expert from reading
past the first sentence.
- Probe: rewrite into plain language — "in a single handshake, the
client asks nearby peers who has the file." Drops QUIC, 0-RTT,
Kademlia, DHT, and p50 without losing any substantive claim.
Switches "node" to "peer" throughout this step for readability.
- Swarm: drop "over quic" — "bytes flow directly from the chosen
node" reads cleaner and doesn't change meaning.
* refactor(comparison): replace "anyone with a node" with range framing
"Anyone with a node" assumed the reader already knew what a node is
— same jargon trap we just fixed in the Method section. Swap for
"home labs to datacenters": same permissionless claim, now grounded
in two concrete endpoints that readers can picture, and the parallel
"three X" / "Y to Z" structure lands the contrast cleanly.
* refactor(faq): trim to 6 items; surface publisher-pays; merge legal/access
- Replace "Who actually pays?" with "Can publishers pay on behalf of
users?" — the original answer repeated info already in the hero
body, Method:Settle, and the Comparison billing row. The new answer
surfaces account-abstraction-enabled publisher-pays, a real selling
point for teams shipping AI models, software, and datasets who
want free-to-download UX without single-cloud egress bills.
- Merge "Can you serve private or subscription content?" and "How
does content takedown work?" into "Can content be gated or taken
down?" — both were about access control and legal compliance.
One answer covers ciphertext-addressed gating for paywalls and
governance-flagged BLAKE3 hashes for takedown, ending on the same
end-to-end compliance bookend (origin onboarding → peer slashing).
Net: FAQ goes 7 → 6 items, every item now carries unique info that
isn't duplicated elsewhere on the page.
* refactor(faq): reorder for multi-audience priority
Pulling compliance (gated/takedown) up to #3 and nudging token up to
#4 serves developers, investors, and operators in a single ordering
without demoting any audience. Top 3 items now address universal
concerns (cost, trust, legal); middle 2 address token value accrual
and pricing-model flexibility; bottom is the AI-wedge traction
signal. Investor-relevant copy (buyback-and-burn in the token item)
is no longer buried at the bottom where bouncing readers miss it.
New order:
1. How is it 90% cheaper? (hook)
2. How is byte-level integrity enforced? (trust)
3. Can content be gated or taken down? (compliance)
4. Why does the network need a token? (value accrual + stake)
5. Can publishers pay on behalf of users? (pricing flex)
6. Does this work well for AI models? (wedge)
F1: centralize the section vocabulary
Lift `SECTION_IDS`, `SectionId`, `NAV_SECTIONS`, and `DARK_SECTIONS`
out of Chrome.tsx + MobileMenu.tsx into a new `lib/sections.ts`. The
two components had drifted-prone copies of the same five strings.
No behavior change.
F2: tighten the iOS Safari scroll lock
`body { overflow: hidden }` leaks on iOS Safari — touches on a fixed
overlay can still drag the documentElement. Replace with the
position-fixed-on-body pattern: save `window.scrollY` and every body
style we override on open; pin `position: fixed; top: -y; left/right:
0; width: 100%; overflow: hidden`; on close restore the saved styles
and `scrollTo` back to the saved y so the page doesn't appear to jump.
Closes Gemini-bot MEDIUM #1 (SectionId duplication) and MEDIUM #3
(iOS scroll lock) from the PR #56 review.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
* feat(nav): add phone-only slide-out menu drawer On phones (<md) the navbar collapsed the section anchors but left a cramped Docs/Litepaper cluster competing with the wordmark, so compare/method/faq/contact were entirely inaccessible. Replace the right cluster on phones with a single toggle that opens a paper slide-out drawer holding all six destinations, with active-section indication, focus trap, body scroll lock, and a reduced-motion path. Desktop layout is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(mobile-menu): portal drawer to body to escape nav containing block .chrome-nav sets `backdrop-filter: blur(0)` as its base — any non-`none` backdrop-filter creates a containing block for `position: fixed` descendants, so the panel's `top: 0; bottom: 0` was being resolved against the ~70px nav strip instead of the viewport. The drawer rendered as a thin band across the top with the items clipped out. Portal the overlay + panel to `document.body` so their fixed positioning resolves against the viewport. The toggle stays inside the nav (it's intended to live there). Hydration-gate the portal target via useSyncExternalStore — the static-export SSR sees no portal, the first client render matches, and the post-hydration render mounts it. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * refactor(mobile-menu): drop divider above Docs, widen the gap The hairline divider between the section anchors and the external links was reading as visual clutter. Remove the .mm-divider element and replace its ~28px of total margin with a 2.5rem top margin on the external list, giving Docs a touch more breathing room from Contact than the divider previously allowed. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * refactor(mobile-menu): apply PR review fixes + paper-editorial polish Portal the toggle (now alongside the overlay + panel) so its morphed × can sit above the drawer (z-65 > panel z-60) while leaving the wordmark untouched inside the nav — the wordmark stays at z-50 and is naturally covered by the drawer, which is what the prior bare `z-50` layout produced and what we want visually. Drop the redundant in-panel × close button; the morphed toggle is the only close affordance now. The toggle takes a `tone` prop from Chrome so its ink/paper color tracks the navbar's tone (necessary now that it doesn't inherit from the nav). Mark the drawer with `inert={!open}` so descendants leave the tab order while it's translated off-screen (`aria-hidden` alone didn't do that), and listen to `matchMedia('(min-width: 768px)')` so a resize past `md` while open releases the body scroll lock and the forced-paper nav tone. Replace the static `menu` header with a clickable `home` link that jumps to #intro and closes the drawer on tap. The `decdn_`-style green underscore that previously sat next to the header is gone; the same shape now lives as a 14×3px whisper-green bar that slides in next to the active section row — the wordmark's accent recurs inside the drawer instead of being a one-off decoration. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * style(mobile-menu): slow the open/close/stagger choreography The drawer was reading as snappy on phone; bump every transition and keyframe duration ~50–90% on the same easings. Header and rows settle into place more deliberately; the panel slide and overlay dim run closer to the page's existing brutal-rise pacing. - panel slide: 380ms → 720ms - overlay fade: 220ms → 480ms - toggle morph: 280ms → 460ms - toggle color: 260ms → 400ms - header rise: 520ms / 80ms → 760ms / 140ms - row stagger: 520ms · 55ms · 120ms → 760ms · 80ms · 220ms - mark fade: 280ms → 540ms Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * refactor(mobile-menu): land the two deferred review follow-ups F1: centralize the section vocabulary Lift `SECTION_IDS`, `SectionId`, `NAV_SECTIONS`, and `DARK_SECTIONS` out of Chrome.tsx + MobileMenu.tsx into a new `lib/sections.ts`. The two components had drifted-prone copies of the same five strings. No behavior change. F2: tighten the iOS Safari scroll lock `body { overflow: hidden }` leaks on iOS Safari — touches on a fixed overlay can still drag the documentElement. Replace with the position-fixed-on-body pattern: save `window.scrollY` and every body style we override on open; pin `position: fixed; top: -y; left/right: 0; width: 100%; overflow: hidden`; on close restore the saved styles and `scrollTo` back to the saved y so the page doesn't appear to jump. Closes Gemini-bot MEDIUM #1 (SectionId duplication) and MEDIUM #3 (iOS scroll lock) from the PR #56 review. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * refactor(mobile-menu): land second-pass review fixes Six valid items from the latest Copilot + Gemini reviews, plus a walk-back on the wordmark-variant rule from the previous pass. - Wordmark now tracks the actual section (`onDark`), not the forced menu-open paper tone. The wordmark, labs span, and the chrome-nav's tinted backdrop sit at z-50 behind the drawer and are only visible in the left strip the drawer doesn't cover, so they paint on top of the section background — forcing them to paper made the ink-coloured wordmark invisible on dark sections. Only the portalled toggle (z-65, above the drawer) keeps the menu-open paper override via a renamed `toggleTone` prop on MobileMenu. - Focusable elements are cached once at the top of the open-effect and reused by both the Tab handler and `focusFirst`. The portalled toggle is appended as the last entry so keyboard users can Tab to the close × instead of being trapped inside the panel with only ESC as an exit. - The scroll-lock cleanup no longer clobbers in-page anchor navigation. A single `handleClick` reads the link's href; if it starts with `#` it preventDefaults and stashes the target id. The cleanup branches on that ref — anchor present → history.replaceState + el.scrollIntoView; otherwise the existing scroll restoration. - Reduced-motion path actually fades now (matching the PR description). Panel drops its translate and animates opacity 0→1 over 240ms; overlay's existing opacity transition is shortened to 240ms. Rows / header / mark still settle without stagger. - Stale block comment above the mobile-menu CSS block is rewritten — the toggle is described as portalled to <body> at z-65, wordmark explicitly noted as staying inside the nav at z-50. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * feat(nav): re-wire MobileMenu into Chrome on top of main's nav Parking the integration in the merge commit (ae1fcc3) left the nav unusable <md: the desktop Docs/Blog/Litepaper links stayed visible and crowded the row while the section anchors (compare/method/faq/ contact) and the drawer toggle were both missing. Re-doing the integration on top of main's nav (which now uses next/link and `/#section` anchors so the navbar works from /blog/* routes): - Render MobileMenu in the right cluster, after Litepaper. - Add `mobileOpen` state + `handleMobileOpenChange` callback so the toggle's tone overrides `onDark` while the drawer is open. - Hide Docs/Blog/Litepaper <md so the drawer replaces them. The Tailwind utilities migrated on main (border-b border-current pb-[2px]) stay; litepaper keeps the inline borderBottom that main left untouched. Closes #87. * refactor(mobile-menu): apply review fixes Address findings from the four-agent PR review: - Fix the /blog/* anchor regression. When the drawer is opened from a non-home route and a section row is tapped, the close-cleanup's getElementById returned null and silently fell back to scrollTo(scrollYRef) — the tap looked broken. Now the null branch navigates via window.location.assign("/#" + anchor) so the browser handles the cross-route hash jump. - Rewrite two inaccurate comments. globals.css's lead block claimed Chrome.tsx forces data-tone="paper" on the whole nav while the drawer is open — it doesn't, only toggleTone flips. Chrome.tsx's toggleTone comment framed the toggle as a nav child; it's portalled to <body>, so its tone is independent of the nav's data-tone. Collapse the duplicated CSS lead block + .mm-toggle gloss into a one-liner pointing at MobileMenu.tsx — three copies of the portal/z-index story were the worst rot risk in the file. - Replace `external: boolean` on the drawer's bottom-link table with a `kind: "internal" | "external"` discriminant — kills the EXTERNAL.external name overlap and makes the navigation behavior explicit instead of hiding under a boolean. - Make `onOpenChange` required. The only caller passes it and the toggleTone coupling in Chrome.tsx depends on it; optional understated the contract. - Drop two over-defensive guards (`if (focusables.length === 0)` and the `panel ? ... : []` ternary). With the static drawer contents, focusables.length >= 8 and panelRef is always attached when the open-effect runs. - Trim restated-what comments (parent-notify block, body-lock section label, branch narration in the cleanup) and tighten the reduced-motion + .mm-mark blurbs. WHY-only. Kept useSyncExternalStore for the portal hydration gate: the project's eslint config enforces react-hooks/set-state-in-effect, which is exactly the rule the SES pattern exists to avoid. The existing comment was right; the reviewer's suggestion to swap to useState+useEffect was incompatible with the lint config. Did not extract SectionId to a shared module — that path was deliberately closed when lib/sections.ts was deleted in ae1fcc3. --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Brutalist monochrome one-page rebuild with scroll-driven reveals, properly componentised, §02 reframed as a legacy-vs-decdn comparison, live-feeling operational visuals in both the hero and closing sections, fully responsive down to mobile, content tightened against the canonical product docs in
internal/Webpage/, and settlement language kept chain-agnostic.Design & content
px-6 sm:px-16.HeroTerminal) — floating top-right atmin-[1400px]+, inline below the hero content on anything narrower. Three sessions rotate (13.4 GB / 550 MB / 4.2 GB) every ~4.5s with filling progress bar and blinking cursor. Hero paragraph reframes deCDN as "demand-shaped, locality-optimised delivery for large files at scale."target price $0.01/GB · p50 latency 50–100 ms · settlement per-MB · usdc · gas overhead <1%.FleetStatus) — lit charcoal surface (top-to-bottom gradient, inset top-edge highlight, ink-alpha drop shadow), floating top-right atmin-[1400px]+(max width 540px), inline on narrower viewports. 8-node roster, two aggregate stats, live-jitter bars drifting in a 72–82% band on asynchronous 7s / 8.5s cycles. Rounded 14px border, 1.03× hover grow.open information scaled. / its plumbing didn't.), bridge paragraph closes with "supply forms around demand, not allocated to it.", big struck price row ($0.085–$0.17/GBvs clean$0.01/GB), six rows —delivery / billing / operators / integrity / failure / scaling. Mobile: axis label on top; legacy and decdn side-by-side.probe · swarm · settle(stream→swarmto name the distinctive multi-peer aggregation for >10 GB files).<100 ms p50latency target, and the three-criteria ranking (price / latency / reputation) that matches therate × latency × reputation⁻²score from the docs.trust no node — verify every bytemaxim.blake3 · quic · iroh · usdc · evm; settlement statchain-agnostic.text-[15px] sm:text-[17px]. EverydeCDNin body text renders in whisper green via inline spans + a case-insensitivehighlightBrandhelper.animation-timeline: view()withIntersectionObserverfallback. Respectsprefers-reduced-motion.next/font/google; both ops panels use a system monospace stack.#000/#fffplus one whisper-green accent (--whisper: #0f9d6a).color-scheme: lighton<html>and via Next.jsViewport.File structure (per
AGENTS.md)components/site/—Hero.tsx,Comparison.tsx,Method.tsx,Faq.tsx,Close.tsx; overlaysChrome.tsx,ScrollReveal.tsx; animationsHeroTerminal.tsx(client),FleetStatus.tsx(server).components/ui/—SectionHeader.tsx,Figure.tsx,MethodRow.tsx,FaqItem.tsx,ComparisonRow.tsx.app/page.tsxis a 17-line composition.app/globals.csscarries tokens, utility classes, therisecascade,[data-reveal]rule set, both animation suites, mobile/md+ font-size media query.Test plan
pnpm install·pnpm lint·pnpm exec tsc --noEmit·pnpm buildlegacy | decdnunder each axis label.decdn.wordmark.01 probe · 02 swarm · 03 settle; bodies match the canonical protocol claims.deCDNin body text is whisper green.prefers-reduced-motion: reducedisables all cascades;color-scheme: lightprevents force-dark inversions.Review response (PR #3 inline comments)
Addressed 7 of 11 bot review comments; explicitly skipped 4 stale price-correction suggestions (legacy range stayed at
$0.085–$0.17by founder decision).Commits
feat: brutalist one-page rebuild with scroll revealsrefactor: split page.tsx into site and ui componentsfeat(problem): replace narrative with side-by-side comparison gridrefactor: rename Problem section to Comparisonfeat(hero): animated CLI terminal with rotating fetch sessionsrefactor: remove left gutter vertical meta from Chrome componentrefactor(hero): replace speculative "margin" stat with settlementfeat(close): animated fleet status panel with node roster and barsfeat(typography): bump description size and highlight deCDN in greenstyle: loosen horizontal padding across all sectionsfix(mobile): show hero + fleet animations on mobile, repair §02 gridfeat(theme): enforce light color scheme for better visibilityfix: address PR #3 review comments (nav flicker, theme utilities, polish)fix(responsive): navbar visibility + panel breakpoint + fleet sizingrefactor(content): polish hero/comparison/method/faq from /internal/Webpage docsrefactor(content): swap S3 FAQ for AI-focused question, chain-agnostic settlementrefactor(fleet): lighter charcoal panel + live-jitter bar animationrefactor(method): sharper bodies, swap stream→swarm, plain-language settle— probe body sharpened with DHT/latency/ranking specifics; stream → swarm with the >10 GB multi-peer aggregation claim; settle rewritten in plain language (no channel/on-chain/gas terms).🤖 Generated with Claude Code