feat(landing): hide_cta_on_desktop — QR-only acquisition flow#208
Merged
Conversation
Adds a tenant branding flag that hides the CTA buttons on desktop (≥768px), leaving only the QR code, to push desktop visitors to scan and install on their phone. Mobile keeps the CTA. Defaults to false. Requested for acquisition/shill links (e.g. Bitcoin.com News Reddit posts). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Why
Acquisition links (e.g. Bitcoin.com News shilled in Reddit posts) want desktop visitors to install on their phone, not click through to a store on desktop. This adds a tenant flag to hide the CTA on desktop, leaving only the QR.
Change
LandingTheme.hide_cta_on_desktop: bool(defaultfalse).@media (min-width:768px)hides the.cta-row(primary + "Visit website"); the desktop QR stays. Mobile is unaffected (keeps the CTA).Verified
Rendered real output: desktop → icon + headline + tagline + QR, no buttons; Android → CTA shown, QR hidden.
fmt+clippy -D warningsclean.Covers the Graham/satoshiherald feedback
icon_url+brand_name(already possible; "A" is the no-icon monogram fallback).hide_cta_on_desktop: true).cta_label: "Open App"(already possible; install-conditional labels aren't feasible client-side).🤖 Generated with Claude Code