Issue 01 · Sections · p.70
Call-to-action band
A closing band in the accent colour that repeats the main action once more.
Why it works: Use it at the end of a long page, once. Repeat the same action as the hero, not a new one, and keep the reassurance line.
Try it:
Receipt: axe clean · contrast 5.42:1 · 1 tab stop · RTL ✓ · long text ✓
- PASS axe, WCAG 2.1 A and AA: no violations in light or dark (8 rules passed).
- PASS Tightest text contrast 5.42:1, where 4.5:1 is needed (light).
- PASS Still passes contrast with tokens fitted to a yellow brand colour.
- PASS Right-to-left with Arabic sample text fits a 390px phone.
- PASS Every string 40% longer still fits a 390px phone.
- PASS No motion.
Tab order
- link "Start a shared budget":
What assistive tech is given
- heading "Your next trip, already settled." [level=2] - paragraph: Set up a group in under a minute. Free for up to five people. - link "Start a shared budget": - /url: "#"
Automated checks in CI (axe in Chromium, reduced motion on). They catch a lot, not everything: still try it with a screen reader.
See it in the zine npx -y tearsheet add cta-band
Needs the shared tokens.css once per project.
HTML + CSS
index.html
<!-- tearsheet cta-band v1d7e969e · https://qusaialjbali.github.io/tearsheet/zine/parts/cta-band.html -->
<section class="cta-band">
<div>
<h2>Your next trip, already settled.</h2>
<p>Set up a group in under a minute. Free for up to five people.</p>
</div>
<a class="cta-band-btn" href="#">Start a shared budget</a>
</section>styles.css
/* tearsheet cta-band v1d7e969e · https://qusaialjbali.github.io/tearsheet/zine/parts/cta-band.html */
.cta-band {
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
width: 100%; padding: clamp(28px, 5vw, 48px); color: var(--ui-accent-text); background: var(--ui-accent); border-radius: var(--ui-radius);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band-btn {
display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-weight: 700; text-decoration: none;
color: var(--ui-accent); background: var(--ui-accent-text); border-radius: var(--ui-radius-sm);
}
.cta-band-btn:hover { opacity: 0.92; }
.cta-band-btn:focus-visible { outline: 3px solid var(--ui-accent-text); outline-offset: 3px; }React
CtaBand.jsx
/* tearsheet cta-band v1d7e969e · https://qusaialjbali.github.io/tearsheet/zine/parts/cta-band.html */
import './CtaBand.css';
export function CtaBand() {
return (
<section className="cta-band">
<div>
<h2>Your next trip, already settled.</h2>
<p>Set up a group in under a minute. Free for up to five people.</p>
</div>
<a className="cta-band-btn" href="#">Start a shared budget</a>
</section>
);
}CtaBand.css
/* tearsheet cta-band v1d7e969e · https://qusaialjbali.github.io/tearsheet/zine/parts/cta-band.html */
.cta-band {
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
width: 100%; padding: clamp(28px, 5vw, 48px); color: var(--ui-accent-text); background: var(--ui-accent); border-radius: var(--ui-radius);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band-btn {
display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-weight: 700; text-decoration: none;
color: var(--ui-accent); background: var(--ui-accent-text); border-radius: var(--ui-radius-sm);
}
.cta-band-btn:hover { opacity: 0.92; }
.cta-band-btn:focus-visible { outline: 3px solid var(--ui-accent-text); outline-offset: 3px; }Vue
CtaBand.vue
<!-- tearsheet cta-band v1d7e969e · https://qusaialjbali.github.io/tearsheet/zine/parts/cta-band.html -->
<template>
<section class="cta-band">
<div>
<h2>Your next trip, already settled.</h2>
<p>Set up a group in under a minute. Free for up to five people.</p>
</div>
<a class="cta-band-btn" href="#">Start a shared budget</a>
</section>
</template>
<style scoped>
.cta-band {
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
width: 100%; padding: clamp(28px, 5vw, 48px); color: var(--ui-accent-text); background: var(--ui-accent); border-radius: var(--ui-radius);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band-btn {
display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-weight: 700; text-decoration: none;
color: var(--ui-accent); background: var(--ui-accent-text); border-radius: var(--ui-radius-sm);
}
.cta-band-btn:hover { opacity: 0.92; }
.cta-band-btn:focus-visible { outline: 3px solid var(--ui-accent-text); outline-offset: 3px; }
</style>Svelte
CtaBand.svelte
<!-- tearsheet cta-band v1d7e969e · https://qusaialjbali.github.io/tearsheet/zine/parts/cta-band.html -->
<section class="cta-band">
<div>
<h2>Your next trip, already settled.</h2>
<p>Set up a group in under a minute. Free for up to five people.</p>
</div>
<a class="cta-band-btn" href="#">Start a shared budget</a>
</section>
<style>
.cta-band {
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
width: 100%; padding: clamp(28px, 5vw, 48px); color: var(--ui-accent-text); background: var(--ui-accent); border-radius: var(--ui-radius);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band-btn {
display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-weight: 700; text-decoration: none;
color: var(--ui-accent); background: var(--ui-accent-text); border-radius: var(--ui-radius-sm);
}
.cta-band-btn:hover { opacity: 0.92; }
.cta-band-btn:focus-visible { outline: 3px solid var(--ui-accent-text); outline-offset: 3px; }
</style>