Skip to content
New

Call to action, app

beta

Get the app: the promise, ticked facts and a link per store, beside the app's screen in a phone frame.

npx rasengan-ui add cta-app

Invoices in your pocket

Send an invoice from the client's office, and get a tap on the shoulder the moment it is paid.

  • Works offline
  • Payment alerts
  • Scan receipts
The Senbon app: the balance owed, three summary tiles and a list of recent invoices.
Use it
A product with a mobile app worth installing, near the end of a page.
Avoid it
A web product only: cta-banner.
Built with
Button

Installation

Terminal
npx rasengan-ui add cta-app

It installs into components/blocks/cta-app/, with what it uses (Button) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { CtaApp } from "@/components/blocks/cta-app";
import { home } from "@/content/home";
 
export default function Home() {
  return <CtaApp content={home.app} />;
}
content/home.ts
import { example, type CtaAppContent } from "@/components/blocks/cta-app";
 
export const home = {
  app: { ...example, title: "Take Senbon with you" } satisfies CtaAppContent,
};

Store links are text buttons with generic icons, not the stores' official badges (those artworks have their own terms of use). The app's screen sits in a phone frame drawn with CSS: give a portrait screenshot, about 9:19.5.

Content

FieldTypeLimitsGuidance
titlestring6–60 chars'Invoices in your pocket'.
sublineoptionalstring≤ 180 chars
storesobject[]1–3 itemsText links, not the stores' official badges: use those artworks only under their own terms.
stores[].store"app-store" | "google-play" | "web"Picks the icon; the label says the store in words.
stores[].labelstring2–32 chars'Download on the App Store', 'Get it on Google Play'.
stores[].hrefstring
pointsoptionalstring[]≤ 3 itemsUp to three short facts: 'Works offline'.
screenobjectThe app's screen, portrait (about 9:19.5), shown in a phone frame.
screen.srcstringA local path ('/images/terrace.jpg') or the project's asset URL.
screen.altstring≤ 140 charsWhat the image shows, for people who cannot see it. Empty only if purely decorative.
screen.widthinteger
screen.heightinteger

Props

PropNotes
contentCtaAppContent; the example when left out
idthe section's id, for anchor links; "app" by default
headingLevel1, 2 or 3: the heading's tag; 2 by default
classNameon the <section>, for spacing

Accessibility

  • Each store link says the store in words.
  • The screen's alt says what the app shows.