Big Domino 1
Knocks down the false belief keeping the reader stuck, shows the one new starting point, and offers the product.
Use it in a prompt
Use content/big-domino 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/content/big-domino.tsx. - Import it and pass your copy and images (Props tab):
import { BigDomino } from "@/components/funneldna/content/big-domino"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/big-domino/component.tsx 431 lines
// Knocks down the false belief keeping the reader stuck, shows the one new starting point, and offers the product.
// layout: split-contrast
'use client'
import * as React from 'react'
import { AlertCircle, ArrowRight, Check, Download, Loader2, RotateCcw, ShieldCheck } from 'lucide-react'
export type BigDominoItem = { name: string; image: string; imageAlt?: string }
/** "success" is accepted for older callers and renders as default. */
export type BigDominoState = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
export type BigDominoProps = {
/** Section headline; the headlineMark phrase gets one marker stroke. */
headline?: string
headlineMark?: string
/** Dark half: the false belief that keeps the visitor stuck. */
oldTitle?: string
oldBelief?: string
oldCost?: string
/** Short words (up to 4) for the old requirements, printed on the tiles that fall. */
dominoes?: string[]
/** The one belief left standing. */
newDomino?: string
/** Light half: the new opportunity and the offer. */
newTitle?: string
newBelief?: string
steps?: string[]
productName?: string
productDetail?: string
items?: BigDominoItem[]
regularLabel?: string
/** Struck regular price; with it a savings line renders. Nothing renders when omitted. */
regularPrice?: string
priceLabel?: string
price?: string
savingsLabel?: string
priceNote?: string
ctaLabel?: string
ctaSubline?: string
loadingLabel?: string
reassurance?: string[]
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successMessage?: string
errorMessage?: string
replayLabel?: string
/** Real checkout link; the button renders as a link when set. */
href?: string
/** Called on click. A returned promise shows the loading label; a rejection shows errorMessage. */
onAction?: () => void | Promise<unknown>
state?: BigDominoState
className?: string
}
/* Lean angles (deg) so each fallen tile rests on the next one; the last rests on the standing tile. */
const FALLS = [62, 55, 47, 27]
function savings(regular?: string, price?: string) {
if (!regular || !price) return ''
const a = Number(regular.replace(/[^0-9.]/g, ''))
const b = Number(price.replace(/[^0-9.]/g, ''))
if (!Number.isFinite(a) || !Number.isFinite(b) || !a || a <= b) return ''
const prefix = (price.match(/^[^0-9]*/) || [''])[0]
const diff = a - b
return prefix + (Number.isInteger(diff) ? String(diff) : diff.toFixed(2))
}
function withMark(text: string, phrase?: string) {
const at = phrase ? text.indexOf(phrase) : -1
if (!phrase || at < 0) return text
return (
<>
{text.slice(0, at)}
<mark className='bdm-mark'>{phrase}</mark>
{text.slice(at + phrase.length)}
</>
)
}
const CSS = `
.bdm{--bdm-sh:var(--shadow,oklch(0.22 0.03 260));--bdm-marker:color-mix(in oklab,var(--marker,#fae37c) 55%,var(--surface,#ffffff));--bdm-radius:var(--card-radius,var(--radius,1rem));container:bdm/inline-size;width:100%;max-width:72rem;margin-inline:auto;color:var(--ink);font-family:var(--font-body);box-sizing:border-box}
.bdm *,.bdm *::before,.bdm *::after{box-sizing:border-box}
.bdm :where(h2,h3,p,ul,s){margin:0}
.bdm :where(p,li){text-wrap:pretty}
.bdm-head{margin-bottom:clamp(1.25rem,3cqi,2.25rem);font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(1.875rem,5cqi,3.75rem);line-height:1.05;color:var(--ink);text-align:center;text-wrap:balance}
.bdm-mark{color:inherit;background-color:transparent;background-image:linear-gradient(100deg,transparent .12em,var(--bdm-marker) .14em,var(--bdm-marker) calc(100% - .14em),transparent calc(100% - .1em));background-repeat:no-repeat;background-size:100% .55em;background-position:0 88%;padding-inline:.1em;margin-inline:-.04em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.bdm-split{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:1.25rem}
@container bdm (min-width:52rem){.bdm-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.bdm-old,.bdm-new{position:relative;display:flex;flex-direction:column;min-width:0;container-type:inline-size;border-radius:var(--bdm-radius);padding:clamp(1.25rem,3.4cqi,2.5rem)}
.bdm-old{overflow:hidden;background:var(--band);color:var(--band-ink);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--bdm-sh) l c h / .22),0 4px 10px -2px oklch(from var(--bdm-sh) l c h / .2))}
.bdm-new{background:var(--card);color:var(--ink);border:1px solid var(--card-border,color-mix(in oklch,var(--ink) 12%,transparent));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--bdm-sh) l c h / .22),0 4px 10px -2px oklch(from var(--bdm-sh) l c h / .2)))}
.bdm-label{margin-bottom:.875rem;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.0625rem,1.6cqi + .6rem,1.3125rem);line-height:1.25;text-wrap:balance}
.bdm-old .bdm-label{color:color-mix(in oklch,var(--band-ink) 82%,var(--band))}
.bdm-new .bdm-label{color:var(--ink)}
.bdm-quote,.bdm-belief{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.02em);font-size:clamp(1.625rem,7cqi,2.625rem);line-height:1.08;text-wrap:balance}
.bdm-quote{color:var(--band-ink);text-indent:-.4em;padding-left:.4em}
.bdm-cost{margin-top:.875rem;font-size:1.125rem;line-height:1.5;font-weight:500;color:color-mix(in oklch,var(--band-ink) 86%,var(--band))}
.bdm-belief{color:var(--accent)}
.bdm-stage{margin-top:auto;padding-top:2rem}
.bdm-row{position:relative;display:flex;align-items:flex-end;gap:4em;width:max-content;margin-inline:auto;padding:.5em 1em 0;font-size:clamp(9px,calc(100cqi / var(--row-em,31.5)),16px);border-bottom:.14em solid oklch(from var(--band-ink) l c h / .2)}
.bdm-tile{position:relative;flex:none;display:flex;flex-direction:column;width:4.25em;height:9em;border-radius:.7em}
.bdm-tile.is-old{color:var(--band-ink);background:linear-gradient(160deg,oklch(from var(--band) calc(l - 0.02) c h),oklch(from var(--band) calc(l - 0.12) c h));border:1px solid oklch(from var(--band-ink) l c h / .2);box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .22),0 1px 2px oklch(from var(--bdm-sh) calc(l - 0.12) c h / .45),0 6px 12px -5px oklch(from var(--bdm-sh) calc(l - 0.12) c h / .5);transform-origin:100% 100%;transition:transform .52s cubic-bezier(.55,.04,.85,.45);transition-delay:calc(var(--i,0) * 170ms)}
.bdm-row[data-fallen='true'] .bdm-tile.is-old{transform:rotate(var(--fall,45deg))}
.bdm-row[data-fallen='false'] .bdm-tile.is-old{transition-duration:.32s;transition-delay:0ms}
.bdm-tile.is-new{color:var(--accent);background:var(--card);border:.14em solid var(--accent-fill, var(--accent));box-shadow:inset 0 -.28em 0 color-mix(in oklch,var(--accent-fill,var(--accent)) 14%,var(--card)),0 1px 2px oklch(from var(--bdm-sh) calc(l - 0.12) c h / .45),0 6px 12px -5px oklch(from var(--bdm-sh) calc(l - 0.12) c h / .5);transform-origin:50% 100%}
.bdm-face{flex:1 1 auto;display:grid;place-items:center;overflow:hidden;padding:.45em .25em}
.bdm-tile-label{writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:1.05em;line-height:1;letter-spacing:.01em;white-space:nowrap}
.bdm-new-label{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:.98em;line-height:1.05;text-align:center;text-wrap:balance;overflow-wrap:anywhere}
.bdm-pips{flex:none;height:3.1em;margin-inline:.55em;display:grid;grid-template-columns:repeat(2,.62em);grid-template-rows:repeat(2,.62em);justify-content:center;align-content:center;gap:.55em .75em;border-top:.12em solid oklch(from currentColor l c h / .35)}
.bdm-pips i{display:block;width:.62em;height:.62em;border-radius:50%;background:currentColor}
.bdm-pips.is-two i:nth-child(2){grid-column:2;grid-row:2}
.bdm-stage-foot{display:flex;justify-content:flex-end;margin-top:.75rem}
.bdm-replay{display:inline-flex;align-items:center;gap:.4rem;min-height:2.75rem;padding:0 .875rem;border-radius:999px;border:1px solid oklch(from var(--band-ink) l c h / .32);background:transparent;color:var(--band-ink);font:600 .9375rem/1 var(--font-body);cursor:pointer;transition:background .18s ease,border-color .18s ease}
.bdm-replay:hover{background:oklch(from var(--band-ink) l c h / .1);border-color:oklch(from var(--band-ink) l c h / .5)}
.bdm-replay:active{background:oklch(from var(--band-ink) l c h / .16)}
.bdm-replay:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.bdm-shift{position:absolute;z-index:2;left:50%;top:-2.125rem;display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));border:.25rem solid var(--surface);box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--bdm-sh) l c h / .18),0 1px 3px oklch(from var(--bdm-sh) l c h / .14));transform:translateX(-50%) rotate(90deg)}
@container bdm (min-width:52rem){.bdm-shift{left:-2.125rem;top:50%;transform:translateY(-50%)}}
.bdm-steps{list-style:none;padding:0;margin-top:1rem;display:grid;gap:.5rem}
.bdm-steps li{display:flex;align-items:flex-start;gap:.625rem;font-size:1.0625rem;line-height:1.45;font-weight:500;color:var(--ink)}
.bdm-steps svg{flex:none;margin-top:.15em;color:var(--success)}
.bdm-offer{container-type:inline-size;margin-top:1.5rem;padding:clamp(1rem,3.4cqi,1.5rem);border-radius:calc(var(--bdm-radius) * .8);background:color-mix(in oklch,var(--ink) 4%,var(--card));border:1px solid oklch(from var(--ink) l c h / 0.08);box-shadow:none}
.bdm-product{display:flex;align-items:center;gap:1rem}
.bdm-thumbs{display:flex;flex:none;padding-left:.25rem}
.bdm-thumbs img{position:relative;display:block;width:3.5rem;height:3.5rem;object-fit:cover;object-position:center;border-radius:.625rem;border:2px solid var(--card);background:var(--card);box-shadow:0 1px 2px oklch(from var(--bdm-sh) l c h / .25),0 4px 10px -3px oklch(from var(--bdm-sh) l c h / .3)}
.bdm-thumbs img + img{margin-left:-1.125rem}
.bdm-thumbs img:nth-child(1){transform:rotate(-6deg)}
.bdm-thumbs img:nth-child(2){z-index:2;transform:translateY(-.15rem)}
.bdm-thumbs img:nth-child(3){z-index:1;transform:rotate(6deg)}
@container (max-width:20rem){.bdm-thumbs img{width:2.75rem;height:2.75rem}.bdm-thumbs img + img{margin-left:-.875rem}}
.bdm-product-copy{min-width:0}
.bdm-name{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:1.25rem;line-height:1.2;color:var(--ink);text-wrap:balance}
.bdm-detail{margin-top:.25rem;font-size:.9375rem;line-height:1.4;color:var(--muted)}
.bdm-price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:1.25rem;row-gap:.25rem;margin-top:1.125rem}
.bdm-was,.bdm-now{display:flex;align-items:baseline;gap:.4rem}
.bdm-was span{font-size:.9375rem;font-weight:600;color:var(--muted)}
.bdm-was s{font-size:1.125rem;font-weight:700;color:var(--danger);text-decoration-thickness:.12em}
.bdm-now span{font-size:1rem;font-weight:700;color:var(--ink)}
.bdm-now strong{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.25rem,12cqi,3rem);line-height:1.1;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.bdm-savings{margin-top:.75rem;font-size:.9375rem;line-height:1.45;color:var(--muted);font-weight:500}
.bdm-savings strong{color:var(--success);font-weight:800}
.bdm-action{margin-top:1.25rem}
.bdm-cta{--bdm-bg:var(--button-bg,var(--cta));display:flex;width:100%;min-height:3.75rem;align-items:center;justify-content:center;gap:.625rem;padding:.875rem .75rem;border:1px solid oklch(from var(--bdm-bg) calc(l - 0.12) c h);border-radius:var(--button-radius,var(--radius,.75rem));background:linear-gradient(180deg,oklch(from var(--bdm-bg) calc(l + 0.04) c h),var(--button-bg-2,var(--cta-2)));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.0625rem,6cqi,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--bdm-bg) calc(l + 0.12) c h / .6),inset 0 -3px 0 oklch(from var(--bdm-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--bdm-sh) l c h / .3),0 6px 14px -4px oklch(from var(--bdm-sh) l c h / .38));cursor:pointer;transition:transform .14s ease,box-shadow .18s ease;-webkit-tap-highlight-color:transparent}
.bdm-cta:hover,.bdm-cta.is-hover{background:linear-gradient(180deg,oklch(from var(--bdm-bg) calc(l - 0.02) c h),oklch(from var(--bdm-bg) calc(l - 0.1) c h));transform:translateY(-1px)}
.bdm-cta:active,.bdm-cta.is-active{transform:translateY(1px);background:oklch(from var(--bdm-bg) calc(l - 0.1) c h);box-shadow:inset 0 2px 3px oklch(from var(--bdm-bg) calc(l - 0.22) c h / .55),0 1px 1px oklch(from var(--bdm-sh) l c h / .25)}
.bdm-cta:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.bdm-cta.is-loading{cursor:progress}
.bdm-cta:disabled,.bdm-cta:disabled:hover,.bdm-cta:disabled:active,.bdm-cta[aria-disabled='true'],.bdm-cta[aria-disabled='true']:hover{background:var(--secondary);color:var(--secondary-ink);border-color:transparent;text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm));transform:none;cursor:not-allowed}
.bdm-spin{flex:none;animation:bdm-spin .9s linear infinite}
.bdm-sub{margin-top:.625rem;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.bdm-status{display:flex;align-items:flex-start;gap:.625rem;padding:.875rem 1rem;border-radius:calc(var(--bdm-radius) * .7);font-size:1rem;font-weight:700;line-height:1.4}
.bdm-status svg{flex:none;margin-top:.1em}
.bdm-status.is-error{margin-top:.75rem;background:var(--danger-soft);color:var(--danger)}
.bdm-assure{list-style:none;padding:0;margin-top:1rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}
.bdm-assure li{display:inline-flex;align-items:center;gap:.4rem;font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--ink)}
.bdm-assure svg{flex:none;color:var(--success)}
@keyframes bdm-spin{to{transform:rotate(360deg)}}
@keyframes bdm-wobble{0%{transform:rotate(0)}35%{transform:rotate(4deg)}65%{transform:rotate(-1.5deg)}100%{transform:rotate(0)}}
@media (prefers-reduced-motion:no-preference){.bdm-row[data-fallen='true'] .bdm-tile.is-new{animation:bdm-wobble .6s ease-out both;animation-delay:calc(var(--i,3) * 170ms + 380ms)}}
@media (prefers-reduced-motion:reduce){.bdm *,.bdm *::before,.bdm *::after{transition:none!important;animation:none!important}.bdm-stage-foot{display:none}.bdm-cta:hover,.bdm-cta:active{transform:none}}
`
export default function BigDomino({
headline = 'You don’t need everything ready. You need a clear plan.',
headlineMark = 'a clear plan',
oldTitle = 'The belief keeping you stuck',
oldBelief = 'I need a product, an audience, and to be on camera first.',
oldCost = 'So you wait until everything is ready.',
dominoes = ['Product', 'Audience', 'Camera'],
newDomino = 'A clear plan',
newTitle = 'The new starting point',
newBelief = 'Plan your funnel first.',
steps = ['Map your offer.', 'Write your page copy.', 'Check every step before you launch.'],
productName = 'The Funnel Starter Kit',
productDetail = 'Guide + workbook + checklist',
items = [],
regularLabel = 'Regular price',
regularPrice,
priceLabel = 'Today',
price = '$47',
savingsLabel = 'Save',
priceNote,
ctaLabel = 'Yes! Give Me Access',
ctaSubline,
loadingLabel = 'Opening checkout…',
reassurance = [],
errorMessage = 'We couldn’t open checkout. Please try again.',
replayLabel = 'Replay',
href,
onAction,
state = 'default',
className,
}: BigDominoProps) {
const rowRef = React.useRef<HTMLDivElement>(null)
const timers = React.useRef<number[]>([])
const [fallen, setFallen] = React.useState(false)
const [flow, setFlow] = React.useState<'idle' | 'loading' | 'error'>('idle')
const later = React.useCallback((fn: () => void, ms: number) => {
const id = window.setTimeout(fn, ms)
timers.current.push(id)
}, [])
React.useEffect(() => {
const reduce = typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches
const el = rowRef.current
if (reduce || !el || typeof IntersectionObserver === 'undefined') {
setFallen(true)
return
}
const io = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
io.disconnect()
later(() => setFallen(true), 220)
}
},
{ threshold: 0.4 },
)
io.observe(el)
return () => io.disconnect()
}, [later])
React.useEffect(() => () => timers.current.forEach((id) => window.clearTimeout(id)), [])
const replay = () => {
setFallen(false)
later(() => setFallen(true), 520)
}
const forced = state === 'error' ? state : null
const status = forced ?? (flow === 'error' ? flow : null)
const loading = !forced && flow === 'loading'
const disabled = state === 'disabled'
const act = async (event: React.MouseEvent<HTMLElement>) => {
if (disabled || loading) {
event.preventDefault()
return
}
if (!onAction) return
try {
const result = onAction()
if (!result) return
setFlow('loading')
await result
setFlow('idle')
} catch {
setFlow('error')
}
}
const old = dominoes.slice(0, FALLS.length)
const angles = FALLS.slice(FALLS.length - old.length)
const rowEm = (old.length + 1) * 4.25 + old.length * 4 + 2.5
const save = savings(regularPrice, price)
const ctaClass = ['bdm-cta', state === 'hover' && 'is-hover', state === 'active' && 'is-active', loading && 'is-loading']
.filter(Boolean)
.join(' ')
const ctaContent = loading ? (
<>
<Loader2 className='bdm-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{loadingLabel}</span>
</>
) : (
<span>{ctaLabel}</span>
)
const cta = href ? (
<a className={ctaClass} href={href} onClick={act} aria-disabled={disabled || undefined} aria-busy={loading || undefined}>
{ctaContent}
</a>
) : (
<button type='button' className={ctaClass} onClick={act} disabled={disabled} aria-busy={loading || undefined}>
{ctaContent}
</button>
)
return (
<div className={['bdm', className].filter(Boolean).join(' ')}>
<style>{CSS}</style>
<h2 className='bdm-head'>{withMark(headline, headlineMark)}</h2>
<div className='bdm-split'>
<section className='bdm-old' aria-label={oldTitle}>
<h3 className='bdm-label'>{oldTitle}</h3>
<p className='bdm-quote'>“{oldBelief}”</p>
{oldCost && <p className='bdm-cost'>{oldCost}</p>}
<div className='bdm-stage'>
<div
ref={rowRef}
className='bdm-row'
data-fallen={fallen ? 'true' : 'false'}
aria-hidden='true'
style={{ '--row-em': rowEm } as React.CSSProperties}
>
{old.map((label, i) => (
<div
key={`${label}-${i}`}
className='bdm-tile is-old'
style={{ '--fall': `${angles[i]}deg`, '--i': i } as React.CSSProperties}
>
<span className='bdm-face'>
<span className='bdm-tile-label'>{label}</span>
</span>
<span className='bdm-pips is-two'>
<i />
<i />
</span>
</div>
))}
<div className='bdm-tile is-new' style={{ '--i': old.length } as React.CSSProperties}>
<span className='bdm-face'>
<span className='bdm-new-label'>{newDomino}</span>
</span>
<span className='bdm-pips'>
<i />
<i />
<i />
<i />
</span>
</div>
</div>
<div className='bdm-stage-foot'>
<button type='button' className='bdm-replay' onClick={replay} aria-label={`${replayLabel} the dominoes falling`}>
<RotateCcw size={16} strokeWidth={2.5} aria-hidden='true' />
<span>{replayLabel}</span>
</button>
</div>
</div>
</section>
<section className='bdm-new' aria-label={newTitle}>
<span className='bdm-shift' aria-hidden='true'>
<ArrowRight size={22} strokeWidth={2.75} />
</span>
<h3 className='bdm-label'>{newTitle}</h3>
<p className='bdm-belief'>{newBelief}</p>
{steps.length > 0 && (
<ul className='bdm-steps'>
{steps.map((step) => (
<li key={step}>
<Check size={20} strokeWidth={3} aria-hidden='true' />
<span>{step}</span>
</li>
))}
</ul>
)}
<div className='bdm-offer'>
<div className='bdm-product'>
{items.length > 0 && (
<div className='bdm-thumbs'>
{items.slice(0, 3).map((item) => (
<img key={item.name} src={item.image} alt={item.imageAlt ?? item.name} width={112} height={112} loading='lazy' />
))}
</div>
)}
<div className='bdm-product-copy'>
<p className='bdm-name'>{productName}</p>
{productDetail && <p className='bdm-detail'>{productDetail}</p>}
</div>
</div>
<div className='bdm-price'>
{regularPrice && (
<p className='bdm-was'>
<span>{regularLabel}</span>
<s>{regularPrice}</s>
</p>
)}
<p className='bdm-now'>
<span>{priceLabel}</span>
<strong>{price}</strong>
</p>
</div>
{(save || priceNote) && (
<p className='bdm-savings'>
{save && (
<strong>
{savingsLabel} {save}
</strong>
)}
{save && priceNote && <span aria-hidden='true'> · </span>}
{priceNote && <span>{priceNote}</span>}
</p>
)}
<div className='bdm-action' aria-live='polite'>
<>
{cta}
{ctaSubline && <p className='bdm-sub'>{ctaSubline}</p>}
{status === 'error' && (
<p className='bdm-status is-error' role='alert'>
<AlertCircle size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{errorMessage}</span>
</p>
)}
</>
</div>
{reassurance.length > 0 && (
<ul className='bdm-assure'>
{reassurance.map((line) => {
const Icon = /guarantee|refund|money/i.test(line) ? ShieldCheck : Download
return (
<li key={line}>
<Icon size={18} strokeWidth={2.5} aria-hidden='true' />
<span>{line}</span>
</li>
)
})}
</ul>
)}
</div>
</section>
</div>
</div>
)
}
pieces/content/big-domino/specimen.tsx 29 lines
import BigDomino, { type BigDominoState } from '../big-domino'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function BigDominoSpecimen({ state = 'default' }: { state?: string }) {
const sample = defaults.sample
const items = sample.items.map((item, index) => ({
name: item.name,
image: slot(`item-${index + 1}`, item.image),
imageAlt: item.imageAlt,
}))
return (
<BigDomino
productName={sample.name}
productDetail='Guide + workbook + checklist'
items={items}
regularPrice={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
ctaLabel={sample.label}
ctaSubline={sample.sublabel}
reassurance={sample.reassurance}
state={state as BigDominoState}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalBigDomino |
string |
Default 'You don’t need everything ready. You need a clear plan.'
|
headlineMark OptionalBigDomino |
string |
Default 'a clear plan'
|
oldTitle OptionalBigDomino |
string |
Default 'The belief keeping you stuck'
|
oldBelief OptionalBigDomino |
string |
Default 'I need a product, an audience, and to be on camera first.'
|
oldCost OptionalBigDomino |
string |
Default 'So you wait until everything is ready.'
|
dominoes OptionalBigDomino |
string[] |
Default ['Product', 'Audience', 'Camera']
|
newDomino OptionalBigDomino |
string |
Default 'A clear plan'
|
newTitle OptionalBigDomino |
string |
Default 'The new starting point'
|
newBelief OptionalBigDomino |
string |
Default 'Plan your funnel first.'
|
steps OptionalBigDomino |
string[] |
Default ['Map your offer.', 'Write your page copy.', 'Check every step before you launch.']
|
productName OptionalBigDomino |
string |
Default 'The Funnel Starter Kit'
|
productDetail OptionalBigDomino |
string |
Default 'Guide + workbook + checklist'
|
items OptionalBigDomino |
BigDominoItem[] |
Default []
|
regularLabel OptionalBigDomino |
string |
Default 'Regular price'
|
regularPrice OptionalBigDomino |
string |
|
priceLabel OptionalBigDomino |
string |
Default 'Today'
|
price OptionalBigDomino |
string |
Default '$47'
|
savingsLabel OptionalBigDomino |
string |
Default 'Save'
|
priceNote OptionalBigDomino |
string |
|
ctaLabel OptionalBigDomino |
string |
Default 'Yes! Give Me Access'
|
ctaSubline OptionalBigDomino |
string |
|
loadingLabel OptionalBigDomino |
string |
Default 'Opening checkout…'
|
reassurance OptionalBigDomino |
string[] |
Default []
|
successMessage OptionalBigDomino |
string |
|
errorMessage OptionalBigDomino |
string |
Default 'We couldn’t open checkout. Please try again.'
|
replayLabel OptionalBigDomino |
string |
Default 'Replay'
|
href OptionalBigDomino |
string |
|
onAction OptionalBigDomino |
() => void | Promise<unknown> |
|
state OptionalBigDomino |
BigDominoState |
Default 'default'
|
className OptionalBigDomino |
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-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.
--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