Trial Offer 6
Explains the trial calendar and one-time billing terms beside the offer story.
Use it in a prompt
Use offer/trial-offer-6 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/trial-offer-6.tsx. - Import it and pass your copy and images (Props tab):
import { TrialOffer6 } from "@/components/funneldna/offer/trial-offer-6"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/trial-offer-6/component.tsx 346 lines
// Explains the trial calendar and one-time billing terms beside the offer story.
import * as React from "react"
import { CircleAlert as AlertIcon, CalendarX2 as CalendarXIcon, LockKeyhole as LockIcon, ShieldCheck as ShieldIcon, LoaderCircle as SpinnerIcon } from "lucide-react"
export type TrialOffer6Props = {
/** Generated billing copy; templates support {trialDays}, {trialPrice} and {chargeAmount}. */
copy?: Partial<TrialOffer6Copy>
headline?: string
accent?: string
deck?: string
story?: string
pullLine?: string
items?: TrialOffer6Item[]
itemsCaption?: string
trialPrice?: string
todayLabel?: string
trialLine?: string
trialDays?: number
chargeAmount?: string
billingTitle?: string
billing?: TrialOffer6Row[]
cancelLine?: string
ctaLabel?: string
loadingLabel?: string
secureLabel?: string
guarantee?: string
errorMessage?: string
disabledNote?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successTitle?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successBody?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successNote?: string
/** "success" is accepted for older callers and renders as default. */
state?: TrialOffer6State
disabled?: boolean
/** Action click; takes precedence over onStart. Without either the button does nothing visible. */
onAction?: () => void | Promise<void>
/** Legacy action alias. */
onStart?: () => void | Promise<void>
className?: string
style?: React.CSSProperties
}
export function TrialOffer6({
copy,
headline = "Try The Funnel Starter Kit",
accent = "for 14 days for just $1",
deck = "Plan your funnel, write your page copy, and check every step before you launch.",
story = "Start today for $1 and use the guide, the workbook and the checklist for 14 days, then decide if the kit stays.",
pullLine = "One payment. Yours to keep.",
items = [],
itemsCaption = "All three are included in your trial.",
trialPrice = "$1",
todayLabel = "today",
trialLine,
trialDays = 14,
chargeAmount = "$47",
billingTitle = "What you pay, in plain words",
billing,
cancelLine,
ctaLabel,
loadingLabel = "Starting your trial…",
secureLabel = "",
guarantee = "30-day money-back guarantee",
errorMessage = "We couldn’t start your trial. Please try again.",
disabledNote = "This trial isn’t open right now.",
state = "default",
disabled = false,
onStart,
onAction = onStart,
className,
style,
}: TrialOffer6Props) {
const text = { ...DEFAULT_COPY, ...copy }
const words = (value: string) => value.replace(/\{(trialDays|trialPrice|chargeAmount)\}/g, (_, key: string) => String(({ trialDays, trialPrice, chargeAmount } as Record<string, string | number>)[key]))
const titleId = React.useId()
const ledgerId = React.useId()
const initialPhase = phaseFor(state)
const [phase, setPhase] = React.useState<Phase>(initialPhase)
const alive = React.useRef(true)
const pending = React.useRef(false)
React.useEffect(() => { setPhase(initialPhase) }, [initialPhase])
React.useEffect(() => {
alive.current = true
return () => { alive.current = false }
}, [])
const forced = state === "hover" || state === "active" ? state : undefined
const isDisabled = disabled || state === "disabled"
const busy = phase === "loading"
const line = trialLine ?? words(text.trialLine)
const rows: TrialOffer6Row[] = billing ?? [
{ when: words(text.today), amount: trialPrice, text: words(text.todayDetail) },
{ when: words(text.chargeDay), amount: chargeAmount, text: words(text.chargeDetail), emphasis: true },
{ when: words(text.after), amount: words(text.afterAmount), text: words(text.afterDetail) },
]
const cancel = cancelLine ?? words(text.cancel)
const label = ctaLabel ?? words(text.action)
const showCal = Number.isInteger(trialDays) && trialDays > 0 && trialDays <= 31
const days = showCal ? Array.from({ length: trialDays }, (_, i) => i + 1) : []
const shown = items.slice(0, 3)
const handleStart = async (event: React.MouseEvent<HTMLButtonElement>) => {
event.preventDefault()
if (isDisabled || busy || pending.current || !onAction) return
pending.current = true
setPhase("loading")
try {
await onAction()
if (alive.current) setPhase("idle")
} catch {
if (alive.current) setPhase("error")
} finally {
pending.current = false
}
}
return (
<article className={["cf-trial-offer-6", className].filter(Boolean).join(" ")} style={style} aria-labelledby={titleId}>
<style>{CSS}</style>
<div className="t6-card">
<header className="t6-head">
<h2 id={titleId} className="t6-title">
{headline}{accent ? <> <span className="t6-mark">{accent}</span></> : null}
</h2>
{deck ? <p className="t6-deck">{deck}</p> : null}
</header>
<div className="t6-spread">
<div className="t6-story">
{story ? <p className="t6-drop">{story}</p> : null}
{shown.length ? (
<figure className="t6-fig">
<ul className="t6-trip">
{shown.map((item, index) => (
<li key={item.name + index} className="t6-tile">
<img src={item.itemImage ?? item.src} alt={item.alt} width={360} height={360} loading="lazy" decoding="async" />
<span className="t6-tile-name">{item.name}</span>
</li>
))}
</ul>
{itemsCaption ? <figcaption className="t6-cap">{itemsCaption}</figcaption> : null}
</figure>
) : null}
</div>
<div className="t6-offer">
<div className="t6-block">
<div className="t6-price-row">
<p className="t6-price">{trialPrice}</p>
<p className="t6-price-copy">
<span className="t6-per">{todayLabel}</span>
<span className="t6-for">{line}</span>
</p>
</div>
{showCal ? (
<>
<ol className="t6-cal" aria-hidden="true">
{days.map((day) => (
<li
key={day}
className={["t6-day", day === 1 ? "is-today" : "", day === trialDays && day !== 1 ? "is-charge" : ""].filter(Boolean).join(" ")}
style={{ "--i": day } as React.CSSProperties}
>{day}</li>
))}
</ol>
<ul className="t6-legend">
<li><span className="t6-sw t6-sw-today" aria-hidden="true" />{words(text.todayLegend)}</li>
<li><span className="t6-sw t6-sw-charge" aria-hidden="true" />{words(text.chargeLegend)}</li>
</ul>
</>
) : null}
</div>
</div>
</div>
<section className="t6-details" aria-labelledby={ledgerId}>
<header className="t6-details-head">
{pullLine ? <p className="t6-pull">{pullLine}</p> : null}
<h3 id={ledgerId} className="t6-led-title">{billingTitle}</h3>
</header>
<ol className="t6-rows">
{rows.map((row, index) => (
<li key={row.when + index} className={row.emphasis ? "t6-row is-emph" : "t6-row"}>
<span className="t6-when">{row.when}</span>
<span className="t6-text">{row.text}</span>
<span className="t6-amt">{row.amount}</span>
</li>
))}
</ol>
<div className="t6-close">
{(
<>
{cancel ? <p className="t6-cancel"><CalendarXIcon className="t6-ic" aria-hidden="true" /><span>{cancel}</span></p> : null}
<div className="t6-action">
{phase === "error" ? <div className="t6-error" role="alert"><AlertIcon className="t6-ic" aria-hidden="true" /><span>{errorMessage}</span></div> : null}
<button
type="button"
className="t6-btn"
data-force={forced}
disabled={isDisabled}
aria-disabled={busy || undefined}
aria-busy={busy || undefined}
onClick={handleStart}
>
{busy ? <><SpinnerIcon className="t6-ic t6-spin" aria-hidden="true" /><span>{loadingLabel}</span></> : <span>{label}</span>}
</button>
{isDisabled && disabledNote ? <p className="t6-note">{disabledNote}</p> : null}
{secureLabel || guarantee ? (
<ul className="t6-assure">
{secureLabel ? <li><LockIcon className="t6-ic" aria-hidden="true" />{secureLabel}</li> : null}
{guarantee ? <li><ShieldIcon className="t6-ic" aria-hidden="true" />{guarantee}</li> : null}
</ul>
) : null}
</div>
</>
)}
</div>
<p className="t6-sr" role="status" aria-live="polite">{phase === "loading" ? loadingLabel : ""}</p>
</section>
</div>
</article>
)
}
export default TrialOffer6
export type TrialOffer6State = "default" | "hover" | "active" | "disabled" | "loading" | "error" | "success"
export type TrialOffer6Item = { itemImage?: string; /** Legacy image alias. */ src?: string; alt: string; name: string }
export type TrialOffer6Row = { when: string; amount: string; text: string; emphasis?: boolean }
const CSS = `
.cf-trial-offer-6{container:t6/inline-size;position:relative;width:100%;max-width:70rem;margin-inline:auto;color:var(--ink,#101828);font-family:var(--font-body,Arial,sans-serif);text-align:left;-webkit-font-smoothing:antialiased;--t6-marker:color-mix(in oklch,var(--marker,#fae37c) 25%,var(--card));--t6-marker-ink:var(--ink);--t6-ok:var(--success);--t6-r:var(--card-radius,var(--radius,14px));--t6-line:var(--card-border,oklch(from var(--ink) l c h / 0.12));}
.cf-trial-offer-6 *,.cf-trial-offer-6 *::before,.cf-trial-offer-6 *::after{box-sizing:border-box}
:where(.cf-trial-offer-6) .t6-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:where(.cf-trial-offer-6) .t6-card{position:relative;padding:clamp(1.25rem,5cqi,3.25rem);border:1px solid var(--t6-line);background:var(--card);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));box-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));}
:where(.cf-trial-offer-6) .t6-head{max-width:58rem}
:where(.cf-trial-offer-6) .t6-title{margin:0;color:var(--ink,#101828);font-family:var(--font-display,Arial,sans-serif);font-size:clamp(2.125rem,7.2cqi,4.25rem);line-height:1.03;text-wrap:balance;font-weight:var(--display-weight,900);letter-spacing:var(--display-tracking,-.022em);text-transform:var(--display-case,none);}
:where(.cf-trial-offer-6) .t6-mark{padding:0 .1em;margin:0 -.03em;border-radius:.2em .55em .3em .45em;background-image:linear-gradient(var(--t6-marker),var(--t6-marker));background-repeat:no-repeat;background-position:0 90%;background-size:100% 60%;-webkit-box-decoration-break:clone;box-decoration-break:clone}
:where(.cf-trial-offer-6) .t6-deck{margin:clamp(.875rem,2cqi,1.25rem) 0 0;max-width:52ch;color:var(--muted,#4a5565);font-size:clamp(1.0625rem,2.1cqi,1.3125rem);font-weight:500;line-height:1.5;text-wrap:pretty}
:where(.cf-trial-offer-6) .t6-spread{display:grid;gap:2.25rem;margin-top:clamp(1.75rem,4.5cqi,3rem);align-items:start}
@container t6 (min-width:54rem){:where(.cf-trial-offer-6) .t6-spread{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(2.5rem,5cqi,4rem)}}
:where(.cf-trial-offer-6) .t6-story{display:flex;flex-direction:column;gap:1.75rem;min-width:0}
:where(.cf-trial-offer-6) .t6-drop{margin:0;color:var(--ink,#101828);font-size:clamp(1.0625rem,1.9cqi,1.25rem);line-height:1.62;text-wrap:pretty}
:where(.cf-trial-offer-6) .t6-fig{margin:0}
:where(.cf-trial-offer-6) .t6-trip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.5rem,1.6cqi,1rem);margin:0;padding:.5rem 0 0;list-style:none}
:where(.cf-trial-offer-6) .t6-tile{display:flex;flex-direction:column;align-items:center;gap:.625rem;min-width:0;padding:.5rem .5rem .75rem;border:1px solid var(--t6-line);transform:rotate(var(--t6-tilt,0deg));background:color-mix(in oklch,var(--ink) 4%,var(--card));border-color:oklch(from var(--ink) l c h / 0.10);border-radius:var(--card-radius,var(--radius));box-shadow:none;}
:where(.cf-trial-offer-6) .t6-tile:nth-child(1){--t6-tilt:-1.5deg}
:where(.cf-trial-offer-6) .t6-tile:nth-child(2){--t6-tilt:.75deg;translate:0 -.375rem}
:where(.cf-trial-offer-6) .t6-tile:nth-child(3){--t6-tilt:-.5deg}
:where(.cf-trial-offer-6) .t6-tile img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:max(0px,calc(var(--t6-r) - 6px));object-fit:contain;background:transparent;filter:drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35));}
:where(.cf-trial-offer-6) .t6-tile-name{color:var(--ink,#101828);font-size:.875rem;font-weight:700;line-height:1.25;text-align:center;text-wrap:balance;overflow-wrap:anywhere}
:where(.cf-trial-offer-6) .t6-cap{margin:1rem 0 0;color:var(--muted,#4a5565);font-size:.9375rem;font-weight:500;line-height:1.45;text-align:center;text-wrap:pretty}
:where(.cf-trial-offer-6) .t6-offer{container:t6o/inline-size;min-width:0}
:where(.cf-trial-offer-6) .t6-block{position:relative;overflow:hidden;padding:clamp(1.25rem,6cqi,2rem);color:var(--band-ink,#fff);background:var(--band);border-radius:var(--card-radius,var(--radius));box-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));}
:where(.cf-trial-offer-6) .t6-price-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem 1rem}
:where(.cf-trial-offer-6) .t6-price{margin:0;font-family:var(--font-display,Arial,sans-serif);font-size:clamp(4.25rem,25cqi,7rem);font-weight:900;line-height:.86;letter-spacing:-.045em;font-variant-numeric:lining-nums;overflow-wrap:anywhere}
:where(.cf-trial-offer-6) .t6-price-copy{flex:1 1 9rem;min-width:0;margin:0 0 .3rem}
:where(.cf-trial-offer-6) .t6-per{display:block;font-size:clamp(1.25rem,5cqi,1.5rem);font-weight:800;line-height:1.1}
:where(.cf-trial-offer-6) .t6-for{display:block;max-width:20ch;margin-top:.25rem;color:var(--band-ink);font-size:1rem;font-weight:500;line-height:1.35;text-wrap:pretty}
:where(.cf-trial-offer-6) .t6-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.3125rem;max-width:22rem;margin:1.5rem 0 0;padding:0;list-style:none}
:where(.cf-trial-offer-6) .t6-day{display:grid;place-items:center;aspect-ratio:1;border-radius:.45rem;background:oklch(from var(--band-ink,#fff) l c h / 0.11);color:var(--band-ink);font-size:.875rem;font-weight:700;font-variant-numeric:tabular-nums}
:where(.cf-trial-offer-6) .t6-day.is-today{background:var(--band-ink,#fff);color:var(--band,#0f2747)}
:where(.cf-trial-offer-6) .t6-day.is-charge{background:var(--warning-soft);color:var(--warning)}
:where(.cf-trial-offer-6) .t6-legend{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin:1rem 0 0;padding:0;list-style:none}
:where(.cf-trial-offer-6) .t6-legend li{display:inline-flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:600;line-height:1.3}
:where(.cf-trial-offer-6) .t6-sw{flex:none;width:.875rem;height:.875rem;border-radius:.25rem}
:where(.cf-trial-offer-6) .t6-sw-today{background:var(--band-ink,#fff)}
:where(.cf-trial-offer-6) .t6-sw-charge{background:var(--warning-soft)}
/* One full-width closing card beneath both upper columns. */
:where(.cf-trial-offer-6) .t6-details{container:t6details/inline-size;min-width:0;margin-top:clamp(1.75rem,4cqi,2.75rem);padding:clamp(1rem,3.2cqi,2.25rem);border:1px solid oklch(from var(--ink) l c h / 0.14);background:color-mix(in oklch,var(--ink) 4%,var(--card));border-color:oklch(from var(--ink) l c h / 0.10);border-radius:var(--card-radius,var(--radius));box-shadow:none;}
:where(.cf-trial-offer-6) .t6-details-head{text-align:center;margin-bottom:1.5rem}
:where(.cf-trial-offer-6) .t6-pull{margin:0 auto;color:var(--ink,#101828);font-family:var(--font-display,Arial,sans-serif);font-size:clamp(1.75rem,4.6cqi,2.625rem);font-style:italic;line-height:1.12;text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.015em);text-transform:var(--display-case,none);}
:where(.cf-trial-offer-6) .t6-led-title{margin:0;color:var(--ink,#101828);font-family:var(--font-display,Arial,sans-serif);font-size:1.3125rem;line-height:1.3;text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,normal);text-transform:var(--display-case,none);}
:where(.cf-trial-offer-6) .t6-pull + .t6-led-title{margin-top:.875rem}
:where(.cf-trial-offer-6) .t6-rows{margin:0;padding:0;list-style:none}
:where(.cf-trial-offer-6) .t6-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'when amt' 'text text';gap:.375rem 1rem;padding:1rem;border-bottom:1px solid var(--t6-line)}
:where(.cf-trial-offer-6) .t6-row:last-child{border-bottom:0}
:where(.cf-trial-offer-6) .t6-row.is-emph{border-color:transparent;border-radius:max(0px,calc(var(--t6-r) - 4px));background:color-mix(in oklch,var(--t6-marker) 40%,var(--card,#fff))}
:where(.cf-trial-offer-6) .t6-when{grid-area:when;align-self:center;color:var(--ink,#101828);font-size:1rem;font-weight:800;line-height:1.35}
:where(.cf-trial-offer-6) .t6-text{grid-area:text;min-width:0;color:var(--muted,#4a5565);font-size:1rem;line-height:1.5;text-wrap:pretty}
:where(.cf-trial-offer-6) .t6-amt{grid-area:amt;justify-self:end;align-self:center;max-width:100%;color:var(--ink,#101828);font-family:var(--font-display,Arial,sans-serif);font-size:1.75rem;font-weight:800;line-height:1.15;font-variant-numeric:lining-nums tabular-nums;overflow-wrap:anywhere}
@container t6details (min-width:36rem){:where(.cf-trial-offer-6) .t6-row{grid-template-columns:7.5rem minmax(0,1fr) minmax(4rem,auto);grid-template-areas:'when text amt';align-items:center;gap:1.25rem;padding:1.125rem 1.25rem}}
:where(.cf-trial-offer-6) .t6-close{display:flex;flex-direction:column;gap:1.25rem;margin-top:1.25rem}
:where(.cf-trial-offer-6) .t6-ic{flex:none;width:1.25rem;height:1.25rem}
:where(.cf-trial-offer-6) .t6-cancel{display:flex;align-items:flex-start;gap:.75rem;margin:0;padding:1rem 1.125rem;border:1px solid var(--warning);color:var(--ink,#101828);font-size:1rem;font-weight:600;line-height:1.5;text-wrap:pretty;background:var(--warning-soft);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));box-shadow:none;}
:where(.cf-trial-offer-6) .t6-cancel .t6-ic{margin-top:.125rem;color:var(--warning)}
@container t6details (min-width:36rem){:where(.cf-trial-offer-6) .t6-cancel{justify-content:center}}
:where(.cf-trial-offer-6) .t6-action{display:flex;flex-direction:column;gap:1rem;width:100%;max-width:34rem;min-width:0;margin-inline:auto}
:where(.cf-trial-offer-6) .t6-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.625rem;width:100%;min-height:4.25rem;margin:0;padding:1rem 1.25rem;border:1px solid var(--cta-2,#b42318);letter-spacing:-.005em;text-align:center;text-wrap:balance;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));cursor:pointer;-webkit-tap-highlight-color:transparent;background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));color:var(--button-ink,var(--cta-ink));border-color:var(--button-bg-2,var(--cta-2));border-radius:var(--button-radius,var(--radius));font:var(--button-weight,800) clamp(1.1875rem,3cqi,1.4375rem)/1.2 var(--button-font,var(--font-display));text-transform:var(--button-case,none);box-shadow:var(--button-shadow, var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));}
:where(.cf-trial-offer-6) .t6-btn span{min-width:0;overflow-wrap:anywhere}
:where(.cf-trial-offer-6) .t6-btn:hover:not(:disabled):not([aria-disabled=true]),:where(.cf-trial-offer-6) .t6-btn[data-force=hover]:not(:disabled):not([aria-disabled=true]){transform:translateY(-1px);filter:none;box-shadow:var(--button-shadow, var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));}
:where(.cf-trial-offer-6) .t6-btn:active:not(:disabled):not([aria-disabled=true]),:where(.cf-trial-offer-6) .t6-btn[data-force=active]:not(:disabled):not([aria-disabled=true]){transform:translateY(2px);filter:none;box-shadow:var(--button-shadow, 0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2), inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));}
:where(.cf-trial-offer-6) .t6-btn:focus-visible{outline:3px solid var(--accent,#0f5fc2);outline-offset:4px}
:where(.cf-trial-offer-6) .t6-btn[aria-disabled=true]{cursor:progress}
:where(.cf-trial-offer-6) .t6-btn:disabled{text-shadow:none;cursor:not-allowed;filter:none;transform:none;background:var(--button-2-bg,var(--card));color:var(--button-2-ink,var(--ink));border-color:var(--button-2-border,oklch(from var(--ink) l c h / 0.22));border-radius:var(--button-radius,var(--radius));box-shadow:var(--button-shadow, none);}
:where(.cf-trial-offer-6) .t6-note{margin:0;color:var(--muted,#4a5565);font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty}
:where(.cf-trial-offer-6) .t6-assure{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem;margin:0;padding:0;list-style:none;color:var(--muted,#4a5565);font-size:.875rem;font-weight:600;line-height:1.4}
:where(.cf-trial-offer-6) .t6-assure li{display:inline-flex;align-items:center;gap:.4rem}
:where(.cf-trial-offer-6) .t6-assure .t6-ic{width:1rem;height:1rem}
:where(.cf-trial-offer-6) .t6-assure li:last-child .t6-ic{color:var(--success)}
:where(.cf-trial-offer-6) .t6-error{display:flex;align-items:flex-start;gap:.625rem;padding:.875rem 1rem;border:1px solid var(--danger);color:var(--ink,#101828);font-size:1rem;font-weight:600;line-height:1.45;background:var(--danger-soft);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));box-shadow:none;}
:where(.cf-trial-offer-6) .t6-error .t6-ic{margin-top:.08rem;color:var(--danger)}
@keyframes t6-mark{from{background-size:0% 60%}to{background-size:100% 60%}}
@keyframes t6-day{from{opacity:.35;transform:scale(.72)}to{opacity:1;transform:none}}
@keyframes t6-ring{0%{box-shadow:0 0 0 0 oklch(from var(--t6-marker) l c h / 0.75)}100%{box-shadow:0 0 0 12px oklch(from var(--t6-marker) l c h / 0)}}
@keyframes t6-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:no-preference){
:where(.cf-trial-offer-6) .t6-mark{animation:t6-mark .7s cubic-bezier(.3,.7,.2,1) .15s both}
:where(.cf-trial-offer-6) .t6-day{animation:t6-day .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 28ms)}
:where(.cf-trial-offer-6) .t6-day.is-charge{animation:t6-day .45s cubic-bezier(.2,.8,.2,1) both,t6-ring 1.3s ease-out 1s 2;animation-delay:calc(var(--i,0) * 28ms),1s}
:where(.cf-trial-offer-6) .t6-spin{animation:t6-spin .8s linear infinite}
:where(.cf-trial-offer-6) .t6-btn{transition:transform .14s cubic-bezier(.2,.8,.2,1),box-shadow .14s ease,filter .14s ease}
:where(.cf-trial-offer-6) .t6-tile{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){:where(.cf-trial-offer-6) .t6-tile:hover{transform:rotate(0deg)}}
`
type Phase = "idle" | "loading" | "error"
function phaseFor(state: TrialOffer6State): Phase {
return state === "error" || state === "loading" ? state : "idle"
}
export type TrialOffer6Copy = {
trialLine: string; today: string; todayDetail: string; chargeDay: string; chargeDetail: string
after: string; afterAmount: string; afterDetail: string; cancel: string; action: string
successNote: string; todayLegend: string; chargeLegend: string
}
const DEFAULT_COPY: TrialOffer6Copy = {
trialLine: "for your {trialDays}-day trial", today: "Today", todayDetail: "Your trial starts today.",
chargeDay: "Day {trialDays}", chargeDetail: "Charged once to the same card, only if you keep the kit.",
after: "After that", afterAmount: "$0", afterDetail: "No subscription. Nothing else to pay.",
cancel: "Cancel any time before day {trialDays} and the {chargeAmount} is never charged.", action: "Start My {trialPrice} Trial",
successNote: "Your one {chargeAmount} payment is on day {trialDays}. Cancel before then and it’s never charged.",
todayLegend: "Today · {trialPrice}", chargeLegend: "Day {trialDays} · {chargeAmount} once",
}
pieces/offer/trial-offer-6/specimen.tsx 39 lines
import * as React from "react"
import TrialOffer6 from "../trial-offer-6"
import type { TrialOffer6State } from "../trial-offer-6"
import { slot } from "../../slots"
import defaults from "../../studio-defaults.json"
export const states = ["default", "hover", "active", "disabled", "error"]
export default function TrialOffer6Specimen({ state = "default" }: { state?: string }) {
const s = defaults.sample
const items = s.items.map((item, i) => ({ itemImage: slot(`item-${i + 1}`, item.image), alt: item.imageAlt, name: item.name }))
return (
<div>
<TrialOffer6
state={state as TrialOffer6State}
headline={`Try ${s.name}`}
accent="for 14 days for just $1"
deck={s.lead}
story="Start today for $1 and the guide, the workbook and the checklist download at once. Use all three for 14 days, then decide if the kit stays."
pullLine="One payment. Yours to keep."
items={items}
itemsCaption="All three unlock the moment your trial starts."
trialPrice="$1"
trialDays={14}
chargeAmount={s.price}
billing={[
{ when: "Today", amount: "$1", text: "The whole kit downloads instantly." },
{ when: "Day 14", amount: s.price, text: "Charged once to the same card, only if you keep the kit.", emphasis: true },
{ when: "After that", amount: "$0", text: "No subscription. Lifetime access." },
]}
cancelLine={`Cancel any time before day 14 and the ${s.price} is never charged.`}
ctaLabel="Start My $1 Trial"
guarantee={s.guarantee}
secureLabel="Secure checkout"
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalTrialOffer6 |
Partial<TrialOffer6Copy> |
|
headline OptionalTrialOffer6 |
string |
Default "Try The Funnel Starter Kit"
|
accent OptionalTrialOffer6 |
string |
Default "for 14 days for just $1"
|
deck OptionalTrialOffer6 |
string |
Default "Plan your funnel, write your page copy, and check every step before you launch."
|
story OptionalTrialOffer6 |
string |
Default "Start today for $1 and use the guide, the workbook and the checklist for 14 days, then decide if the kit stays."
|
pullLine OptionalTrialOffer6 |
string |
Default "One payment. Yours to keep."
|
items OptionalTrialOffer6 |
TrialOffer6Item[] |
Default []
|
itemsCaption OptionalTrialOffer6 |
string |
Default "All three are included in your trial."
|
trialPrice OptionalTrialOffer6 |
string |
Default "$1"
|
todayLabel OptionalTrialOffer6 |
string |
Default "today"
|
trialLine OptionalTrialOffer6 |
string |
|
trialDays OptionalTrialOffer6 |
number |
Default 14
|
chargeAmount OptionalTrialOffer6 |
string |
Default "$47"
|
billingTitle OptionalTrialOffer6 |
string |
Default "What you pay, in plain words"
|
billing OptionalTrialOffer6 |
TrialOffer6Row[] |
|
cancelLine OptionalTrialOffer6 |
string |
|
ctaLabel OptionalTrialOffer6 |
string |
|
loadingLabel OptionalTrialOffer6 |
string |
Default "Starting your trial…"
|
secureLabel OptionalTrialOffer6 |
string |
Default ""
|
guarantee OptionalTrialOffer6 |
string |
Default "30-day money-back guarantee"
|
errorMessage OptionalTrialOffer6 |
string |
Default "We couldn’t start your trial. Please try again."
|
disabledNote OptionalTrialOffer6 |
string |
Default "This trial isn’t open right now."
|
successTitle OptionalTrialOffer6 |
string |
|
successBody OptionalTrialOffer6 |
string |
|
successNote OptionalTrialOffer6 |
string |
|
state OptionalTrialOffer6 |
TrialOffer6State |
Default "default"
|
disabled OptionalTrialOffer6 |
boolean |
Default false
|
onAction OptionalTrialOffer6 |
() => void | Promise<void> |
Default onStart
|
onStart OptionalTrialOffer6 |
() => void | Promise<void> |
|
className OptionalTrialOffer6 |
string |
|
style OptionalTrialOffer6 |
React.CSSProperties |
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- 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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB