Merge dev: touch-aware hero demo and autoplay - #90
Merged
Merged
Conversation
Detect coarse pointers, show touch-specific guide copy and actions, autoplay the share loop on touch devices, and refine compact hero layout styles.
feat(web): touch-aware hero demo guide and autoplay
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0c8b6be. Configure here.
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.

Summary
Test plan
Note
Low Risk
Marketing/landing UI and demo interaction only; no auth, APIs, or data handling changes.
Overview
Makes the landing hero product demo work on touch/coarse pointers without pretending visitors can type into the Mac shell, while tightening responsive layout and note legibility.
Touch vs keyboard: Adds
useCoarsePointer(fine pointer =(hover: hover) and (pointer: fine)) and CSS toggles.demoWhenKeys/.demoWhenTouchso guide copy and a singleActionbutton show the right label before hydration. On touch,MacTerminaland the phone terminal become display-only (no hidden input, drag handle, caret, or “show keyboard” key); guide actions render as 40px pill buttons.KeycapTrailis hidden on touch.Autoplay on touch:
useDemoAutoplayruns the share → tap → typels→ unshare loop once when ~50% of the stage is visible; it stops on visitor interaction (sendFromVisitor), scroll-away, or reduced motion. Keyboard users still drive the loop manually.Layout/CSS: Tablet stack recenters the device pair and bumps phone/terminal scale; at ≤760px the Mac becomes a display panel (no base), the iPhone is larger with a bottom fade mask, dock hides, and trailing arrows nudge down toward the phone.
landingHeroMediaaspect ratios update to match. Guide note tint is stronger in light mode (contrast) with a lighter dark-mode variant; quiet notes dim via text color, not opacity.Reviewed by Cursor Bugbot for commit 0c8b6be. Bugbot is set up for automated code reviews on this repo. Configure here.