Repository navigation
feat(landing): the demo film plays in "Two minutes with a Mind" - #337
Conversation
Nabil's marketing film (48 s) for "Two minutes with a Mind" (#334), made light: VP9 WebM 1080p30 (6.8 MB) and 720p30 (3.4 MB), an H.264 720p MP4 (4.3 MB) for browsers without WebM, and a poster frame (7 KB). The 40 MB 1080p60 master stays out of git. public/demo/ still ignores anything else. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The demo card now plays the committed film: 1080p WebM from 768 px up, 720p WebM on phones, the MP4 where WebM does not play, with a poster until it starts. The frame is always 16:9 (at most 1067 x 600 px): the old 600 px height cap on a full-width frame cut off the top and bottom of the film. NEXT_PUBLIC_DEMO_VIDEO_URL still overrides it. Tests: tsc --noEmit and next build pass. Production build in Chrome (Playwright) at 360, 390, 768, 1024, 1440 and 1920 px: the video plays (720p WebM under 768 px, 1080p WebM from 768 px), the frame is exactly 16:9, no "coming soon", no console errors, and the page does not scroll sideways (scrollX stays 0 after a sideways wheel and scrollBy). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@Nabil-Aufa checked the deploy side of this, since
One small follow-up, here or in a later PR: two places in
Both could say what Not checked: playback on the hosted landing. I'll check it after the merge deploys. |
|
@Nabil-Aufa merged as Checked before merging, on the branch:
One small follow-up, not urgent: the section is still titled "Two minutes with a Mind" and the film is 48 seconds. |
|
Live on the hosted demo:
|
Part 2 of #334: the marketing film in the demo section.
What changed
public/demo/now holds the film, committed on purpose and kept light (the 40 MB 1080p60 master stays out of git):demo-1080.webm: VP9 1080p30, 6.8 MB, used from 768 px updemo-720.webm: VP9 720p30, 3.4 MB, used on phonesdemo-720.mp4: H.264 720p, 4.3 MB, for browsers without WebM (older iPhones)demo-poster.webp: 7 KB, shown until the video startsDemo.tsx: plays those files with<source>(by screen width, then type). The frame is always 16:9 (at most 1067 x 600 px); before, a 600 px height cap on a full-width frame cut off the top and bottom.NEXT_PUBLIC_DEMO_VIDEO_URLstill overrides it, and the "coming soon" card still shows if nothing can play..gitignore: ignores everything inpublic/demo/except those four files.apps/landing/CLAUDE.mdand.env.example: how the video is served now.DEPLOY_LANDING_VIDEO_URLis no longer needed on the box.The video adds about 14.5 MB to the repo history.
Tests
tsc --noEmit: passnext build: passscrollXstays 0 after a sideways wheel andscrollBy.mainand is not from this PR. Bodyoverflow-x: clipkeeps the page from scrolling.🤖 Generated with Claude Code