Hero tour
The landing hero - a centred headline over an animated, tabbed tour of the real app - and how to change its copy, gate its scenes, and add or replace a scene.
The landing page opens with LandingHero (components/landing/hero/landing-hero.tsx): a centred headline, one sub-line, a primary and a secondary call to action, a short trust row, then HeroShowcase - a tabbed tour that replays the real app scene by scene, 8 seconds each. Every scene is CSS-only and server-rendered, so its captions ship in the HTML.
What it shows
| Scene | Shows | Shown when |
|---|---|---|
| Codebase | The monorepo in an editor, the type check and tests going green | Always |
| AI | A chat turn with the model picker and credits metered | isWebAiEnabled() |
| Auth | Sign-in, two-factor, landing on the dashboard | Always |
| Payments | Billing settings: a top-up and the yearly prices | config.payment.enabled |
| Teams | A role change and an invitation | config.tenancy.multiTenant |
| Admin | Impersonating a user, then the audit log | Always |
| Emails | Template preview, onboarding sequence, email analytics | Always |
| Desktop | The desktop app's model settings and a local CLI session | config.desktop.enabled |
| Mobile | The phone app's sign-in, chat and settings | config.mobile.enabled |
| Updates | generatesaas update and its guided merge | Always |
A build that switched a surface off never advertises it: the gate lives in SCENE_GATES (lib/landing/hero-scene-ids.ts), which reads the same config the app does.
Change the copy
| Copy | Key in packages/i18n/translations/en/web.json |
|---|---|
Headline (keep the <em> and <mark> accents) | landing.hero.title_html |
| Sub-line | landing.hero.slogan |
| Secondary button | landing.hero.cta_secondary |
| Trust row | landing.hero.trust.* |
| Tab labels, short phone labels and captions | landing.hero.tabs.*, landing.hero.tabs_short.*, landing.hero.tab_captions.* |
| Text inside a scene | demo.hero_scenes.<scene>.* |
The primary button reads common.cta and links to config.routes.pricing. LandingHero also takes props to override any of it - ctaText, ctaLink, secondaryButtonText, secondaryButtonLink, showSecondaryButton, and trust ([] hides the row). With config.waitlist on, the buttons give way to the waitlist form and the tour still plays.
Demo names, addresses and amounts live in lib/landing/hero-scene-world.ts; each scene's shell draws your real sidebar, logo and site name.
Add or replace a scene
Add the id to HERO_SCENE_IDS and its gate to SCENE_GATES in lib/landing/hero-scene-ids.ts, plus its tab label, short label and caption keys.
Write components/landing/hero/scenes/<id>-scene.tsx - the page inside SceneAppShell with the real screen's classes and keys (demo.hero_scenes.<id> only for copy the web app does not carry), one SceneCursor - and register it in lib/landing/hero-scenes.tsx.
Animate it in hero-scenes.css: the resting (final) frame, the rules inside the reduced-motion gate, the phone camera, then the keyframes.
Run pnpm --filter web test tests/components/landing, then check every scene at 1280px and at 390px.
The bundled landing-animations agent skill holds the full motion contract - timings, the pointer and camera rules, the QA pass - see Agent context.
Deleting a scene is the first step in reverse: remove its id, its scene file, its CSS section and its demo.hero_scenes.<id> keys. Under reduced motion every scene shows its finished frame and nothing auto-advances.
Landing page
The sections the marketing landing page renders, the data and config behind each, and how to change, gate or remove them.
SEO kit
One shared layer giving every content and marketing page article-grade metadata, canonical and hreflang, breadcrumbs, JSON-LD, generated OG images, markdown renditions, and a required-fields guard.