Skip to content

Block 60 of 297

CTA App Download

Mobile app promo with a feature list, App Store and Google Play links, a no-app fallback line and a CSS phone-framed screenshot.

Puck key
CtaAppDownloadBlock
Export
ctaAppDownloadBlock
React component
<CtaAppDownload />
Path
components/puck/cta-app-download-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

A dark indigo promo panel for a mobile app: an eyebrow, heading, body and up to five feature lines, App Store and Google Play links, an optional small-print line, and a screenshot in a CSS-drawn phone frame. The phone sits slightly tilted and runs off the bottom edge of the panel. On phones the copy comes first with the phone below.

  • A city 311 or service-request app
  • A museum or park audio-guide app
  • A member or ticketing app that replaces paper passes
Writing the content
  • Use Small print to offer a way to reach the service without the app.
  • Three or four Features read best; up to five are allowed, two columns wide on larger screens.
  • Store links are text buttons, not Apple's or Google's official badges. Point each at your app's listing.
  • The phone frame crops the screenshot to 9:16 from the top, so keep key content high on the screen.
Accessibility
  • Store links are labelled with visible text rather than badge images, so their purpose is clear to screen readers (WCAG 2.4.4).
  • Screenshot alt text comes from the editor; describe what the screen shows, not the device.
  • The phone notch, feature dashes and ring pattern are hidden from assistive technology, and store links are 56px tall with white focus outlines.
Customizing the code
  • The panel is bg-indigo-950 with indigo-100 and indigo-200 text; change these together to keep contrast.
  • Phone frame width is w-56 sm:w-64 lg:w-72 with rotate-2 and translate-y-6; remove the rotation for a straight phone.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Bodytextarea
  • Featuresarray
  • App Store link texttext
  • App Store linktext
  • Google Play link texttext
  • Google Play linktext
  • Small printtext
  • Screenshot URLtext
  • Screenshot alt texttext