Skip to content

feat(marketing): the hero's self-playing opening scene (#1255) - #1268

Merged
athvin merged 2 commits into
mainfrom
issue/1255-marketing-hero-scene
Nov 26, 2026
Merged

athvin merged 2 commits into
mainfrom
issue/1255-marketing-hero-scene

Conversation

@athvin

@athvin athvin commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Closes #1255

🚧 Claimed by an agent session — 2026-11-26T19:37:49Z, session Claude Code:30a1182e-8c7e-47e3-92ac-cda64c13fcfc on brians-MacBook-Pro.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

The home hero gets a self-playing opening scene (#1253's "trailer" shot).

  • The scene. Salesforce, a CSV upload and the API each hold their own version of Meridian Supply. The three settle in and clean up in place until their names are identical. They line up, drawing a blue evidence line, then collapse into one golden record, which holds with its three sources stacked behind it. Every value on it says where it came from.
  • How it runs. It is CSS on a server component and lasts at most 4.84s. ScenePlayback is the only island: Replay, plus holding the scene until it is first seen when it sits below a short phone's first screen.
  • Placement. On wide screens it fills the empty right half of the hero. On phones it sits after "Explore the flow", so the first screen is unchanged.

Why

The owner chose a self-playing opening scene (2026-11-26). The quiet hero said "entity resolution" without showing it, and this shows the whole product in five seconds, using the same company every later scene follows.

Proof

  • eslint ., prettier --check ., tsc --noEmit and next build are green; / is still ○.
  • Home specs: marketing-scenes + marketing + marketing-interactions on all three projects: 130 passed, 2 skipped. That includes the flow ports within 1px, the five bridges, the next links at 64±3px, no snap, no touch interception, the audit, reduced motion and no-JS.
  • Axe: the landing screen is clean on desktop-chromium, mobile-chrome and mobile-safari.
  • New tests, each observed failing first:
    • The scene plays once in ≤ 5s, holds, and replays. Mutated to 5.4s it fails with Expected: <= 5000, Received: 5620.
    • Nothing moves under reduced motion. With the motion gate removed it fails with Received + 19 animations.
    • It never covers a glyph of the copy at 1440/1280/1024/820, and the flow link stays on a phone's first screen. This test failed for real until the phone layout moved, and it caught a flaw in its own first draft, which compared full-width block boxes instead of text.
  • make skills-check is green.
  • Baselines: make frontend-baselines ran in playwright:v1.63.0-jammy.

Risk & rollback

  • Risk: the hero is the most-seen frame on the site. Reduced motion, no JS and no view-timeline support all get the static payoff.
  • Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:30a1182e-8c7e-47e3-92ac-cda64c13fcfc on brians-MacBook-Pro · 2026-11-26T20:01:02Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  • hero-scene.tsx + hero-scene.css: the payoff is the base style; motion only under no-preference
  • scene-playback.tsx: Replay, and play-on-first-view for a scene below the first screen
  • layout measured at 1440/1280/1024/820/390/320 before placing; the scene lives in the empty right half on wide screens
  • functional tests + mutation checks; baselines regenerated; landing-page skill updated

Discoveries

  • The CSS minifier silently dropped translate: calc(-1 * min(132px, 32cqw) - 14px) -50%. The declaration was simply absent from the built stylesheet, so the evidence line sat in the middle of the cards. Routing it through var() kept it. Recorded in hero-scene.css.
  • The iPhone 15 profile shows 659px. Any scene above the foot pushed "Explore the flow" below the fold, and a 330px stage put it 7px under on a Pixel 7. Moving the scene after the foot in the DOM fixed both, and ScenePlayback holds the animation until the scene is seen.
  • The baseline regeneration rewrote 16 PNGs. Three are the hero. The mobile story-section captures shift by up to a pixel because the phone hero is taller. One app baseline (reviews-mobile-chrome) came back 2 bytes different and was left alone.

Measurements

  • The headline's lines end at x=649 (1440), 530 (1280), 431 (1024) and 353 (820). The stage starts at 740, 642, 509 and 402.
  • The longest animation endTime is 4,820ms, plus a 320ms roll delay inside the same span, so the whole scene finishes within 4.92s.

Files

  • frontend/src/components/marketing/scene/{hero-scene.tsx,hero-scene.css,scene-playback.tsx,scene.css}
  • frontend/src/components/marketing/hero.tsx
  • frontend/tests/functional/marketing-scenes.spec.ts
  • frontend/tests/functional/*-snapshots/marketing-*.png: the hero and the shifted mobile sections
  • .claude/skills/landing-page/SKILL.md

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The marketing preview was removed because this PR is closed or merged.

bmoore813 and others added 2 commits November 26, 2026 11:47
Three versions of Meridian Supply (Salesforce, a CSV upload, the API) settle
in, clean up until their names are identical, line up on that evidence and
collapse into one golden record that keeps all three behind it, then hold.
CSS on a server component, under five seconds; ScenePlayback is the only
island (replay, and hold until first seen when the scene is below a short
phone's first screen). Reduced motion shows the payoff.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The hero now shows its opening scene's payoff (reduced motion) on all three
projects, and on phones the scene sits after the foot, which moves every
section below it: the stitched mobile captures of the story sections shift by
up to a pixel and are regenerated with it. Regenerated in the pinned
playwright:v1.63.0-jammy image with make frontend-baselines; an unrelated app
baseline (reviews, mobile-chrome) that came back 2 bytes different was left
as it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
marketing-preview — 2a09871a Deployed Nov 26, 2026 by athvin via remove closed PR previews #68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Home hero: a self-playing opening scene where three Meridian records collapse into one

2 participants