Skip to content

Scrolling, interactive product demo on the landing page - #81

Merged
carlassmann merged 3 commits into
mainfrom
t3/scrolling-product-demo
Nov 19, 2026
Merged

carlassmann merged 3 commits into
mainfrom
t3/scrolling-product-demo

Conversation

@carlassmann

Copy link
Copy Markdown
Owner

Why

The landing page showed static screenshots. Visitors couldn't see how Tilly feels to use, and the screenshots didn't match the app anymore.

What

The hero and the story below it now play the real app inside a phone frame as you scroll:

  1. Write down a note on Sarah's page (the app's own note dialog opens and types).
  2. Set a reminder (reminder dialog, then a notification).
  3. Tell Tilly in the chat; the agent's replies and tool results appear.
  4. Catch up before meeting someone.
  5. See today's reminders and swipe one done.

Visitors can take over the phone at any point. Clicks and typing go to the real UI, backed by an in-memory Jazz account with five demo friends. The script pauses until the next scene. On touch screens, a "Tap to try it" button hands over the phone so page swipes still scroll. The demo ends with "Your turn": keep clicking, start Tilly, or ask Carl's Syntwin. That replaces the separate Syntwin card.

Also in this PR:

  • A design pass on the landing page sections (shared width, cards, FAQ in two columns, pricing cards of equal height, CTA panel).
  • "Learn more" jumps to the first scene.
  • Before the app inside the phone starts, it shows a screenshot of its first screen (light or dark, per language) with a loading badge. The phone is server-rendered and sized by an inline script before first paint.
  • The navbar no longer loads the app's message catalogs. Its menu labels are inline per language.
  • Vite's allowedHosts includes the work tailnet hosts in dev.

Decisions

  • Real UI, not a video. The phone is an iframe at /demo/phone that renders the app's own screens and components. The landing page sends it the scroll position over postMessage. A pure function, demoFrameAt(locale, scene, progress), decides what each frame shows, and it is unit-tested.
  • Dialogs are driven through the DOM, the same way the E2E tests do it: click the add button, type into the field. The dialogs themselves are unchanged.
  • Small app changes for the demo:
    • SwipeableListItem gains an optional SwipePreview context, so the demo can hold a row swiped open. Without a provider, behaviour is unchanged.
    • useHasPlusAccess now reads a context. The app provides it from Clerk in main.tsx; the demo provides its own value.

Weight

  • App: +61 / −12 lines.
  • Website and demo: +2395 / −628 lines, including 70 lines of new unit tests for the demo script.
  • Removed: FeaturesWithProductScreenshot, PhoneMedia, SyntwinCTA, and four landing page screenshots the demo replaced. en-chat/en-people are kept for the README.

Verification

  • bun check passes, and all 432 vitest tests pass.
  • Playwright E2E passes 4/4 (note, person, reminder CRUD, reminder done) against this branch.
  • Checked in Chrome at 375×667, 393×852, 412×915, 768×1024, 1024×768, 1280×800, 1440×900 and 1920×1080, in light and dark, in English and German, with the touch flow emulated.
  • Review fixes, each reproduced first:
    • A failed avatar request left the phone loading forever. Avatars are now optional.
    • The phone page said lang="en" in German.

Known risks

  • Safari is untested here. WebKit doesn't run on the dev machine. The phone's sizing moved from a CSS tan(atan2()) formula to a script after a Safari report, so check it on a Mac and an iPad.
  • The phone frame weighs ~2.3 MB of JS (740 KB gzipped), mostly Jazz's inlined crypto WASM. The page shows the screenshot until it loads.
  • The mouse wheel over the phone always scrolls the page, so overflowing screens inside the phone can't be wheel-scrolled. This is on purpose, so the story keeps moving.
  • If the Jazz test account itself fails to start, the loading badge stays up over the screenshot. There is no error state.
  • On touch screens, the inactive phone is covered by a button but still reachable by keyboard and screen readers.
  • Syntwin only opens on allowlisted domains, so preview hosts show the button but it does nothing there.

written with claude-opus-5-5 in Claude Code

The hero and story now play the real app inside a phone frame as visitors
scroll: notes, reminders, a swipe and a chat with Tilly. Visitors can take
over the phone at any time, and the demo ends with a call to start Tilly or
ask Carl's Syntwin.

written with claude-opus-5-5 in Claude Code
Also set the phone page's language to the demo's.

written with claude-opus-5-5 in Claude Code
written with claude-opus-5-5 in Claude Code
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tilly Ready Ready Preview Nov 19, 2026 6:01am UTC

@carlassmann
carlassmann merged commit d92104d into main Nov 19, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — cea8d5bf Deployed Nov 19, 2026 by vercel[bot]
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.

1 participant