Trial Offer 8
Trial offer: a flat-lay of everything the trial unlocks, a hanging price tag with today's trial price, and a plain-words billing ledger directly above the start button, so the visitor starts the trial knowing exactly what they will pay and when.
Use it in a prompt
Use offer/trial-offer-8 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-8.tsx. - Import it and pass your copy and images (Props tab):
import { TrialOffer8 } from "@/components/funneldna/offer/trial-offer-8"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/trial-offer-8/component.tsx 422 lines
// layout: unboxing-flatlay
// Trial offer: a flat-lay of everything the trial unlocks, a hanging price tag with today's trial price, and a plain-words billing ledger directly above the start button, so the visitor starts the trial knowing exactly what they will pay and when.
import * as React from "react"
import { CalendarX2 as CalendarXIcon, CircleAlert as AlertIcon, LoaderCircle as SpinnerIcon, LockKeyhole as LockIcon, ShieldCheck as ShieldIcon } from "lucide-react"
export type TrialOffer8State = "default" | "hover" | "active" | "disabled" | "error"
export type TrialOffer8Item = {
name: string
/** One short line under the name. */
detail?: string
}
export type TrialOffer8Row = {
/** When it happens, e.g. "Day 14". */
when: string
/** What happens, in plain words. */
text: string
amount: string
/** Small line under the amount, e.g. "once". */
note?: string
/** The row where the main charge happens; its amount is set largest. */
emphasis?: boolean
}
export type TrialOffer8Props = {
/** Text props and ledger fields support the placeholders {trialDays}, {trialPrice}, {chargeAmount}, {regularPrice} and {zeroAmount}. */
headline?: string
/** Phrase after the headline that carries the marker stroke. */
accent?: string
lead?: string
/** Flat-lay photo of the contents (slot "product"). */
flatlayImage?: string
flatlayAlt?: string
/** Numbered list that names what is in the flat-lay. */
items?: TrialOffer8Item[]
/** Heading above the numbered list. */
itemsLabel?: string
/** Italic aside in the author's voice under the list. */
aside?: string
/** Length of the trial; fills {trialDays}. */
trialDays?: number
/** Price paid today; fills {trialPrice} and is set large on the tag. */
trialPrice?: string
/** Small uppercase line at the top of the tag. */
trialLabel?: string
/** Line under the big tag price. */
todayLabel?: string
/** Main charge after the trial; fills {chargeAmount}. */
chargeAmount?: string
/** Struck through in marker beside the charge amount on the tag; omitted when empty. */
regularPrice?: string
/** Screen-reader label for the struck price. */
regularLabel?: string
/** Word before the charge amount on the tag. */
thenLabel?: string
/** Words after the charge amount on the tag. */
thenSuffix?: string
/** Amount shown for free days; fills {zeroAmount}. */
zeroAmount?: string
ledgerTitle?: string
/** Billing rows; defaults to today, the trial days and the charge day. */
ledger?: TrialOffer8Row[]
/** Reassurance line under the ledger. */
cancelLine?: string
ctaLabel?: string
/** Smaller line inside the button under the label. */
ctaSublabel?: string
/** Button label while onAction is pending. */
loadingLabel?: string
secureLabel?: string
/** Guarantee line beside the secure label; omitted when empty. */
guarantee?: string
/** Shown when onAction rejects or state is "error". */
errorMessage?: string
/** Shown under the button when it is disabled. */
disabledNote?: string
state?: TrialOffer8State
disabled?: boolean
/** Start-trial click. May return a promise; a rejection shows the error line. */
onAction?: () => void | Promise<void>
className?: string
style?: React.CSSProperties
}
type Phase = "idle" | "loading" | "error"
export function TrialOffer8({
headline = "Unpack the whole kit",
accent = "for just {trialPrice}",
lead = "Plan your funnel, write your page copy, and check every step before you launch.",
flatlayImage,
flatlayAlt = "",
items = DEFAULT_ITEMS,
itemsLabel = "What your trial unlocks",
aside = "(Yes, all three. Not a sample chapter.)",
trialDays = 14,
trialPrice = "$1",
trialLabel = "{trialDays}-day trial",
todayLabel = "today",
chargeAmount = "$47",
regularPrice,
regularLabel = "Regular price",
thenLabel = "then",
thenSuffix = "once on day {trialDays}",
zeroAmount = "$0",
ledgerTitle = "Exactly what you pay",
ledger,
cancelLine = "Cancel before day {trialDays} and you pay nothing more.",
ctaLabel = "Start Planning My Funnel",
ctaSublabel = "{trialPrice} today · then {chargeAmount} once",
loadingLabel = "Starting your trial…",
secureLabel = "Secure checkout",
guarantee,
errorMessage = "We couldn’t start your trial. Please try again.",
disabledNote = "This trial isn’t open right now.",
state = "default",
disabled = false,
onAction,
className,
style,
}: TrialOffer8Props) {
const titleId = React.useId()
const ledgerId = React.useId()
const statusId = React.useId()
const initial: Phase = state === "error" ? "error" : "idle"
const [phase, setPhase] = React.useState<Phase>(initial)
const alive = React.useRef(true)
const pending = React.useRef(false)
React.useEffect(() => {
setPhase(initial)
}, [initial])
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
const fill = (text: string) =>
fillTemplate(text, {
trialDays: String(trialDays),
trialPrice,
chargeAmount,
regularPrice: regularPrice ?? "",
zeroAmount,
})
const rows = ledger ?? DEFAULT_LEDGER
const isDisabled = disabled || state === "disabled"
const busy = phase === "loading"
const force = phase === "idle" && !isDisabled && (state === "hover" || state === "active") ? state : undefined
const list = (items || []).filter((item) => item && item.name)
const showStatus = phase === "error" || isDisabled
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-8", className].filter(Boolean).join(" ")} style={style} aria-labelledby={titleId}>
<style>{CSS}</style>
<div className="t8-card">
<header className="t8-head">
<h2 id={titleId} className="t8-title">
{fill(headline)}
{accent ? (
<>
{" "}
<span className="t8-mark">{fill(accent)}</span>
</>
) : null}
</h2>
{lead ? <p className="t8-lead">{fill(lead)}</p> : null}
</header>
<div className="t8-grid">
<div className="t8-unbox">
{flatlayImage ? (
<div className="t8-photo">
<img src={flatlayImage} alt={flatlayAlt} width={1200} height={900} decoding="async" />
</div>
) : null}
{list.length ? (
<div className="t8-contents">
<h3 className="t8-contents-title">{itemsLabel}</h3>
<ol className="t8-legend">
{list.map((item, index) => (
<li key={item.name + index}>
<span className="t8-num" aria-hidden="true">{pad(index + 1)}</span>
<span className="t8-item">
<span className="t8-item-name">{item.name}</span>
{item.detail ? <span className="t8-item-detail">{item.detail}</span> : null}
</span>
</li>
))}
</ol>
{aside ? <p className="t8-aside">{fill(aside)}</p> : null}
</div>
) : null}
</div>
<div className="t8-offer">
<div className="t8-tagwrap">
<div className="t8-tagframe">
<div className="t8-tag">
<span className="t8-hole" aria-hidden="true" />
<p className="t8-tag-label">{fill(trialLabel)}</p>
<p className="t8-tag-price">{trialPrice}</p>
<p className="t8-tag-today">{todayLabel}</p>
<p className="t8-tag-then">
{thenLabel}{" "}
{regularPrice ? (
<>
<s className="t8-strike">
<span className="t8-sr">{regularLabel} </span>
{regularPrice}
</s>{" "}
</>
) : null}
<strong>{chargeAmount}</strong> {fill(thenSuffix)}
</p>
</div>
</div>
</div>
<section className="t8-ledger" aria-labelledby={ledgerId}>
<h3 id={ledgerId} className="t8-ledger-title">{fill(ledgerTitle)}</h3>
<ol className="t8-rows">
{rows.map((row, index) => (
<li key={row.when + index} className="t8-row" data-emphasis={row.emphasis ? "" : undefined}>
<span className="t8-when">{fill(row.when)}</span>
<span className="t8-rowtext">{fill(row.text)}</span>
<span className="t8-amount">
<strong>{fill(row.amount)}</strong>
{row.note ? <small>{fill(row.note)}</small> : null}
</span>
</li>
))}
</ol>
{cancelLine ? (
<p className="t8-cancel">
<CalendarXIcon aria-hidden="true" />
<span>{fill(cancelLine)}</span>
</p>
) : null}
</section>
<div className="t8-action">
<button
type="button"
className="t8-btn"
data-force={force}
disabled={isDisabled}
aria-busy={busy || undefined}
aria-describedby={showStatus ? statusId : undefined}
onClick={handleStart}
>
{busy ? (
<span className="t8-btn-main">
<SpinnerIcon className="t8-spin" aria-hidden="true" />
{loadingLabel}
</span>
) : (
<>
<span className="t8-btn-main">{fill(ctaLabel)}</span>
{ctaSublabel ? <span className="t8-btn-sub">{fill(ctaSublabel)}</span> : null}
</>
)}
</button>
{phase === "error" ? (
<p id={statusId} className="t8-error" role="alert">
<AlertIcon aria-hidden="true" />
<span>{errorMessage}</span>
</p>
) : isDisabled ? (
<p id={statusId} className="t8-disabled-note">{disabledNote}</p>
) : null}
{secureLabel || guarantee ? (
<ul className="t8-assure">
{secureLabel ? (
<li>
<LockIcon aria-hidden="true" />
{secureLabel}
</li>
) : null}
{guarantee ? (
<li className="t8-assure-guarantee">
<ShieldIcon aria-hidden="true" />
{guarantee}
</li>
) : null}
</ul>
) : null}
</div>
</div>
</div>
</div>
</article>
)
}
export default TrialOffer8
const DEFAULT_ITEMS: TrialOffer8Item[] = [
{ name: "Funnel Planning Guide", detail: "Map your offer and the pages your funnel needs." },
{ name: "Page Copy Workbook", detail: "Draft your headline, offer, and call to action." },
{ name: "Launch Checklist", detail: "Review the links, forms, and next steps before launch." },
]
/** Default billing rows; placeholders are filled at render from the trial props. */
const DEFAULT_LEDGER: TrialOffer8Row[] = [
{ when: "Today", text: "Your trial starts. All three downloads unlock.", amount: "{trialPrice}" },
{ when: "Days 1–{trialDays}", text: "Use the guide, workbook and checklist. Nothing is charged.", amount: "{zeroAmount}" },
{ when: "Day {trialDays}", text: "Keep the kit and pay once. Lifetime access.", amount: "{chargeAmount}", note: "once", emphasis: true },
]
function fillTemplate(text: string, values: Record<string, string>) {
let out = text
for (const key of Object.keys(values)) out = out.split(`{${key}}`).join(values[key])
return out
}
const pad = (n: number) => (n < 10 ? `0${n}` : String(n))
const CSS = `
.cf-trial-offer-8{--t8-ink:var(--ink, oklch(0.21 0.034 263));--t8-card:var(--card, oklch(1 0 0));--t8-muted:var(--muted, oklch(0.446 0.03 258));--t8-accent:var(--accent, oklch(0.5 0.17 257));--t8-shadow:var(--shadow, oklch(0.22 0.03 256));--t8-well:color-mix(in oklch, var(--t8-ink) 4%, var(--t8-card));--t8-line:oklch(from var(--t8-ink) l c h / 0.12);container-type:inline-size;container-name:t8;width:100%;max-width:1120px;margin-inline:auto;font-family:var(--font-body, system-ui, sans-serif);color:var(--t8-ink);line-height:1.5}
.cf-trial-offer-8 *,.cf-trial-offer-8 *::before,.cf-trial-offer-8 *::after{box-sizing:border-box}
.cf-trial-offer-8 .t8-card{position:relative;background:var(--t8-card);border:1px solid var(--card-border, color-mix(in oklch, var(--t8-ink) 12%, transparent));border-radius:var(--card-radius, calc(var(--radius, 12px) + 8px));box-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--t8-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--t8-shadow) l c h / 0.2)));padding:clamp(20px, 4.6cqi, 56px)}
.cf-trial-offer-8 .t8-head{margin:0 0 clamp(26px, 4cqi, 44px)}
.cf-trial-offer-8 .t8-title{margin:0;font-family:var(--font-display, var(--font-body, system-ui, sans-serif));font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);letter-spacing:var(--display-tracking, -0.025em);font-size:clamp(2.125rem, 5.4cqi, 4rem);line-height:1.04;color:var(--t8-ink);text-wrap:balance}
.cf-trial-offer-8 .t8-mark{padding:0 0.12em;margin:0 -0.04em;border-radius:0.18em 0.42em 0.3em 0.5em;background-image:linear-gradient(transparent 0 46%, color-mix(in oklch, var(--marker, #fae37c) 85%, transparent) 46% 94%, transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-trial-offer-8 .t8-lead{margin:clamp(14px, 2cqi, 22px) 0 0;max-width:62ch;font-size:clamp(1.0625rem, 1.9cqi, 1.3125rem);font-weight:500;line-height:1.5;color:var(--t8-muted);text-wrap:pretty}
.cf-trial-offer-8 .t8-grid{display:grid;grid-template-columns:minmax(0, 1.12fr) minmax(0, 0.88fr);gap:clamp(28px, 5cqi, 64px);align-items:start}
.cf-trial-offer-8 .t8-unbox{min-width:0}
.cf-trial-offer-8 .t8-photo{position:relative;aspect-ratio:4 / 3;overflow:hidden;border-radius:var(--radius, 12px);background:var(--t8-well);box-shadow:var(--shadow-sm, 0 1px 1px oklch(from var(--t8-shadow) l c h / 0.18), 0 1px 3px oklch(from var(--t8-shadow) l c h / 0.14))}
.cf-trial-offer-8 .t8-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cf-trial-offer-8 .t8-contents{margin-top:clamp(22px, 3cqi, 30px)}
.cf-trial-offer-8 .t8-contents-title{margin:0 0 16px;font-family:var(--font-display, var(--font-body, system-ui, sans-serif));font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);font-size:1.25rem;line-height:1.2;color:var(--t8-ink);text-wrap:balance}
.cf-trial-offer-8 .t8-legend{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.cf-trial-offer-8 .t8-legend li{display:grid;grid-template-columns:auto minmax(0, 1fr);gap:14px;align-items:start}
.cf-trial-offer-8 .t8-num{display:grid;place-items:center;min-width:2.5rem;height:2.5rem;padding:0 0.5rem;border-radius:999px;background:var(--t8-well);font-family:var(--font-display, var(--font-body, system-ui, sans-serif));font-weight:var(--display-weight, 800);font-size:1rem;line-height:1;font-variant-numeric:tabular-nums;color:var(--t8-ink)}
.cf-trial-offer-8 .t8-item{display:flex;flex-direction:column;gap:2px;padding-top:0.15rem;min-width:0}
.cf-trial-offer-8 .t8-item-name{font-weight:700;font-size:1.0625rem;line-height:1.3;color:var(--t8-ink)}
.cf-trial-offer-8 .t8-item-detail{font-size:1rem;line-height:1.45;color:var(--t8-muted);text-wrap:pretty}
.cf-trial-offer-8 .t8-aside{margin:20px 0 0;font-style:italic;font-size:1.0625rem;line-height:1.45;color:var(--t8-ink);text-wrap:pretty}
.cf-trial-offer-8 .t8-offer{display:flex;flex-direction:column;gap:clamp(20px, 2.6cqi, 26px);min-width:0}
.cf-trial-offer-8 .t8-tagwrap{position:relative;display:flex;justify-content:center;padding-top:40px}
.cf-trial-offer-8 .t8-tagwrap::before{content:"";position:absolute;z-index:2;top:2px;left:50%;width:2px;height:61px;margin-left:-1px;border-radius:2px;background:color-mix(in oklch, var(--t8-ink) 55%, transparent)}
.cf-trial-offer-8 .t8-tagwrap::after{content:"";position:absolute;z-index:3;top:0;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:color-mix(in oklch, var(--t8-ink) 75%, var(--t8-card));box-shadow:0 1px 2px oklch(from var(--t8-shadow) l c h / 0.35)}
.cf-trial-offer-8 .t8-tagframe{width:min(100%, 300px);filter:drop-shadow(0 2px 2px oklch(from var(--t8-shadow) l c h / 0.3)) drop-shadow(0 10px 10px oklch(from var(--t8-shadow) l c h / 0.2))}
.cf-trial-offer-8 .t8-tag{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 24px 28px;background:var(--accent-fill,var(--t8-accent));color:var(--accent-fill-ink,var(--t8-card));clip-path:polygon(18% 0, 82% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);border-radius:0 0 calc(var(--radius, 12px) + 2px) calc(var(--radius, 12px) + 2px);box-shadow:inset 0 0 0 1px oklch(from var(--accent-fill,var(--t8-accent)) calc(l + 0.08) c h / 0.5), inset 0 -3px 0 oklch(from var(--accent-fill,var(--t8-accent)) calc(l - 0.08) c h);transform:rotate(-3deg);transform-origin:50% 23px;animation:t8-swing 1.6s cubic-bezier(0.3, 0.7, 0.35, 1);transition:transform 0.5s cubic-bezier(0.3, 0.7, 0.35, 1)}
.cf-trial-offer-8 .t8-hole{position:absolute;top:16px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--t8-card);box-shadow:0 0 0 4px oklch(from var(--accent-fill,var(--t8-accent)) calc(l - 0.1) c h), inset 0 1px 2px oklch(from var(--t8-shadow) l c h / 0.5)}
.cf-trial-offer-8 .t8-tag p{margin:0}
.cf-trial-offer-8 .t8-tag .t8-tag-label{font-size:0.875rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;line-height:1.3}
.cf-trial-offer-8 .t8-tag .t8-tag-price{margin:8px 0 0;font-family:var(--font-display, var(--font-body, system-ui, sans-serif));font-weight:var(--display-weight, 800);font-size:clamp(4.5rem, 10cqi, 6.5rem);line-height:0.95;letter-spacing:-0.04em;font-variant-numeric:tabular-nums;transform:rotate(-5deg)}
.cf-trial-offer-8 .t8-tag .t8-tag-today{margin-top:4px;font-size:1.25rem;font-weight:700;line-height:1.2}
.cf-trial-offer-8 .t8-tag .t8-tag-then{margin-top:18px;max-width:22ch;font-size:1rem;font-weight:600;line-height:1.45;text-wrap:balance}
.cf-trial-offer-8 .t8-tag-then strong{font-weight:800;font-size:1.125rem}
.cf-trial-offer-8 .t8-strike{position:relative;display:inline-block;padding:0 0.08em;text-decoration:none;font-weight:700}
.cf-trial-offer-8 .t8-strike::after{content:"";position:absolute;left:-0.12em;right:-0.12em;top:46%;height:0.24em;border-radius:0.2em 0.4em 0.25em 0.35em;background:color-mix(in oklch, var(--marker, #fae37c) 92%, transparent);transform:rotate(-10deg);pointer-events:none}
.cf-trial-offer-8 .t8-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-trial-offer-8 .t8-ledger{background:var(--t8-well);border-radius:var(--radius, 12px);padding:clamp(18px, 2.4cqi, 24px)}
.cf-trial-offer-8 .t8-ledger-title{margin:0 0 6px;font-family:var(--font-display, var(--font-body, system-ui, sans-serif));font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);font-size:1.25rem;line-height:1.2;color:var(--t8-ink);text-wrap:balance}
.cf-trial-offer-8 .t8-rows{list-style:none;margin:0;padding:0}
.cf-trial-offer-8 .t8-row{display:grid;grid-template-columns:minmax(0, 1fr) auto;grid-template-areas:"when amount" "text amount";column-gap:16px;row-gap:2px;padding:14px 0;border-top:1px solid var(--t8-line)}
.cf-trial-offer-8 .t8-row:first-child{border-top:0}
.cf-trial-offer-8 .t8-when{grid-area:when;font-size:0.9375rem;font-weight:700;line-height:1.35;color:var(--t8-ink)}
.cf-trial-offer-8 .t8-rowtext{grid-area:text;font-size:1rem;line-height:1.45;color:var(--t8-ink);text-wrap:pretty}
.cf-trial-offer-8 .t8-amount{grid-area:amount;align-self:start;display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.cf-trial-offer-8 .t8-amount strong{font-family:var(--font-display, var(--font-body, system-ui, sans-serif));font-weight:var(--display-weight, 800);font-size:1.375rem;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--t8-ink)}
.cf-trial-offer-8 .t8-row[data-emphasis] .t8-amount strong{font-size:1.875rem;letter-spacing:-0.02em}
.cf-trial-offer-8 .t8-amount small{font-size:0.875rem;font-weight:600;line-height:1.2;color:var(--t8-muted)}
.cf-trial-offer-8 .t8-cancel{display:flex;align-items:flex-start;gap:10px;margin:2px 0 0;padding-top:14px;border-top:1px solid var(--t8-line);font-size:1rem;font-weight:700;line-height:1.45;color:var(--t8-ink);text-wrap:pretty}
.cf-trial-offer-8 .t8-cancel svg{flex:none;width:20px;height:20px;margin-top:1px;color:var(--success, oklch(0.5 0.14 150))}
.cf-trial-offer-8 .t8-action{display:flex;flex-direction:column;gap:14px}
.cf-trial-offer-8 .t8-btn{--t8-bg:var(--button-bg, var(--cta, oklch(0.576 0.209 29.5)));--t8-bg2:var(--button-bg-2, var(--cta-2, oklch(0.506 0.206 29.5)));appearance:none;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:76px;margin:0;padding:14px 20px 16px;border:1px solid oklch(from var(--t8-bg2) calc(l - 0.06) c h);border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(180deg, oklch(from var(--t8-bg) calc(l + 0.03) c h), var(--t8-bg2));color:var(--button-ink, var(--cta-ink, oklch(1 0 0)));text-shadow:var(--button-text-shadow, none);font-family:var(--button-font, var(--font-display, var(--font-body, system-ui, sans-serif)));text-transform:var(--button-case, none);text-align:center;cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--t8-bg) calc(l + 0.14) c h / 0.6), inset 0 -3px 0 oklch(from var(--t8-bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--t8-shadow) l c h / 0.3), 0 6px 12px -4px oklch(from var(--t8-shadow) l c h / 0.4));transition:transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;-webkit-tap-highlight-color:transparent}
.cf-trial-offer-8 .t8-btn-main{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:var(--button-weight, 800);font-size:clamp(1.125rem, 4.4cqi, 1.5rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-trial-offer-8 .t8-btn-sub{font-family:var(--font-body, system-ui, sans-serif);font-size:0.9375rem;font-weight:600;line-height:1.3;text-transform:none;text-wrap:balance}
.cf-trial-offer-8 .t8-btn:focus-visible{outline:3px solid var(--field-focus, var(--t8-accent));outline-offset:3px}
.cf-trial-offer-8 .t8-btn[data-force="hover"]{background:linear-gradient(180deg, oklch(from var(--t8-bg) calc(l - 0.02) c h), oklch(from var(--t8-bg2) calc(l - 0.05) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--t8-bg) calc(l + 0.12) c h / 0.55), inset 0 -3px 0 oklch(from var(--t8-bg) calc(l - 0.2) c h), 0 2px 3px oklch(from var(--t8-shadow) l c h / 0.32), 0 10px 16px -6px oklch(from var(--t8-shadow) l c h / 0.45)}
.cf-trial-offer-8 .t8-btn:not(:disabled):active,.cf-trial-offer-8 .t8-btn[data-force="active"]{background:linear-gradient(180deg, oklch(from var(--t8-bg) calc(l - 0.08) c h), oklch(from var(--t8-bg2) calc(l - 0.1) c h));transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--t8-bg) calc(l - 0.24) c h / 0.55), 0 1px 1px oklch(from var(--t8-shadow) l c h / 0.25)}
.cf-trial-offer-8 .t8-btn[aria-busy="true"]{cursor:progress}
.cf-trial-offer-8 .t8-btn:disabled{cursor:not-allowed;transform:none;border-color:var(--button-2-border, transparent);background:var(--button-2-bg, var(--secondary, color-mix(in oklch, var(--t8-ink) 8%, var(--t8-card))));color:var(--button-2-ink, var(--secondary-ink, var(--t8-ink)));text-shadow:none;box-shadow:none}
.cf-trial-offer-8 .t8-spin{width:22px;height:22px;animation:t8-rotate 0.8s linear infinite}
.cf-trial-offer-8 .t8-error{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border-radius:var(--radius, 12px);background:var(--danger-soft, oklch(0.93 0.024 27));color:var(--danger, oklch(0.5 0.17 27));font-size:0.9375rem;font-weight:600;line-height:1.45;text-wrap:pretty}
.cf-trial-offer-8 .t8-error svg{flex:none;width:18px;height:18px;margin-top:2px}
.cf-trial-offer-8 .t8-disabled-note{margin:0;text-align:center;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--t8-muted)}
.cf-trial-offer-8 .t8-assure{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px}
.cf-trial-offer-8 .t8-assure li{display:inline-flex;align-items:center;gap:6px;font-size:0.875rem;font-weight:600;line-height:1.35;color:var(--t8-muted)}
.cf-trial-offer-8 .t8-assure svg{flex:none;width:16px;height:16px}
.cf-trial-offer-8 .t8-assure-guarantee svg{color:var(--success, oklch(0.5 0.14 150))}
@container t8 (max-width: 820px){
.cf-trial-offer-8 .t8-grid{grid-template-columns:minmax(0, 1fr)}
}
@media (hover: hover) and (pointer: fine){
.cf-trial-offer-8 .t8-tagwrap:hover .t8-tag{transform:rotate(-1deg)}
.cf-trial-offer-8 .t8-btn:not(:disabled):hover{background:linear-gradient(180deg, oklch(from var(--t8-bg) calc(l - 0.02) c h), oklch(from var(--t8-bg2) calc(l - 0.05) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--t8-bg) calc(l + 0.12) c h / 0.55), inset 0 -3px 0 oklch(from var(--t8-bg) calc(l - 0.2) c h), 0 2px 3px oklch(from var(--t8-shadow) l c h / 0.32), 0 10px 16px -6px oklch(from var(--t8-shadow) l c h / 0.45)}
.cf-trial-offer-8 .t8-btn:not(:disabled):hover:active{transform:translateY(1px)}
}
@keyframes t8-swing{0%{transform:rotate(-11deg)}38%{transform:rotate(3deg)}64%{transform:rotate(-5.5deg)}84%{transform:rotate(-2deg)}100%{transform:rotate(-3deg)}}
@keyframes t8-rotate{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){
.cf-trial-offer-8 .t8-tag{animation:none;transition:none}
.cf-trial-offer-8 .t8-tagwrap:hover .t8-tag{transform:rotate(-3deg)}
.cf-trial-offer-8 .t8-btn{transition:none}
.cf-trial-offer-8 .t8-spin{animation:none}
}
`
pieces/offer/trial-offer-8/specimen.tsx 24 lines
import __studioImagecddd705c from "../assets/e4253a8bf7e3f266.webp"
import * as React from "react"
import { TrialOffer8, type TrialOffer8State } from "../trial-offer-8"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
export const states: TrialOffer8State[] = ["default", "hover", "active", "disabled", "error"]
export default function TrialOffer8Specimen({ state = "default" }: { state?: TrialOffer8State }) {
const sample = defaults.sample
return (
<TrialOffer8
state={state}
lead={sample.lead}
flatlayImage={slot("product", __studioImagecddd705c)}
flatlayAlt="The Funnel Planning Guide, Page Copy Workbook and Launch Checklist laid out on a white desk"
items={sample.items.map((item) => ({ name: item.name, detail: item.detail }))}
chargeAmount={sample.price}
regularPrice={sample.regularPrice}
guarantee={sample.guarantee}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalTrialOffer8 |
string |
Default "Unpack the whole kit"
|
accent OptionalTrialOffer8 |
string |
Default "for just {trialPrice}"
|
lead OptionalTrialOffer8 |
string |
Default "Plan your funnel, write your page copy, and check every step before you launch."
|
flatlayImage OptionalTrialOffer8 |
string |
|
flatlayAlt OptionalTrialOffer8 |
string |
Default ""
|
items OptionalTrialOffer8 |
TrialOffer8Item[] |
Default DEFAULT_ITEMS
|
itemsLabel OptionalTrialOffer8 |
string |
Default "What your trial unlocks"
|
aside OptionalTrialOffer8 |
string |
Default "(Yes, all three. Not a sample chapter.)"
|
trialDays OptionalTrialOffer8 |
number |
Default 14
|
trialPrice OptionalTrialOffer8 |
string |
Default "$1"
|
trialLabel OptionalTrialOffer8 |
string |
Default "{trialDays}-day trial"
|
todayLabel OptionalTrialOffer8 |
string |
Default "today"
|
chargeAmount OptionalTrialOffer8 |
string |
Default "$47"
|
regularPrice OptionalTrialOffer8 |
string |
|
regularLabel OptionalTrialOffer8 |
string |
Default "Regular price"
|
thenLabel OptionalTrialOffer8 |
string |
Default "then"
|
thenSuffix OptionalTrialOffer8 |
string |
Default "once on day {trialDays}"
|
zeroAmount OptionalTrialOffer8 |
string |
Default "$0"
|
ledgerTitle OptionalTrialOffer8 |
string |
Default "Exactly what you pay"
|
ledger OptionalTrialOffer8 |
TrialOffer8Row[] |
|
cancelLine OptionalTrialOffer8 |
string |
Default "Cancel before day {trialDays} and you pay nothing more."
|
ctaLabel OptionalTrialOffer8 |
string |
Default "Start Planning My Funnel"
|
ctaSublabel OptionalTrialOffer8 |
string |
Default "{trialPrice} today · then {chargeAmount} once"
|
loadingLabel OptionalTrialOffer8 |
string |
Default "Starting your trial…"
|
secureLabel OptionalTrialOffer8 |
string |
Default "Secure checkout"
|
guarantee OptionalTrialOffer8 |
string |
|
errorMessage OptionalTrialOffer8 |
string |
Default "We couldn’t start your trial. Please try again."
|
disabledNote OptionalTrialOffer8 |
string |
Default "This trial isn’t open right now."
|
state OptionalTrialOffer8 |
TrialOffer8State |
Default "default"
|
disabled OptionalTrialOffer8 |
boolean |
Default false
|
onAction OptionalTrialOffer8 |
() => void | Promise<void> |
|
className OptionalTrialOffer8 |
string |
|
style OptionalTrialOffer8 |
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.
--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.
product- The main product shot or cover (ebook, kit, bottle).
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e4253a8bf7e3f266.webp
image/webp · 59 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB