Pause Plan 2
Pause plan 2: an honest cancellation save. What stays and what ends sit side by side on a calm moving band, beside a sticky decision panel with three equal choices (pause, lighter plan, cancel). Picking pause shows the exact resume date, counted from today.
Use it in a prompt
Use offer/pause-plan-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/offer/pause-plan-2.tsx. - Import it and pass your copy and images (Props tab):
import { PausePlan2 } from "@/components/funneldna/offer/pause-plan-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/pause-plan-2/component.tsx 600 lines
// layout: sticky-offer-side
// Pause plan 2: an honest cancellation save. What stays and what ends sit side by side on a calm moving band, beside a sticky decision panel with three equal choices (pause, lighter plan, cancel). Picking pause shows the exact resume date, counted from today.
import * as React from 'react';
import { CalendarCheck, Check, DoorOpen, Feather, Pause, X } from 'lucide-react';
import { BackdropVideo, FX_HOST } from '../fx/fx';
import bokeh from '../fx/loops/bokeh';
export type PausePlan2Perk = {
title: React.ReactNode;
/** Optional short line under the perk. */
detail?: React.ReactNode;
};
export type PausePlan2Plan = {
/** Passed back in onAction so the builder knows which plan was picked. */
id?: string;
name: string;
/** Display price such as "$9"; the currency sign is set as a superscript. */
price: string;
/** Small line under the price, e.g. "per month". */
period?: string;
/** Line inside the choice row; defaults to price and period. */
detail?: React.ReactNode;
};
export type PausePlan2Progress = {
label: React.ReactNode;
value: number;
max: number;
};
export type PausePlan2Choice =
| { type: 'pause'; months: number; resumeDate: string }
| { type: 'switch'; plan: PausePlan2Plan }
| { type: 'cancel'; cancelDate?: string };
type ChoiceKey = PausePlan2Choice['type'];
export type PausePlan2Copy = {
keepTitle: string;
/** Shown when no perks, saved count or progress are supplied. */
keepEmpty: string;
savedOne: string;
savedMany: string;
/** {value} and {max} of the progress prop. */
progressValue: string;
/** Lose column heading when cancelDate is set; {date} is the long cancel date. */
loseTitleDated: string;
loseTitle: string;
loseEmpty: string;
choicesTitle: string;
pauseTitle: string;
/** {range} is the offered lengths, e.g. "1 to 3 months". */
pauseDetail: string;
/** {min} and {max} months. */
rangeMany: string;
/** {n} months. */
monthOne: string;
monthMany: string;
/** Unit under the number on the break-length tiles. */
monthUnitOne: string;
monthUnitMany: string;
monthsLegend: string;
resumeLead: string;
/** {date} long resume date, {span} pause length. */
resumeMeta: string;
/** {plan} is the lighter plan name. */
switchTitle: string;
cancelTitle: string;
/** {date} long cancel date. */
cancelDetailDated: string;
cancelDetail: string;
cancelLead: string;
cancelNone: string;
instruction: string;
instructionEmpty: string;
/** {span} pause length. */
pauseButton: string;
/** {plan} is the lighter plan name. */
switchButton: string;
cancelButton: string;
emptyButton: string;
/** Line under the button while pause is picked; {date} short resume date. */
pauseNote: string;
};
export type PausePlan2Props = {
/** Section headline; wrap the key phrase in <em> for the marker stroke. */
headline?: React.ReactNode;
lead?: React.ReactNode;
/** What the member keeps by staying (supplied perks only). */
perks?: PausePlan2Perk[];
/** Number of items the member has saved. */
savedCount?: number;
/** Progress the member has made, e.g. lessons completed. */
progress?: PausePlan2Progress;
/** What ends on the cancel date; defaults to the perks. */
endingItems?: PausePlan2Perk[];
/** Date the membership would end, ISO YYYY-MM-DD. */
cancelDate?: string;
/** Pause lengths offered, in months. Empty hides the pause choice. */
pauseOptions?: number[];
/** The lighter plan offered instead of cancelling. Missing hides that choice. */
lighterPlan?: PausePlan2Plan;
/** Choice picked on first render; leave empty to start unpicked. */
defaultChoice?: ChoiceKey;
defaultMonths?: number;
/** Override for today, ISO YYYY-MM-DD; resume dates are counted from it. */
today?: string;
/** BCP 47 locale for dates and numbers. */
locale?: string;
/** Supplied pause terms shown under the resume date. */
pauseNote?: React.ReactNode;
/** Supplied small print under the button. */
terms?: React.ReactNode;
/** Background loop module from ../fx/loops (scene slot replaces it). */
backdropVideo?: React.ComponentProps<typeof BackdropVideo>['video'];
copy?: Partial<PausePlan2Copy>;
/** Called with the confirmed choice. */
onAction?: (choice: PausePlan2Choice) => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_HEADLINE: React.ReactNode = (
<>
Before you decide, here’s <em>exactly what changes</em>
</>
);
const DEFAULT_LEAD = 'Whatever you choose is fine. Here’s what stays, what ends, and the ways you can go from here.';
const DEFAULT_OPTIONS = [1, 2, 3];
const DEFAULT_COPY: PausePlan2Copy = {
keepTitle: 'Keep everything you’ve built',
keepEmpty: 'Your membership stays exactly as it is today.',
savedOne: 'saved item',
savedMany: 'saved items',
progressValue: '{value} of {max}',
loseTitleDated: 'What ends on {date}',
loseTitle: 'What ends if you cancel',
loseEmpty: 'Your membership and its member perks.',
choicesTitle: 'Pick what works for you right now',
pauseTitle: 'Pause for a while',
pauseDetail: 'Take {range} off and come back on a set date.',
rangeMany: '{min} to {max} months',
monthOne: '{n} month',
monthMany: '{n} months',
monthUnitOne: 'month',
monthUnitMany: 'months',
monthsLegend: 'How long is your break?',
resumeLead: 'Your membership resumes on',
resumeMeta: '{date} · {span} from today',
switchTitle: 'Switch to {plan}',
cancelTitle: 'Cancel anyway',
cancelDetailDated: 'Your membership ends on {date}.',
cancelDetail: 'End your membership.',
cancelLead: 'Your membership ends on',
cancelNone: 'Confirm below to end your membership.',
instruction: 'Click the button below to confirm your choice.',
instructionEmpty: 'Pick an option above, then confirm it here.',
pauseButton: 'Pause for {span}',
switchButton: 'Switch to {plan}',
cancelButton: 'Cancel my membership',
emptyButton: 'Choose an option',
pauseNote: 'Resumes {date}',
};
export function PausePlan2(props: PausePlan2Props) {
const {
headline = DEFAULT_HEADLINE,
lead = DEFAULT_LEAD,
perks = [],
savedCount,
progress,
endingItems,
cancelDate,
pauseOptions = DEFAULT_OPTIONS,
lighterPlan,
defaultChoice,
defaultMonths,
today,
locale = 'en-US',
pauseNote,
terms,
backdropVideo = bokeh,
copy,
onAction,
state = 'default',
className = '',
} = props;
const c: PausePlan2Copy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const disabled = state === 'disabled';
const opts = Array.from(
new Set(pauseOptions.filter((n) => Number.isFinite(n) && n > 0).map((n) => Math.round(n))),
).sort((a, b) => a - b);
const base = React.useMemo(() => parseISO(today) ?? todayUTC(), [today]);
const endDate = parseISO(cancelDate);
const fmt = React.useMemo(() => {
const make = (o: Intl.DateTimeFormatOptions) => new Intl.DateTimeFormat(locale, { timeZone: 'UTC', ...o });
return {
big: make({ month: 'short', day: 'numeric' }),
long: make({ weekday: 'long', month: 'long', day: 'numeric', year: 'numeric' }),
full: make({ month: 'long', day: 'numeric', year: 'numeric' }),
short: make({ month: 'short', day: 'numeric', year: 'numeric' }),
num: new Intl.NumberFormat(locale),
};
}, [locale]);
const available: ChoiceKey[] = [];
if (opts.length > 0) available.push('pause');
if (lighterPlan) available.push('switch');
available.push('cancel');
const [choice, setChoice] = React.useState<ChoiceKey | null>(defaultChoice ?? null);
const [months, setMonths] = React.useState<number>(defaultMonths ?? 0);
const active: ChoiceKey | null = choice !== null && available.includes(choice) ? choice : null;
const span = opts.includes(months) ? months : opts[0] ?? 1;
const spanText = monthText(c, span);
const resume = addMonths(base, span);
const range =
opts.length === 0
? ''
: opts.length === 1
? monthText(c, opts[0])
: fill(c.rangeMany, { min: opts[0], max: opts[opts.length - 1] });
const rows = available.map((key) => {
if (key === 'pause') return { key, Icon: Pause, title: c.pauseTitle, detail: fill(c.pauseDetail, { range }) as React.ReactNode };
if (key === 'switch' && lighterPlan)
return {
key,
Icon: Feather,
title: fill(c.switchTitle, { plan: lighterPlan.name }),
detail: lighterPlan.detail ?? [lighterPlan.price, lighterPlan.period].filter(Boolean).join(' '),
};
return {
key,
Icon: DoorOpen,
title: c.cancelTitle,
detail: (endDate ? fill(c.cancelDetailDated, { date: fmt.full.format(endDate) }) : c.cancelDetail) as React.ReactNode,
};
});
const hasSaved = typeof savedCount === 'number' && Number.isFinite(savedCount);
const hasProgress = !!progress && progress.max > 0;
const pct = hasProgress && progress ? Math.min(100, Math.max(0, (progress.value / progress.max) * 100)) : 0;
const ending = endingItems ?? perks;
const price = lighterPlan ? splitPrice(lighterPlan.price) : null;
const label = !active
? c.emptyButton
: active === 'pause'
? fill(c.pauseButton, { span: spanText })
: active === 'switch' && lighterPlan
? fill(c.switchButton, { plan: lighterPlan.name })
: c.cancelButton;
const fire = () => {
if (disabled || !active || !onAction) return;
if (active === 'pause') onAction({ type: 'pause', months: span, resumeDate: toISO(resume) });
else if (active === 'switch' && lighterPlan) onAction({ type: 'switch', plan: lighterPlan });
else onAction({ type: 'cancel', cancelDate: endDate ? toISO(endDate) : undefined });
};
const btnClass = [
'cf-pp2-btn',
active === 'cancel' ? 'is-quiet' : '',
state === 'hover' ? 'is-hover' : '',
state === 'active' ? 'is-active' : '',
]
.filter(Boolean)
.join(' ');
const hostStyle: React.CSSProperties = { ...FX_HOST, overflow: 'clip' };
return (
<section className={`cf-pause-plan-2 ${className}`.trim()} style={hostStyle} aria-labelledby={`${uid}-h`}>
<BackdropVideo video={backdropVideo} treatment="duotone" />
<div className="cf-pp2-inner">
<div className="cf-pp2-main">
<header className="cf-pp2-head">
<h2 id={`${uid}-h`}>{headline}</h2>
{lead ? <p className="cf-pp2-lead">{lead}</p> : null}
</header>
<div className="cf-pp2-ledger">
<div className="cf-pp2-card cf-pp2-keep">
<h3 className="cf-pp2-h3">{c.keepTitle}</h3>
{hasSaved || hasProgress ? (
<div className="cf-pp2-stats">
{hasSaved ? (
<div className="cf-pp2-well cf-pp2-saved">
<span className="cf-pp2-num">{fmt.num.format(savedCount as number)}</span>
<span className="cf-pp2-stat-label">{savedCount === 1 ? c.savedOne : c.savedMany}</span>
</div>
) : null}
{hasProgress && progress ? (
<div className="cf-pp2-well">
<div className="cf-pp2-prog-row">
<span>{progress.label}</span>
<b>{fill(c.progressValue, { value: fmt.num.format(progress.value), max: fmt.num.format(progress.max) })}</b>
</div>
<div
className="cf-pp2-bar"
role="progressbar"
aria-valuemin={0}
aria-valuemax={progress.max}
aria-valuenow={Math.min(progress.max, Math.max(0, progress.value))}
aria-valuetext={fill(c.progressValue, { value: progress.value, max: progress.max })}
aria-label={typeof progress.label === 'string' ? progress.label : undefined}
>
<span style={{ width: `${pct}%` }} />
</div>
</div>
) : null}
</div>
) : null}
{perks.length > 0 ? (
<ul className="cf-pp2-list">
{perks.map((p, i) => (
<li key={i}>
<span className="cf-pp2-badge is-yes" aria-hidden="true">
<Check size={14} strokeWidth={3} />
</span>
<span>
<strong>{p.title}</strong>
{p.detail ? <span className="cf-pp2-sub">{p.detail}</span> : null}
</span>
</li>
))}
</ul>
) : !hasSaved && !hasProgress ? (
<p className="cf-pp2-empty">{c.keepEmpty}</p>
) : null}
</div>
<div className="cf-pp2-card cf-pp2-lose">
<h3 className="cf-pp2-h3">
{endDate ? fill(c.loseTitleDated, { date: fmt.full.format(endDate) }) : c.loseTitle}
</h3>
<ul className="cf-pp2-list">
{(ending.length > 0 ? ending : [{ title: c.loseEmpty } as PausePlan2Perk]).map((p, i) => (
<li key={i}>
<span className="cf-pp2-badge is-no" aria-hidden="true">
<X size={14} strokeWidth={3} />
</span>
<span>
<strong>{p.title}</strong>
{p.detail ? <span className="cf-pp2-sub">{p.detail}</span> : null}
</span>
</li>
))}
</ul>
</div>
</div>
</div>
<div className="cf-pp2-panel">
<fieldset className="cf-pp2-fs" disabled={disabled}>
<legend className="cf-pp2-h3 cf-pp2-legend">{c.choicesTitle}</legend>
<div className="cf-pp2-rows">
{rows.map(({ key, Icon, title, detail }) => (
<label key={key} className={`cf-pp2-opt${active === key ? ' is-on' : ''}`}>
<input
className="cf-pp2-sr"
type="radio"
name={`${uid}-choice`}
value={key}
checked={active === key}
onChange={() => setChoice(key)}
/>
<span className="cf-pp2-opt-icon" aria-hidden="true">
<Icon size={20} strokeWidth={2.5} />
</span>
<span className="cf-pp2-opt-text">
<span className="cf-pp2-opt-title">{title}</span>
{detail ? <span className="cf-pp2-opt-detail">{detail}</span> : null}
</span>
<span className="cf-pp2-dot" aria-hidden="true" />
</label>
))}
</div>
{active ? (
<div className="cf-pp2-well cf-pp2-detail" key={active}>
{active === 'pause' ? (
<>
{opts.length > 1 ? (
<fieldset className="cf-pp2-months">
<legend className="cf-pp2-mini">{c.monthsLegend}</legend>
<div className="cf-pp2-seg" style={{ gridTemplateColumns: `repeat(${opts.length}, minmax(0, 1fr))` }}>
{opts.map((n) => (
<label key={n} className={`cf-pp2-seg-opt${n === span ? ' is-on' : ''}`}>
<input
className="cf-pp2-sr"
type="radio"
name={`${uid}-months`}
value={n}
checked={n === span}
onChange={() => setMonths(n)}
/>
<span className="cf-pp2-seg-n">{fmt.num.format(n)}</span>
<span className="cf-pp2-seg-u">{n === 1 ? c.monthUnitOne : c.monthUnitMany}</span>
</label>
))}
</div>
</fieldset>
) : null}
<p className="cf-pp2-mini cf-pp2-lead-in">{c.resumeLead}</p>
<div aria-live="polite">
<p className="cf-pp2-date" key={toISO(resume)}>
{fmt.big.format(resume)}
</p>
<p className="cf-pp2-meta">{fill(c.resumeMeta, { date: fmt.long.format(resume), span: spanText })}</p>
</div>
{pauseNote ? <p className="cf-pp2-note">{pauseNote}</p> : null}
</>
) : null}
{active === 'switch' && lighterPlan && price ? (
<>
<p className="cf-pp2-price" aria-label={lighterPlan.price}>
{price.sym ? <span className="cf-pp2-cur">{price.sym}</span> : null}
<span className="cf-pp2-fig">{price.fig}</span>
</p>
{lighterPlan.period ? <p className="cf-pp2-meta">{lighterPlan.period}</p> : null}
</>
) : null}
{active === 'cancel' ? (
endDate ? (
<>
<p className="cf-pp2-mini cf-pp2-lead-in">{c.cancelLead}</p>
<p className="cf-pp2-date">{fmt.big.format(endDate)}</p>
<p className="cf-pp2-meta">{fmt.long.format(endDate)}</p>
</>
) : (
<p className="cf-pp2-note cf-pp2-note-solo">{c.cancelNone}</p>
)
) : null}
</div>
) : null}
<div className="cf-pp2-act">
<p className="cf-pp2-instr" id={`${uid}-ins`}>
{active ? c.instruction : c.instructionEmpty}
</p>
<button type="button" className={btnClass} disabled={disabled || !active} aria-describedby={`${uid}-ins`} onClick={fire}>
{label}
</button>
{active === 'pause' ? (
<p className="cf-pp2-btn-note">
<CalendarCheck size={16} strokeWidth={2.5} aria-hidden="true" />
{fill(c.pauseNote, { date: fmt.short.format(resume) })}
</p>
) : null}
{terms ? <p className="cf-pp2-terms">{terms}</p> : null}
</div>
</fieldset>
</div>
</div>
<style>{CSS}</style>
</section>
);
}
export default PausePlan2;
function fill(template: string, vars: Record<string, string | number>): string {
return Object.keys(vars).reduce((s, k) => s.split('{' + k + '}').join(String(vars[k])), template);
}
function monthText(c: PausePlan2Copy, n: number): string {
return fill(n === 1 ? c.monthOne : c.monthMany, { n });
}
function parseISO(value?: string): Date | null {
if (!value) return null;
const parts = value.slice(0, 10).split('-').map(Number);
if (parts.length !== 3 || parts.some((p) => !Number.isFinite(p))) return null;
const d = new Date(Date.UTC(parts[0], parts[1] - 1, parts[2]));
return Number.isNaN(d.getTime()) ? null : d;
}
function todayUTC(): Date {
const now = new Date();
return new Date(Date.UTC(now.getFullYear(), now.getMonth(), now.getDate()));
}
function addMonths(d: Date, n: number): Date {
const y = d.getUTCFullYear();
const m = d.getUTCMonth() + n;
const last = new Date(Date.UTC(y, m + 1, 0)).getUTCDate();
return new Date(Date.UTC(y, m, Math.min(d.getUTCDate(), last)));
}
function toISO(d: Date): string {
return d.toISOString().slice(0, 10);
}
function splitPrice(price: string): { sym: string; fig: string } {
const i = price.search(/[0-9]/);
if (i <= 0) return { sym: '', fig: price };
return { sym: price.slice(0, i).trim(), fig: price.slice(i) };
}
const SH = 'oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h';
const CSS = `
.cf-pause-plan-2{background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-pp2-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:clamp(32px,4vw,56px);align-items:start}
.cf-pp2-main{min-width:0}
.cf-pp2-head h2{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-pp2-head h2 em{font-style:normal;background-image:linear-gradient(var(--marker,#fae37c),var(--marker,#fae37c));background-repeat:no-repeat;background-size:100% .2em;background-position:0 96%;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.04em}
.cf-pp2-lead{margin:24px 0 0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--band-ink);text-wrap:pretty}
.cf-pp2-ledger{margin-top:clamp(32px,3.5vw,40px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.cf-pp2-card{background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px ${SH} / .22),0 4px 10px -2px ${SH} / .2)));padding:clamp(20px,2.2vw,28px);min-width:0}
.cf-pp2-lose{background:color-mix(in oklch,var(--ink) 4%,var(--card));box-shadow:var(--shadow-sm,0 1px 2px ${SH} / .2))}
.cf-pp2-h3{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.cf-pp2-stats{display:grid;gap:12px;margin-bottom:20px}
.cf-pp2-well{background:color-mix(in oklch,var(--ink) 4%,var(--card));border-radius:10px;padding:16px}
.cf-pp2-saved{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.cf-pp2-num{font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-pp2-stat-label{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink)}
.cf-pp2-prog-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink)}
.cf-pp2-prog-row b{font-weight:800;font-variant-numeric:tabular-nums}
.cf-pp2-bar{margin-top:12px;height:8px;border-radius:999px;background:color-mix(in oklch,var(--ink) 12%,var(--card));overflow:hidden}
.cf-pp2-bar>span{display:block;height:100%;border-radius:inherit;background:var(--accent-fill,var(--accent));transform-origin:left center;animation:cf-pp2-grow .7s cubic-bezier(.2,.7,.2,1) .15s both}
.cf-pp2-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.cf-pp2-list li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-pp2-list strong{font-weight:700}
.cf-pp2-sub{display:block;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
.cf-pp2-lose .cf-pp2-sub{color:var(--ink)}
.cf-pp2-badge{width:22px;height:22px;margin-top:.2em;border-radius:999px;display:inline-grid;place-items:center;color:var(--badge-glyph,#fff)}
.cf-pp2-badge.is-yes{background:var(--success)}
.cf-pp2-badge.is-no{background:var(--danger)}
.cf-pp2-empty{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-pp2-panel{position:sticky;top:24px;min-width:0;background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch,var(--accent) 32%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-lg,0 2px 4px ${SH} / .22),0 12px 24px -8px ${SH} / .32));padding:clamp(20px,3vw,32px)}
.cf-pp2-fs{border:0;margin:0;padding:0;min-width:0}
.cf-pp2-legend{float:left;width:100%;padding:0}
.cf-pp2-rows{clear:both;display:grid;gap:8px}
.cf-pp2-opt{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) 22px;align-items:center;gap:12px;min-height:76px;padding:12px 16px;border:1px solid oklch(from var(--ink) l c h / .16);border-radius:var(--radius,12px);background:var(--card);cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.cf-pp2-opt:hover{border-color:oklch(from var(--ink) l c h / .34);background:color-mix(in oklch,var(--ink) 3%,var(--card))}
.cf-pp2-opt.is-on{border-color:var(--accent);background:color-mix(in oklch,var(--accent) 10%,var(--card));box-shadow:inset 0 0 0 1px var(--accent),var(--shadow-sm,0 1px 2px ${SH} / .2))}
.cf-pp2-opt:has(input:focus-visible),.cf-pp2-seg-opt:has(input:focus-visible){outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .45);outline-offset:2px}
.cf-pp2-fs:disabled .cf-pp2-opt,.cf-pp2-fs:disabled .cf-pp2-seg-opt{cursor:not-allowed;opacity:.6}
.cf-pp2-fs:disabled .cf-pp2-opt:hover:not(.is-on){border-color:oklch(from var(--ink) l c h / .16);background:var(--card)}
.cf-pp2-opt-icon{display:inline-flex;color:var(--accent)}
.cf-pp2-opt-text{min-width:0}
.cf-pp2-opt-title{display:block;font-size:1.0625rem;font-weight:800;line-height:1.25;color:var(--ink);text-wrap:balance}
.cf-pp2-opt-detail{display:block;margin-top:4px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-pp2-opt.is-on .cf-pp2-opt-detail{color:var(--ink)}
.cf-pp2-dot{width:22px;height:22px;border-radius:999px;border:2px solid oklch(from var(--ink) l c h / .35);display:grid;place-items:center;transition:border-color .16s ease}
.cf-pp2-dot::after{content:"";width:10px;height:10px;border-radius:999px;background:var(--accent-fill,var(--accent));transform:scale(0);transition:transform .16s ease}
.cf-pp2-opt.is-on .cf-pp2-dot{border-color:var(--accent)}
.cf-pp2-opt.is-on .cf-pp2-dot::after{transform:scale(1)}
.cf-pp2-sr{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.cf-pp2-detail{margin-top:16px;animation:cf-pp2-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-pp2-months{border:0;margin:0 0 20px;padding:0;min-width:0}
.cf-pp2-mini{margin:0 0 12px;padding:0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink)}
.cf-pp2-lead-in{margin-bottom:16px}
.cf-pp2-months legend{float:left;width:100%}
.cf-pp2-seg{clear:both;display:grid;gap:8px}
.cf-pp2-seg-opt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:8px 12px;border:1px solid oklch(from var(--ink) l c h / .16);border-radius:10px;background:var(--card);color:var(--ink);text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.cf-pp2-seg-n{font-family:var(--font-display);font-weight:800;font-size:1.375rem;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cf-pp2-seg-u{font-size:.875rem;font-weight:600;line-height:1.2;white-space:nowrap}
.cf-pp2-seg-opt:hover{border-color:oklch(from var(--ink) l c h / .34);background:color-mix(in oklch,var(--ink) 3%,var(--card))}
.cf-pp2-seg-opt.is-on{border-color:var(--accent);background:color-mix(in oklch,var(--accent) 12%,var(--card));box-shadow:inset 0 0 0 1px var(--accent),var(--shadow-sm,0 1px 2px ${SH} / .2))}
.cf-pp2-seg-opt.is-on .cf-pp2-seg-u{font-weight:800}
.cf-pp2-date{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink);animation:cf-pp2-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-pp2-meta{margin:12px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-pp2-date+.cf-pp2-meta,.cf-pp2-price+.cf-pp2-meta{margin-top:16px}
.cf-pp2-note{margin:12px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-pp2-note-solo{margin:0}
.cf-pp2-price{margin:0;display:flex;align-items:flex-start;font-family:var(--font-display);font-weight:800;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-pp2-cur{font-size:clamp(1.3125rem,1.8vw,1.625rem);margin:.12em 2px 0 0}
.cf-pp2-fig{font-size:clamp(2.5rem,4.2vw,3.75rem)}
.cf-pp2-act{margin-top:24px}
.cf-pp2-instr{margin:0 0 12px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-pp2-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px ${SH} / .3),0 8px 16px -6px ${SH} / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-pp2-btn:hover:not(:disabled),.cf-pp2-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px ${SH} / .32),0 10px 18px -6px ${SH} / .5))}
.cf-pp2-btn:active:not(:disabled),.cf-pp2-btn.is-active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 3px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px ${SH} / .28)}
.cf-pp2-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-pp2-btn:disabled{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:none;cursor:not-allowed}
.cf-pp2-btn.is-quiet{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));border:1px solid var(--button-2-border,transparent);box-shadow:var(--button-2-shadow,var(--shadow-sm));text-shadow:none}
.cf-pp2-btn.is-quiet:hover:not(:disabled),.cf-pp2-btn.is-quiet.is-hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h);box-shadow:var(--button-2-shadow,var(--shadow-sm))}
.cf-pp2-btn.is-quiet:active:not(:disabled),.cf-pp2-btn.is-quiet.is-active:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .07) c h);box-shadow:var(--button-2-shadow,var(--shadow-sm))}
.cf-pp2-btn-note{margin:12px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-align:center;text-wrap:pretty}
.cf-pp2-btn-note svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success)}
.cf-pp2-terms{margin:16px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
@keyframes cf-pp2-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-pp2-grow{from{transform:scaleX(.55)}to{transform:none}}
@media (max-width:1180px) and (min-width:961px){.cf-pp2-ledger{grid-template-columns:minmax(0,1fr)}}
@media (max-width:960px){.cf-pp2-inner{grid-template-columns:minmax(0,1fr)}.cf-pp2-panel{position:static}}
@media (max-width:640px){.cf-pp2-ledger{grid-template-columns:minmax(0,1fr)}.cf-pp2-opt{min-height:72px;padding:12px 14px}.cf-pp2-seg-opt{padding:8px}}
@media (prefers-reduced-motion:reduce){.cf-pause-plan-2 *{animation:none !important;transition:none !important}}
`;
pieces/offer/pause-plan-2/specimen.tsx 55 lines
import * as React from 'react';
import { PausePlan2 } from '../pause-plan-2';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
function isoInDays(days: number): string {
const now = new Date();
return new Date(Date.UTC(now.getFullYear(), now.getMonth(), now.getDate() + days)).toISOString().slice(0, 10);
}
export default function PausePlan2Specimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<PausePlan2
state={state}
headline={
<>
Before you go, here’s <em>exactly what changes</em>
</>
}
lead="No hard feelings either way. See what stays, what ends, and pick what fits your home and your schedule right now."
perks={[
{ title: 'Monthly room-styling guides', detail: 'A new guide on the first of every month' },
{ title: 'Thursday live styling clinics', detail: 'Bring a photo of your room, leave with a plan' },
{ title: '15% off the Loft & Lumen shop' },
]}
savedCount={38}
progress={{ label: 'Lighting Masterclass', value: 7, max: 12 }}
endingItems={[
{ title: 'Thursday live styling clinics' },
{ title: 'New monthly styling guides' },
{ title: '15% off the Loft & Lumen shop' },
{ title: 'Access to your 38 saved room boards' },
]}
cancelDate={isoInDays(22)}
pauseOptions={[1, 2, 3]}
lighterPlan={{
id: 'lumen-lite',
name: 'Lumen Lite',
price: '$9',
period: 'per month, billed monthly',
detail: 'Monthly guides and your saved boards, $9 a month',
}}
defaultChoice="pause"
defaultMonths={2}
pauseNote="Pausing is free, and you can resume early from your account page."
copy={{
savedOne: 'saved room board',
savedMany: 'saved room boards',
progressValue: '{value} of {max} lessons',
}}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalPausePlan2 |
React.ReactNode |
|
lead OptionalPausePlan2 |
React.ReactNode |
|
perks OptionalPausePlan2 |
PausePlan2Perk[] |
|
savedCount OptionalPausePlan2 |
number |
|
progress OptionalPausePlan2 |
PausePlan2Progress |
|
endingItems OptionalPausePlan2 |
PausePlan2Perk[] |
|
cancelDate OptionalPausePlan2 |
string |
|
pauseOptions OptionalPausePlan2 |
number[] |
|
lighterPlan OptionalPausePlan2 |
PausePlan2Plan |
|
defaultChoice OptionalPausePlan2 |
ChoiceKey |
|
defaultMonths OptionalPausePlan2 |
number |
|
today OptionalPausePlan2 |
string |
|
locale OptionalPausePlan2 |
string |
|
pauseNote OptionalPausePlan2 |
React.ReactNode |
|
terms OptionalPausePlan2 |
React.ReactNode |
|
backdropVideo OptionalPausePlan2 |
React.ComponentProps<typeof BackdropVideo>['video'] |
|
copy OptionalPausePlan2 |
Partial<PausePlan2Copy> |
|
onAction OptionalPausePlan2 |
(choice: PausePlan2Choice) => void |
|
state OptionalPausePlan2 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalPausePlan2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
- 81918c3a044a8083.mp4 video/mp4 · 162 KB
- ae01ab734361dabf.webm video/webm · 95.6 KB
-
c7f2dc1d98942dc6.webp
image/webp · 8.7 KB