Skip to Content
GenerateSaaS

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

SceneShowsShown when
CodebaseThe monorepo in an editor, the type check and tests going greenAlways
AIA chat turn with the model picker and credits meteredisWebAiEnabled()
AuthSign-in, two-factor, landing on the dashboardAlways
PaymentsBilling settings: a top-up and the yearly pricesconfig.payment.enabled
TeamsA role change and an invitationconfig.tenancy.multiTenant
AdminImpersonating a user, then the audit logAlways
EmailsTemplate preview, onboarding sequence, email analyticsAlways
DesktopThe desktop app's model settings and a local CLI sessionconfig.desktop.enabled
MobileThe phone app's sign-in, chat and settingsconfig.mobile.enabled
Updatesgeneratesaas update and its guided mergeAlways

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

CopyKey in packages/i18n/translations/en/web.json
Headline (keep the <em> and <mark> accents)landing.hero.title_html
Sub-linelanding.hero.slogan
Secondary buttonlanding.hero.cta_secondary
Trust rowlanding.hero.trust.*
Tab labels, short phone labels and captionslanding.hero.tabs.*, landing.hero.tabs_short.*, landing.hero.tab_captions.*
Text inside a scenedemo.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.

On this page