Skip to content

Adapt download links for iPhone and iPad - #103

Merged
f merged 1 commit into
masterfrom
codex/ios-download-cta
Aug 23, 2026
Merged

Adapt download links for iPhone and iPad#103
f merged 1 commit into
masterfrom
codex/ios-download-cta

Conversation

@f

@f f commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • detect iPhone and iPad visitors, including iPadOS desktop-mode user agents
  • turn both primary download actions into device-specific App Store links
  • remove duplicate App Store and desktop-only Homebrew actions on those devices
  • tailor the minimum OS copy for iOS and iPadOS

Verification

  • npx html-validate docs/index.html
  • git diff --check
  • DOM simulation for Mac, iPhone, iPad, and iPadOS desktop-mode user agents

Copilot AI lite review requested due to automatic review settings August 23, 2026 00:22
@f
f merged commit a2d42cf into master Aug 23, 2026
@f
f deleted the codex/ios-download-cta branch August 23, 2026 00:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The functional changes are straightforward and self-contained to docs/index.html, with only minor maintainability/style nits noted.

Pull request overview

This PR updates the landing page download CTAs to adapt for Apple mobile visitors (iPhone/iPad, including iPadOS desktop-mode), so users see App Store–appropriate actions and iOS/iPadOS-specific minimum OS copy instead of macOS/Homebrew options.

Changes:

  • Adds data-attributes to the two primary download buttons so they can be retargeted to the App Store on iPhone/iPad.
  • Hides App Store duplicate buttons and desktop-only install sections on Apple mobile, and swaps the requirements copy to iOS/iPadOS variants.
  • Introduces a small CSS rule for [hidden] and an inline script to perform UA/platform detection and DOM updates.
File summaries
File Description
docs/index.html Adds device-aware download CTA adaptation (App Store links, hiding desktop install UI, and tailored iOS/iPadOS requirements copy).
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/index.html
<div class="hero-brew"><span>Homebrew</span><code>brew install textream</code></div>
<p class="dl-meta">macOS 15+ &middot; iOS 26+ &middot; No sign-up required</p>
<div class="hero-brew" data-desktop-install><span>Homebrew</span><code>brew install textream</code></div>
<p class="dl-meta" data-platform-requirements data-iphone-copy="iOS 26+ · No sign-up required" data-ipad-copy="iPadOS 26+ · No sign-up required">macOS 15+ &middot; iOS 26+ &middot; No sign-up required</p>
Comment thread docs/index.html
Comment on lines +3485 to +3490
var appStoreURL = 'https://apps.apple.com/app/textream/id6800061488';
var appleIcon = '<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M16.7 13.1c0-2.4 2-3.6 2.1-3.7-1.1-1.7-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.6.9-.7 0-1.8-.9-3-.9-1.5 0-3 .9-3.8 2.3-1.6 2.8-.4 7 1.1 9.3.8 1.1 1.7 2.3 2.9 2.2 1.2 0 1.6-.7 3.1-.7 1.4 0 1.9.7 3.1.7 1.3 0 2.1-1.1 2.8-2.2.9-1.3 1.2-2.6 1.2-2.6-.1 0-2.4-.9-2.4-3.4ZM14.3 5.9c.6-.8 1.1-1.9.9-3-.9 0-2.1.6-2.8 1.4-.6.7-1.1 1.8-1 2.9 1.1.1 2.2-.5 2.9-1.3Z"/></svg>';

document.documentElement.dataset.downloadPlatform = device.toLowerCase();

document.querySelectorAll('[data-platform-download]').forEach(function(link) {
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.

2 participants