fix(marketing): isolate and scale the mobile phone demo

Merged
KI
2mo ago
+36-31

What & why

Fix the broken phone stack on /mobile. The side phones combined absolute positioning with PhoneFrame's relative class, leaving all three phones in the flex flow.

Extract StackedPhones with separate positioning wrappers and scale the composition to its container. The homepage continues to use SpreadPhones; both layouts reuse the same phone screens.

How I tested it

  • Verified at 320, 390, 768, 1024, 1280, and 1440px: all phones stay within the demo with no horizontal page overflow. Visually checked desktop and phone layouts and checked the homepage spread.
  • Passed marketing typecheck, repository lint, and plugin validation locally. CI lint and all preview deployments passed on the implementation commit.
  • Full CI typecheck stopped when the admin task exited 137 (killed), with no TypeScript diagnostic reported. Local full tests hit a 5000ms timeout in the unchanged i18n provider-state test, also reproducible in isolation. Full CI tests/build were still running before the screenshot-only cleanup commit.
  • Screenshots are pinned to the implementation commit for review and excluded from the final source diff.
Desktop and phone screenshots

Desktop mobile demo

Phone mobile demo

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass (lint passed; full typecheck stopped as described above)
  • "Allow edits from maintainers" is checked on fork PRs (not a fork)