Skip to content

feat(landing): the demo film plays in "Two minutes with a Mind" - #337

Merged
Lexirieru merged 2 commits into
mainfrom
feat/landing-demo-video
Nov 14, 2026
Merged

Lexirieru merged 2 commits into
mainfrom
feat/landing-demo-video

Conversation

@Nabil-Aufa

Copy link
Copy Markdown
Contributor

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 up
    • demo-720.webm: VP9 720p30, 3.4 MB, used on phones
    • demo-720.mp4: H.264 720p, 4.3 MB, for browsers without WebM (older iPhones)
    • demo-poster.webp: 7 KB, shown until the video starts
  • Demo.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_URL still overrides it, and the "coming soon" card still shows if nothing can play.
  • .gitignore: ignores everything in public/demo/ except those four files.
  • apps/landing/CLAUDE.md and .env.example: how the video is served now. DEPLOY_LANDING_VIDEO_URL is no longer needed on the box.

The video adds about 14.5 MB to the repo history.

Tests

  • tsc --noEmit: pass
  • next build: pass
  • Production build in Chrome (Playwright) at 360x740, 390x844, 768x1024, 1024x768, 1440x900 and 1920x1080:
    • the video plays (720p WebM under 768 px, 1080p WebM from 768 px);
    • the frame is exactly 16:9;
    • no "coming soon" card and no console errors.
  • No sideways scroll at any of those sizes: scrollX stays 0 after a sideways wheel and scrollBy.
  • Note: at 1024 px the document measures 1083 px wide, because of the hero stage. This is already on main and is not from this PR. Body overflow-x: clip keeps the page from scrolling.
  • The MP4 fallback was not tested on a real older iPhone.
  • Integration and load tests: not run. This is a landing-only change, with no backend.

🤖 Generated with Claude Code

Nabil-Aufa and others added 2 commits November 15, 2026 05:36
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>
@Lin1er

Lin1er commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@Nabil-Aufa checked the deploy side of this, since deploy/ is mine. No blockers.

  • deploy.sh builds the landing from git archive HEAD, so the four committed files in public/demo/ ship with it.
  • DEPLOY_LANDING_VIDEO_URL is not set for the automatic deploy, so NEXT_PUBLIC_DEMO_VIDEO_URL builds as an empty string, DEMO_URL is falsy, and the <source> list is used. Nothing needs to change on the deploying machine or the box.

One small follow-up, here or in a later PR: two places in deploy/ still say the video is not in git:

  • deploy/README.md line 31: "optional: without it the demo section shows its placeholder, since the video is not in git"
  • the comment at deploy/deploy.sh lines 17-18

Both could say what apps/landing/CLAUDE.md now says: the film ships with the landing, and DEPLOY_LANDING_VIDEO_URL is only needed to serve it from somewhere else.

Not checked: playback on the hosted landing. I'll check it after the merge deploys.

@Lexirieru
Lexirieru merged commit 03ac930 into main Nov 14, 2026
1 check passed
@Lexirieru

Copy link
Copy Markdown
Contributor

@Nabil-Aufa merged as 03ac930 at 22:59 UTC, before the development deadline. Thanks.

Checked before merging, on the branch: tsc --noEmit and next build pass; the three video files are 48.5 s with the codecs and sizes in the description; the production build serves all four files with the right content type and range requests, and the page has the three <source> tags in order. Axel watched it on a local production build. Not checked: the MP4 fallback on an older iPhone. Integration and load tests were not run: no backend path changes.

deploy/deploy.sh ships apps/landing from git, so the film goes to the box with this deploy. @Lin1er nothing to change on the box; DEPLOY_LANDING_VIDEO_URL is not needed. @AncungAulia for your information.

One small follow-up, not urgent: the section is still titled "Two minutes with a Mind" and the film is 48 seconds.

@Lin1er

Lin1er commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Live on the hosted demo: main 03ac930 (automatic deploy after the merge).

  • Before: 0e8c737, and the box matched git at that revision. CI: passed: Mintlify Deployment,build.
  • GET /v1/health → {"ok":true,"engine":true,"revision":"03ac930"}. No rollback.
  • Rollback target: 0e8c737 (/opt/hellonear/release-old).

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.

3 participants