Coupon Claim 3
Coupon claim for team software: an editorial spread whose pull figure is the visitor's own team saving, recomputed live by a seat slider, beside a work-email form that sends the code.
Use it in a prompt
Use offer/coupon-claim-3 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/coupon-claim-3.tsx. - Import it and pass your copy and images (Props tab):
import { CouponClaim3 } from "@/components/funneldna/offer/coupon-claim-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/coupon-claim-3/component.tsx 550 lines
// layout: magazine-spread
// Coupon claim for team software: an editorial spread whose pull figure is the visitor's own team saving, recomputed live by a seat slider, beside a work-email form that sends the code.
import * as React from "react";
import { AlertCircle, ChevronDown, Loader2, Minus, Plus } from "lucide-react";
import { FX_HOST, Pattern } from "../fx/fx";
export type CouponClaim3Values = {
email: string;
companySize: string;
seats: number;
saving: number;
};
// Every visible word. Placeholders: {product} {seats} {months} {n} {monthly} {saving} {amount} {difference} {discount} {price}.
const DEFAULT_COPY = {
figureIntro: "Your team keeps",
figureCaption: "on {seats} over your first {months}.",
seatOne: "{n} seat",
seatMany: "{n} seats",
monthOne: "{n} month",
monthMany: "{n} months",
seatsLabel: "How many people book clients?",
removeSeat: "Remove a seat",
addSeat: "Add a seat",
justPrice: "Just {monthly} a month",
justPriceWords: "for your {seats}, the first {months}.",
terms: "{discount}% off your first {months} of {product} team plans. Then {price} a seat each month.",
compareOurs: "{product} with your code",
perMonth: "{amount} a month",
compareKeep: "You pay {difference} less a month for your first {months}.",
formLabel: "Claim your team code",
emailLabel: "Work email",
emailPlaceholder: "you@youragency.com",
sizeLabel: "Company size",
sizePlaceholder: "Choose your team size…",
button: "Send Me The Code",
busy: "Sending your code…",
note: "We email the code to you. Use it at checkout.",
emailRequired: "Enter your work email to get the code.",
emailInvalid: "That email doesn't look right. Check it and try again.",
emailPersonal: "Use your work email so the code reaches your team account.",
live: "{seats}. Your team keeps {saving} over your first {months}.",
};
export type CouponClaim3Copy = typeof DEFAULT_COPY;
const DEFAULT_COLUMNS = [
{
title: "Clients book themselves",
lines: ["Send one link.", "Your client picks a time that suits them.", "It lands on the right calendar.", "Done."],
},
{
title: "Your whole team books the same way",
lines: ["Every seat sees one live schedule.", "New hires share the same links on day one.", "Nobody chases who booked what.", "Finally."],
},
];
const DEFAULT_SIZES = [
{ label: "Just me", min: 1, max: 1 },
{ label: "2–5 people", min: 2, max: 5 },
{ label: "6–10 people", min: 6, max: 10 },
{ label: "11–25 people", min: 11, max: 25 },
{ label: "26–50 people", min: 26, max: 50 },
{ label: "51+ people", min: 51, max: 100000 },
];
const DEFAULT_BLOCKED = ["gmail.com", "googlemail.com", "yahoo.com", "hotmail.com", "outlook.com", "live.com", "icloud.com", "aol.com", "proton.me"];
export type CouponClaim3Props = {
/** Product name for {product} placeholders. */
productName?: string;
headline?: string;
/** The phrase inside the headline that gets the marker stroke. */
headlineHighlight?: string;
lead?: string;
/** Editorial photo for the spread (slot "scene"). */
sceneImage?: string;
sceneAlt?: string;
/** Plain caption under the photo. */
photoCaption?: string;
/** Two short "why teams switch" columns; a one-word line becomes the punch line. */
columns?: { title: string; lines: string[] }[];
/** Regular price per seat per month. */
seatPrice: number;
/** Percentage off while the code applies. */
discountPercent: number;
/** Months the discount lasts. */
discountMonths: number;
/** What the team pays now; the comparison only shows when supplied. */
anchor?: { label: string; seatPrice: number };
minSeats?: number;
maxSeats?: number;
defaultSeats?: number;
/** Company size options; the slider pre-selects the one its seat count falls in. */
sizeOptions?: { label: string; min: number; max: number }[];
/** ISO currency code for every amount. */
currency?: string;
locale?: string;
/** Personal email domains refused by the work-email check. */
blockedEmailDomains?: string[];
copy?: Partial<CouponClaim3Copy>;
state?: "default" | "hover" | "active" | "disabled" | "error";
/** Shows the sending state on the button while the builder handles the submit. */
busy?: boolean;
onSubmit?: (values: CouponClaim3Values) => void;
className?: string;
};
type EmailError = "emailRequired" | "emailInvalid" | "emailPersonal";
export function CouponClaim3(props: CouponClaim3Props) {
const {
productName = "our app",
headline = "Bring your whole team over and keep the difference",
headlineHighlight = "keep the difference",
lead = "Set your team size and see exactly what this code saves you.",
sceneImage,
sceneAlt = "",
photoCaption,
columns = DEFAULT_COLUMNS,
seatPrice,
discountPercent,
discountMonths,
anchor,
minSeats = 1,
maxSeats = 50,
defaultSeats = 10,
sizeOptions = DEFAULT_SIZES,
currency = "USD",
locale = "en-US",
blockedEmailDomains = DEFAULT_BLOCKED,
copy,
state = "default",
busy = false,
onSubmit,
className,
} = props;
const c: CouponClaim3Copy = { ...DEFAULT_COPY, ...copy };
const min = Math.max(1, Math.floor(minSeats));
const max = Math.max(min + 1, Math.floor(maxSeats));
const startSeats = clampN(Math.round(defaultSeats), min, max);
const [seats, setSeats] = React.useState(startSeats);
const [sizeIdx, setSizeIdx] = React.useState(() => findBand(sizeOptions, startSeats));
const [email, setEmail] = React.useState("");
const [errorKey, setErrorKey] = React.useState<EmailError | null>(null);
const [live, setLive] = React.useState("");
const emailRef = React.useRef<HTMLInputElement>(null);
const firstRun = React.useRef(true);
const uid = React.useId();
const titleId = `${uid}-title`;
const rangeId = `${uid}-seats`;
const emailId = `${uid}-email`;
const errorId = `${uid}-email-error`;
const sizeId = `${uid}-size`;
const fmt = (v: number) => moneyFormat(v, locale, currency).format(v);
const months = Math.max(1, Math.round(discountMonths));
const regularMonthly = round2(seats * seatPrice);
const promoMonthly = round2(regularMonthly * (1 - discountPercent / 100));
const saving = round2((regularMonthly - promoMonthly) * months);
const anchorMonthly = anchor ? round2(seats * anchor.seatPrice) : 0;
const difference = anchor ? round2(anchorMonthly - promoMonthly) : 0;
const showCompare = Boolean(anchor) && difference > 0;
const oursPct = showCompare ? Math.max(4, (promoMonthly / anchorMonthly) * 100) : 0;
const seatsText = fill(seats === 1 ? c.seatOne : c.seatMany, { n: seats });
const monthsText = fill(months === 1 ? c.monthOne : c.monthMany, { n: months });
const savingFormatter = moneyFormat(saving, locale, currency);
const savingText = savingFormatter.format(saving);
const savingParts = savingFormatter.formatToParts(saving);
const frac = (seats - min) / (max - min);
const liveText = fill(c.live, { seats: seatsText, saving: savingText, months: monthsText });
React.useEffect(() => {
if (firstRun.current) {
firstRun.current = false;
return;
}
const t = window.setTimeout(() => setLive(liveText), 450);
return () => window.clearTimeout(t);
}, [liveText]);
const formDisabled = state === "disabled" || busy;
const shownError: EmailError | null = errorKey ?? (state === "error" ? "emailRequired" : null);
const setSeatCount = (n: number) => {
const next = clampN(Math.round(n), min, max);
setSeats(next);
setSizeIdx(findBand(sizeOptions, next));
};
const submit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (formDisabled) return;
const err = validateEmail(email, blockedEmailDomains);
setErrorKey(err);
if (err) {
emailRef.current?.focus();
return;
}
onSubmit?.({ email: email.trim(), companySize: sizeOptions[sizeIdx]?.label ?? "", seats, saving });
};
return (
<section className={["cf-cc3", className].filter(Boolean).join(" ")} style={FX_HOST} data-state={state} aria-labelledby={titleId}>
<style>{CSS}</style>
<div className="cf-cc3__fx" aria-hidden="true">
<Pattern name="grid" fade="edges" />
</div>
<div className="cf-cc3__wrap">
<header className="cf-cc3__head cf-cc3__rise">
<h2 id={titleId} className="cf-cc3__title">{renderHeadline(headline, headlineHighlight)}</h2>
{lead ? <p className="cf-cc3__lead">{lead}</p> : null}
</header>
<div className="cf-cc3__grid">
<div className="cf-cc3__story cf-cc3__rise" style={{ animationDelay: ".07s" }}>
{sceneImage ? (
<figure className="cf-cc3__photo">
<img src={sceneImage} alt={sceneAlt} width={1200} height={750} loading="lazy" decoding="async" />
{photoCaption ? <figcaption>{photoCaption}</figcaption> : null}
</figure>
) : null}
{columns.length ? (
<div className="cf-cc3__cols">
{columns.map((col, i) => {
const last = col.lines[col.lines.length - 1];
const punch = last !== undefined && isPunch(last) ? last : null;
const body = punch ? col.lines.slice(0, -1) : col.lines;
return (
<article className="cf-cc3__col" key={i}>
<h3>{col.title}</h3>
<div className="cf-cc3__lines">
{body.map((line, j) => (
<p key={j} className={isPunch(line) ? "is-punch" : undefined}>{line}</p>
))}
</div>
{punch ? <p className="is-punch">{punch}</p> : null}
</article>
);
})}
</div>
) : null}
</div>
<div className="cf-cc3__panel cf-cc3__rise" style={{ animationDelay: ".14s" }}>
<p className="cf-cc3__intro">{c.figureIntro}</p>
<p className="cf-cc3__figure" style={{ "--chars": savingText.length } as React.CSSProperties}>
<span key={savingText} className="cf-cc3__num">
{savingParts.map((p, i) =>
p.type === "currency" ? (
<span key={i} className="cf-cc3__cur">{p.value}</span>
) : (
<React.Fragment key={i}>{p.value}</React.Fragment>
),
)}
</span>
</p>
<p className="cf-cc3__caption">{fill(c.figureCaption, { seats: seatsText, months: monthsText })}</p>
<p className="cf-cc3__sr" aria-live="polite">{live}</p>
<div className="cf-cc3__well">
<div className="cf-cc3__well-head">
<label htmlFor={rangeId}>{c.seatsLabel}</label>
<output className="cf-cc3__readout" htmlFor={rangeId}>{seatsText}</output>
</div>
<div className="cf-cc3__slide">
<button type="button" className="cf-cc3__step" aria-label={c.removeSeat} aria-controls={rangeId} disabled={seats <= min} onClick={() => setSeatCount(seats - 1)}>
<Minus size={20} strokeWidth={2.5} aria-hidden="true" />
</button>
<input
id={rangeId}
className="cf-cc3__range"
type="range"
min={min}
max={max}
step={1}
value={seats}
aria-valuetext={seatsText}
onChange={(e) => setSeatCount(Number(e.currentTarget.value))}
style={{ "--frac": frac } as React.CSSProperties}
/>
<button type="button" className="cf-cc3__step" aria-label={c.addSeat} aria-controls={rangeId} disabled={seats >= max} onClick={() => setSeatCount(seats + 1)}>
<Plus size={20} strokeWidth={2.5} aria-hidden="true" />
</button>
</div>
</div>
<p className="cf-cc3__price">
<strong>{fill(c.justPrice, { monthly: fmt(promoMonthly) })}</strong>{" "}
{fill(c.justPriceWords, { seats: seatsText, months: monthsText })}
</p>
<p className="cf-cc3__terms">
{fill(c.terms, { discount: discountPercent, months: monthsText, product: productName, price: fmt(seatPrice) })}
</p>
{showCompare && anchor ? (
<div className="cf-cc3__compare">
<div className="cf-cc3__row">
<span>{anchor.label}</span>
<span>{fill(c.perMonth, { amount: fmt(anchorMonthly) })}</span>
</div>
<div className="cf-cc3__bar" aria-hidden="true"><i style={{ width: "100%" }} /></div>
<div className="cf-cc3__row">
<span>{fill(c.compareOurs, { product: productName })}</span>
<span>{fill(c.perMonth, { amount: fmt(promoMonthly) })}</span>
</div>
<div className="cf-cc3__bar is-ours" aria-hidden="true"><i style={{ width: `${oursPct}%` }} /></div>
<p className="cf-cc3__keep">{fill(c.compareKeep, { difference: fmt(difference), months: monthsText })}</p>
</div>
) : null}
<form className="cf-cc3__form" noValidate onSubmit={submit} aria-label={c.formLabel}>
<fieldset className="cf-cc3__fields" disabled={formDisabled}>
<div className="cf-cc3__field">
<label htmlFor={emailId}>{c.emailLabel}</label>
<input
ref={emailRef}
id={emailId}
name="email"
type="email"
inputMode="email"
autoComplete="email"
className="cf-cc3__input"
placeholder={c.emailPlaceholder}
value={email}
aria-invalid={shownError ? true : undefined}
aria-describedby={shownError ? errorId : undefined}
onChange={(e) => {
const v = e.currentTarget.value;
setEmail(v);
if (errorKey) setErrorKey(validateEmail(v, blockedEmailDomains));
}}
onBlur={() => {
if (email.trim()) setErrorKey(validateEmail(email, blockedEmailDomains));
}}
/>
{shownError ? (
<p id={errorId} className="cf-cc3__error">
<AlertCircle size={16} strokeWidth={2.5} aria-hidden="true" />
{c[shownError]}
</p>
) : null}
</div>
<div className="cf-cc3__field">
<label htmlFor={sizeId}>{c.sizeLabel}</label>
<div className="cf-cc3__select">
<select
id={sizeId}
name="companySize"
className="cf-cc3__input"
value={sizeIdx >= 0 ? String(sizeIdx) : ""}
onChange={(e) => setSizeIdx(Number(e.currentTarget.value))}
>
<option value="" disabled>{c.sizePlaceholder}</option>
{sizeOptions.map((o, i) => (
<option key={i} value={String(i)}>{o.label}</option>
))}
</select>
<ChevronDown size={20} strokeWidth={2.5} aria-hidden="true" />
</div>
</div>
</fieldset>
<button type="submit" className="cf-cc3__btn" disabled={formDisabled} aria-busy={busy || undefined}>
{busy ? (
<>
<Loader2 className="cf-cc3__spin" size={20} strokeWidth={2.5} aria-hidden="true" />
{c.busy}
</>
) : (
c.button
)}
</button>
{c.note ? <p className="cf-cc3__note">{renderNote(c.note)}</p> : null}
</form>
</div>
</div>
</div>
</section>
);
}
export default CouponClaim3;
function renderHeadline(text: string, mark?: string) {
if (!mark) return text;
const i = text.indexOf(mark);
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className="cf-cc3__mark">{mark}</span>
{text.slice(i + mark.length)}
</>
);
}
// Keeps each " · "-separated phrase together so a reassurance line never breaks inside "money-back".
function renderNote(note: string) {
const parts = note.split(" · ");
if (parts.length < 2) return note;
return parts.map((part, i) => (
<React.Fragment key={i}>
{i > 0 ? " · " : null}
<span className="cf-cc3__together">{part}</span>
</React.Fragment>
));
}
function fill(template: string, values: Record<string, string | number>) {
let out = template;
for (const [k, v] of Object.entries(values)) out = out.split(`{${k}}`).join(String(v));
return out;
}
function clampN(n: number, lo: number, hi: number) {
return Math.min(hi, Math.max(lo, Number.isFinite(n) ? n : lo));
}
function round2(n: number) {
return Math.round(n * 100) / 100;
}
function findBand(options: { min: number; max: number }[], n: number) {
return options.findIndex((o) => n >= o.min && n <= o.max);
}
function isPunch(line: string) {
const t = line.trim();
return t.length > 0 && !t.includes(" ");
}
function moneyFormat(value: number, locale: string, currency: string) {
const whole = Math.abs(value - Math.round(value)) < 0.005;
const digits = whole ? 0 : 2;
return new Intl.NumberFormat(locale, { style: "currency", currency, minimumFractionDigits: digits, maximumFractionDigits: digits });
}
function validateEmail(raw: string, blocked: string[]): EmailError | null {
const value = raw.trim();
if (!value) return "emailRequired";
const at = value.indexOf("@");
const domain = value.slice(at + 1).toLowerCase();
const dot = domain.lastIndexOf(".");
if (value.includes(" ") || at < 1 || at !== value.lastIndexOf("@") || dot < 1 || domain.length - dot < 3) return "emailInvalid";
if (blocked.map((d) => d.toLowerCase()).includes(domain)) return "emailPersonal";
return null;
}
const CSS = `
.cf-cc3{--cc3-marker:var(--marker,oklch(from var(--warning) l c h / 0.3));--cc3-ring:oklch(from var(--field-focus,var(--accent)) l c h / 0.35);--cc3-sh:var(--shadow,oklch(0.22 0.03 260));background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);overflow:clip}
.cf-cc3 *,.cf-cc3 *::before,.cf-cc3 *::after{box-sizing:border-box}
.cf-cc3__fx{position:absolute;top:0;right:0;width:min(600px,42%);height:clamp(360px,40vw,580px);pointer-events:none;z-index:0}
@media (max-width:959px){.cf-cc3__fx{display:none}}
.cf-cc3__wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-cc3__head{max-width:54rem;margin:0 0 clamp(32px,4.5vw,56px)}
.cf-cc3__title{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(--ink)}
.cf-cc3__mark{background:linear-gradient(transparent 40%,var(--cc3-marker) 40%,var(--cc3-marker) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 0.06em}
.cf-cc3__lead{margin:16px 0 0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-cc3__grid{display:grid;gap:clamp(40px,5vw,72px);align-items:start}
@media (min-width:960px){.cf-cc3__grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.cf-cc3__story{position:sticky;top:clamp(16px,3vw,32px)}}
.cf-cc3__story{container-type:inline-size;min-width:0}
.cf-cc3__photo{margin:0}
.cf-cc3__photo img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center;border-radius:12px;background:color-mix(in oklch,var(--ink) 6%,var(--surface))}
@media (min-width:960px){.cf-cc3__photo img{aspect-ratio:4/3}}
.cf-cc3__photo figcaption{margin:12px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-cc3__cols{display:grid;gap:24px 32px;margin-top:32px}
@container (min-width:520px){.cf-cc3__cols{grid-template-columns:1fr 1fr;row-gap:0}.cf-cc3__col{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;align-content:start}}
.cf-cc3__lines{min-width:0}
.cf-cc3__lines p:last-child{margin-bottom:0}
.cf-cc3__col h3{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--ink)}
.cf-cc3__col p{margin:0 0 8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;color:var(--ink)}
.cf-cc3__col p.is-punch{margin:12px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--accent)}
.cf-cc3__panel{container-type:inline-size;min-width:0;background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch,var(--accent) 28%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg));padding:clamp(20px,3vw,32px)}
.cf-cc3__intro{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink)}
.cf-cc3__figure{margin:8px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.03em;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--accent);font-size:clamp(2.5rem,calc(140cqi / var(--chars,4)),6.5rem)}
.cf-cc3__num{display:inline-block;animation:cc3-tick .22s cubic-bezier(.2,.7,.2,1) both}
.cf-cc3__cur{display:inline-block;font-size:0.5em;vertical-align:0.72em;margin-inline-end:0.04em;letter-spacing:0}
.cf-cc3__caption{margin:12px 0 0;font-size:0.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-cc3__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cf-cc3__well{margin-top:24px;padding:16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-cc3__well-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.cf-cc3__well-head label{font-size:1rem;font-weight:700;line-height:1.3;color:var(--label-ink,var(--ink))}
.cf-cc3__readout{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.cf-cc3__slide{display:flex;align-items:center;gap:12px;margin-top:8px}
.cf-cc3__step{flex:0 0 44px;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:pointer;transition:transform .16s ease,background .16s ease}
.cf-cc3__step:hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.04) c h)}
.cf-cc3__step:active:not(:disabled){transform:translateY(1px);background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.07) c h)}
.cf-cc3__step:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.cf-cc3__step:disabled{opacity:0.45;cursor:not-allowed}
.cf-cc3__range{--fill:calc(14px + (100% - 28px) * var(--frac,0.5));flex:1 1 auto;min-width:0;height:44px;margin:0;padding:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.cf-cc3__range:focus{outline:none}
.cf-cc3__range::-webkit-slider-runnable-track{height:10px;border-radius:999px;background:linear-gradient(to right,var(--accent-fill,var(--accent)) var(--fill),color-mix(in oklch,var(--ink) 20%,var(--card)) var(--fill))}
.cf-cc3__range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:-9px;border-radius:50%;background:var(--card);border:3px solid var(--accent);box-shadow:var(--shadow-sm);transition:transform .16s ease,box-shadow .16s ease}
.cf-cc3__range:hover::-webkit-slider-thumb{transform:scale(1.08)}
.cf-cc3__range:active::-webkit-slider-thumb{transform:scale(1.14)}
.cf-cc3__range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px var(--cc3-ring),var(--shadow-sm)}
.cf-cc3__range::-moz-range-track{height:10px;border:0;border-radius:999px;background:color-mix(in oklch,var(--ink) 20%,var(--card))}
.cf-cc3__range::-moz-range-progress{height:10px;border-radius:999px;background:var(--accent-fill,var(--accent))}
.cf-cc3__range::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--card);border:3px solid var(--accent);box-shadow:var(--shadow-sm);transition:transform .16s ease,box-shadow .16s ease}
.cf-cc3__range:hover::-moz-range-thumb{transform:scale(1.08)}
.cf-cc3__range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px var(--cc3-ring),var(--shadow-sm)}
.cf-cc3__price{margin:24px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-cc3__price strong{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-cc3__terms{margin:8px 0 0;font-size:0.9375rem;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-cc3__compare{display:grid;gap:8px;margin-top:20px}
.cf-cc3__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--ink)}
.cf-cc3__row span:first-child{min-width:0;text-wrap:balance}
.cf-cc3__row span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.cf-cc3__bar{height:12px;border-radius:999px;overflow:hidden;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-cc3__bar i{display:block;height:100%;border-radius:inherit;background:color-mix(in oklch,var(--ink) 30%,var(--card));transition:width .3s cubic-bezier(.2,.7,.2,1)}
.cf-cc3__bar.is-ours i{background:var(--accent-fill,var(--accent))}
.cf-cc3__keep{margin:4px 0 0;font-size:0.9375rem;font-weight:700;line-height:1.4;color:var(--success);text-wrap:pretty}
.cf-cc3__form{margin-top:24px}
.cf-cc3__fields{display:grid;gap:16px;min-width:0;margin:0;padding:0;border:0}
@container (min-width:440px){.cf-cc3__fields{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:start}}
.cf-cc3__field{min-width:0}
.cf-cc3__field label{display:block;margin:0 0 8px;font-size:1rem;font-weight:700;line-height:1.3;color:var(--label-ink,var(--ink))}
.cf-cc3__input{display:block;width:100%;height:56px;margin:0;padding:0 16px;font-family:var(--font-body);font-size:1.0625rem;color:var(--field-ink);background:var(--field);border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));-webkit-appearance:none;appearance:none;transition:border-color .16s ease,box-shadow .16s ease}
.cf-cc3__input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-cc3__input:hover:not(:disabled){border-color:color-mix(in oklch,var(--field-ink) 45%,var(--field))}
.cf-cc3__input:focus{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px var(--cc3-ring)}
.cf-cc3__input[aria-invalid=true]{border-color:var(--danger)}
.cf-cc3__input[aria-invalid=true]:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3)}
.cf-cc3__input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink) 5%,var(--field))}
.cf-cc3__select{position:relative}
.cf-cc3__select .cf-cc3__input{padding-right:44px;cursor:pointer;text-overflow:ellipsis}
.cf-cc3__select svg{position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--field-ink)}
.cf-cc3__error{margin:8px 0 0;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty}
.cf-cc3__error svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
.cf-cc3__btn{--lt:0.04;--lb:-0.02;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;margin-top:20px;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;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 + var(--lt)) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l + var(--lb)) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--cc3-sh) l c h / 0.3),0 8px 16px -6px oklch(from var(--cc3-sh) l c h / 0.45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-cc3__btn:hover:not(:disabled),.cf-cc3[data-state=hover] .cf-cc3__btn:not(:disabled){--lt:-0.01;--lb:-0.07;box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.2) c h),0 1px 2px oklch(from var(--cc3-sh) l c h / 0.34),0 10px 18px -6px oklch(from var(--cc3-sh) l c h / 0.55)}
.cf-cc3__btn:active:not(:disabled),.cf-cc3[data-state=active] .cf-cc3__btn:not(:disabled){--lt:-0.04;--lb:-0.1;transform:translateY(1px);box-shadow:inset 0 2px 3px oklch(from var(--button-bg,var(--cta)) calc(l - 0.22) c h / 0.5),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 1px oklch(from var(--cc3-sh) l c h / 0.3)}
.cf-cc3__btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-cc3__btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));transform:none}
.cf-cc3__btn[aria-busy=true]{cursor:progress}
.cf-cc3__spin{flex:0 0 auto;animation:cc3-spin .8s linear infinite}
.cf-cc3__note{margin:12px 0 0;text-align:center;font-size:0.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:balance}
.cf-cc3__together{display:inline-block;max-width:100%}
.cf-cc3__rise{animation:cc3-rise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes cc3-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cc3-tick{from{opacity:.82;transform:translateY(4px)}}
@keyframes cc3-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.cf-cc3 *,.cf-cc3 *::before,.cf-cc3 *::after{animation:none!important;transition:none!important}}
@media (prefers-reduced-motion:reduce){.cf-cc3 .cf-cc3__range::-webkit-slider-thumb{transition:none!important}}
@media (prefers-reduced-motion:reduce){.cf-cc3 .cf-cc3__range::-moz-range-thumb{transition:none!important}}
`;
pieces/offer/coupon-claim-3/specimen.tsx 43 lines
import __studioImageede8c938 from "../assets/9416419276774702.webp";
import { CouponClaim3 } from "../coupon-claim-3";
import type { CouponClaim3Props } from "../coupon-claim-3";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function CouponClaim3Specimen({ state }: { state?: CouponClaim3Props["state"] }) {
return (
<CouponClaim3
state={state}
productName="Slotwell"
headline="Move your whole team to Slotwell and keep the difference"
headlineHighlight="keep the difference"
lead="Set your team size. The big number is what this code saves your agency in the first three months."
sceneImage={slot(
"scene",
__studioImageede8c938,
)}
sceneAlt="An agency team planning their week together around one laptop"
photoCaption="One link per person. One calendar for the whole agency."
columns={[
{
title: "Clients book themselves",
lines: ["Send one Slotwell link.", "Your client picks a time that suits them.", "It lands on the right person's calendar.", "Done."],
},
{
title: "Your whole team books the same way",
lines: ["Every seat sees one live schedule.", "New hires share the same links on day one.", "Nobody asks who took the 3pm.", "Finally."],
},
]}
seatPrice={12}
discountPercent={40}
discountMonths={3}
anchor={{ label: "Your current tool ($20 a seat)", seatPrice: 20 }}
minSeats={1}
maxSeats={50}
defaultSeats={25}
copy={{ note: `We email the code to you · ${defaults.sample.guarantee}` }}
/>
);
}
| Name | Type | Details |
|---|---|---|
productName OptionalCouponClaim3 |
string |
|
headline OptionalCouponClaim3 |
string |
|
headlineHighlight OptionalCouponClaim3 |
string |
|
lead OptionalCouponClaim3 |
string |
|
sceneImage OptionalCouponClaim3 |
string |
|
sceneAlt OptionalCouponClaim3 |
string |
|
photoCaption OptionalCouponClaim3 |
string |
|
columns OptionalCouponClaim3 |
{ title: string; lines: string[] }[] |
|
seatPrice RequiredCouponClaim3 |
number |
|
discountPercent RequiredCouponClaim3 |
number |
|
discountMonths RequiredCouponClaim3 |
number |
|
anchor OptionalCouponClaim3 |
{ label: string; seatPrice: number } |
|
minSeats OptionalCouponClaim3 |
number |
|
maxSeats OptionalCouponClaim3 |
number |
|
defaultSeats OptionalCouponClaim3 |
number |
|
sizeOptions OptionalCouponClaim3 |
{ label: string; min: number; max: number }[] |
|
currency OptionalCouponClaim3 |
string |
|
locale OptionalCouponClaim3 |
string |
|
blockedEmailDomains OptionalCouponClaim3 |
string[] |
|
copy OptionalCouponClaim3 |
Partial<CouponClaim3Copy> |
|
state OptionalCouponClaim3 |
"default" | "hover" | "active" | "disabled" | "error" |
|
busy OptionalCouponClaim3 |
boolean |
|
onSubmit OptionalCouponClaim3 |
(values: CouponClaim3Values) => void |
|
className OptionalCouponClaim3 |
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-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- 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.
scene- A wide atmosphere photo behind or beside the copy.
-
9416419276774702.webp
image/webp · 69.8 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB