Skip to content

Add Templates: Orbit landing site (desktop + mobile) and a 17-screen mobile app - #3

Merged
Chinto-lgtm merged 5 commits into
mainfrom
claude/busy-hypatia-llv9lb
Oct 8, 2026
Merged

Chinto-lgtm merged 5 commits into
mainfrom
claude/busy-hypatia-llv9lb

Conversation

@Chinto-lgtm

Copy link
Copy Markdown
Owner

What this changes

Adds a Templates page. It shows one fictional product, Orbit (a personal money app), in three templates built only from the component library, so switching style restyles every screen:

  • Desktop landing: 7 pages (Home, Features, Pricing, About, Blog, Contact, Sign in) in a 1440px browser.
  • Mobile landing: the same responsive site on a 390px phone. The layout follows the frame width through CSS container queries.
  • Mobile app: 17 screens in six flows:
    • Onboarding
    • Everyday
    • Goals
    • Money
    • Social
    • Account, including loading, empty, error and offline states

Everything is clickable with no backend: links, forms with validation, dialogs, sheets, menus, toasts, and loading and empty states.

The viewer offers:

  • Screen, Flow (every screen on one board) and A/B/C views (one screen in three styles).
  • A live panel listing the components on screen. Hovering a name outlines those components in the frame.
  • Share links and a full-screen preview route (/preview/<template>/<screen>).
  • An optional visitor image. It stays only in the tab's memory and is gone on reload.

New library components that every style themes, each with a Components Lab section:

  • Content & marketing: Accordion, Chip/ChipGroup, Carousel, Rating, PricingCard, Testimonial
  • Mobile: StatusBar, AppBar, TabBar, ChatBubble, PinInput

The bottom drawer gets a grab handle, and Backdrop gains a fit="cover" option so decorative art keeps its proportions.

On Templates routes the shell canvas no longer carries the current style's treatment attributes, so in A/B/C compare each frame gets only its own style's rules.

Commits, one per stage:

  1. New components and Components Lab sections
  2. Templates viewer and landing site
  3. Mobile app
  4. Tests, docs and screenshots

Checklist

  • npm test, npm run lint and npm run build pass (196 tests; lint warnings unchanged from main; npm run docs:build also passes)
  • Style packages: not applicable
  • Engine changes: not applicable
  • Screenshots attached for visual changes

Tests added:

  • Every screen renders in five contrasting styles, and both home screens in every registered style.
  • Every link target is a real screen.
  • The trial dialog, sign-in, blog filtering and new-goal flows work end to end.
  • Each template uses the whole component library. The app skips only the desktop Navbar.
  • Template code reads only style tokens, never literal colours.

Templates

A/B/C compare

Flow board


Generated by Claude Code

…le components

New library components that every style themes: Accordion, Chip and ChipGroup,
Carousel, Rating, PricingCard and Testimonial (content and marketing), and
StatusBar, AppBar, TabBar, ChatBubble and PinInput (mobile patterns). The bottom
drawer gains a grab handle so it reads as a sheet, and the style treatments now
cover chips and code boxes. Both groups get their own Components Lab section.
…bile

A new Templates page shows real product screens built only from the component
library, so every style restyles them. The first template is the marketing
site for Orbit, a fictional money app: Home, Features, Pricing, About, Blog,
Contact and Sign in. It is one responsive site that switches to its phone
layout with container queries, shown in a 1440px browser and a 390px phone.
Links, forms, dialogs, menus and toasts all work, with no backend.

The viewer frames each screen at true size and zooms it to fit, and offers a
flow board of every screen, an A/B/C comparison in three styles, a live list
of the components on screen (hover to outline them), copyable share links
and a full-screen preview route. Visitors can drop in their own image; it
stays in the tab's memory and is gone on reload.
The third template is the Orbit app itself on a 390px phone, grouped into the
flows a person walks through: onboarding (splash, welcome carousel, sign in,
code verification, permissions), everyday (home, discover, notifications),
goals (goal detail, a three-step new-goal form, success), money (wallet with
cards, card designer, charts, transactions and statements), social (chat list
and a chat with a playable voice note) and account (profile, settings and the
loading, empty, error and offline states).

Every screen is wired: tabs, sheets, menus, dialogs, toasts and forms respond
and links move between screens. Backdrop gains a cover fit so decorative art
keeps its proportions in tall or square slots.
…arate

Tests render every landing page and app screen in five contrasting styles and
the home screens in every registered style, check that links and the tab bar
lead to real screens, walk the trial dialog, sign-in, blog and new-goal flows,
and confirm each template uses the whole component library and reads only
style tokens. App tests cover the Templates routes, the flow board and the
full-screen preview.

On Templates routes the shell canvas no longer carries the current style's
treatment attributes, so in A/B/C compare each frame gets only its own
style's construction rules.

A Templates guide joins the docs, with screenshots, and the README, docs home,
Components guide and architecture notes point to it.
main already carries the first two commits of this branch as a squash (#2),
with an identical tree, so this branch's files are kept as they are.
@Chinto-lgtm
Chinto-lgtm merged commit 8266305 into main Oct 8, 2026
2 checks passed
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