Repository navigation
Add Templates: Orbit landing site (desktop + mobile) and a 17-screen mobile app - #3
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Everything is clickable with no backend: links, forms with validation, dialogs, sheets, menus, toasts, and loading and empty states.
The viewer offers:
/preview/<template>/<screen>).New library components that every style themes, each with a Components Lab section:
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:
Checklist
npm test,npm run lintandnpm run buildpass (196 tests; lint warnings unchanged frommain;npm run docs:buildalso passes)Tests added:
Generated by Claude Code