Slot Reels Hero 1
Slot Reels Hero: three reels spin and land one by one on what the buyer gets, a marquee rolls the contents underneath, and the big button beside the price takes the click.
Use it in a prompt
Use attention/slot-reels-hero 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/attention/slot-reels-hero.tsx. - Import it and pass your copy and images (Props tab):
import { SlotReelsHero } from "@/components/funneldna/attention/slot-reels-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/attention/slot-reels-hero/component.tsx 373 lines
// layout: split-contrast
// Slot Reels Hero: three reels spin and land one by one on what the buyer gets, a marquee rolls the contents underneath, and the big button beside the price takes the click.
import * as React from 'react'
import { BookOpen, ClipboardCheck, Lock, NotebookPen, Pause, Play, ShieldCheck, Sparkle } from 'lucide-react'
export type SlotReelsHeroItem = {
/** Item name shown under the landed reel and on the marquee. */
name: string
/** Product photo shown on this reel (item-n slot); an icon stands in when empty. */
image?: string
imageAlt?: string
}
export type SlotReelsHeroCopy = {
/** Accessible name of the reel list; {product} is replaced with productName. */
reelsLabel: string
/** Accessible label of the marquee control while the marquee plays. */
pauseLabel: string
/** Accessible label of the marquee control while the marquee is paused. */
playLabel: string
}
export type SlotReelsHeroProps = {
/** Headline words before the highlighted phrase. */
headline?: React.ReactNode
/** One phrase drawn with the marker stroke, after the headline. */
highlight?: string
/** Supporting sentence under the headline. */
lead?: React.ReactNode
/** Italic aside in the author’s voice. */
aside?: React.ReactNode
/** Line above the reels; {product} is replaced with productName. */
caption?: string
/** Legacy alias for caption. */
jackpotCaption?: string
/** What the buyer gets, one per reel (2 to 4). */
items?: SlotReelsHeroItem[]
/** Fills the {product} placeholder in caption and copy.reelsLabel. */
productName?: string
/** The big price figure. */
price?: string
/** Price sentence; {price} is replaced by the big figure. */
priceLine?: string
/** Small line under the price; also ends the default marquee. */
priceNote?: string
/** Outcome-verb button label, one line. */
ctaLabel?: string
/** Short reassurance line under the button. */
ctaNote?: string
/** Guarantee line under the button, beside the shield. */
guarantee?: string
/** Words on the scrolling marquee; defaults to the item names and price note. */
ticker?: string[]
/** Accessible labels for the reel list and the marquee control. */
copy?: Partial<SlotReelsHeroCopy>
/** Button destination; the button renders as a link when set and not disabled. */
href?: string
/** Button click handler; not called while disabled. */
onAction?: (event: React.MouseEvent<HTMLElement>) => void
disabled?: boolean
/** Preview state for the button. */
state?: 'default' | 'hover' | 'active' | 'disabled'
/** Extra classes on the root for page-level placement. */
className?: string
}
const DEFAULT_COPY: SlotReelsHeroCopy = {
reelsLabel: 'What’s inside {product}',
pauseLabel: 'Pause the marquee',
playLabel: 'Play the marquee',
}
const DEFAULT_ITEMS: SlotReelsHeroItem[] = [
{ name: 'Funnel Planning Guide' },
{ name: 'Page Copy Workbook' },
{ name: 'Launch Checklist' },
]
const FALLBACK_ICONS = [BookOpen, NotebookPen, ClipboardCheck]
const PRICE_TOKEN = '{price}'
const SPIN_DELAY = 0.35
const SPIN_BASE = 1.05
const SPIN_STEP = 0.5
export function SlotReelsHero({
headline = 'Build your first funnel with',
highlight = 'a clear plan',
lead = 'Plan your funnel, write your page copy, and check every step before you launch.',
aside = '(No luck needed. Every reel lands on something you keep.)',
caption,
jackpotCaption,
items = DEFAULT_ITEMS,
productName = 'The Funnel Starter Kit',
price = '$47',
priceLine = '{price} today. That’s it.',
priceNote = 'One payment · Lifetime access',
ctaLabel = 'Start planning my funnel',
ctaNote = 'Secure checkout · Instant download',
guarantee = '30-day money-back guarantee',
ticker,
copy,
href,
onAction,
disabled = false,
state = 'default',
className,
}: SlotReelsHeroProps) {
const [paused, setPaused] = React.useState(false)
const text = { ...DEFAULT_COPY, ...copy }
const reelsCaption = caption ?? jackpotCaption ?? 'Everything inside {product}'
const reels = items.slice(0, 4)
const count = Math.max(reels.length, 1)
const words = ticker ?? [...reels.map((item) => item.name), priceNote].filter(Boolean)
const priceAt = priceLine.indexOf(PRICE_TOKEN)
const priceBefore = priceAt >= 0 ? priceLine.slice(0, priceAt).trim() : ''
const priceAfter = priceAt >= 0 ? priceLine.slice(priceAt + PRICE_TOKEN.length).trim() : priceLine
const isDisabled = disabled || state === 'disabled'
const forced = state === 'hover' || state === 'active' ? state : undefined
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
event.preventDefault()
return
}
onAction?.(event)
}
const cta =
href && !isDisabled ? (
<a className='srh-cta' href={href} data-state={forced} onClick={handleAction}>
<span className='srh-cta-label'>{ctaLabel}</span>
</a>
) : (
<button type='button' className='srh-cta' data-state={forced} disabled={isDisabled} onClick={handleAction}>
<span className='srh-cta-label'>{ctaLabel}</span>
</button>
)
const rootStyle = { '--srh-n': count } as React.CSSProperties
return (
<div className={['cf-slot-reels-hero', paused ? 'is-paused' : '', className].filter(Boolean).join(' ')} style={rootStyle}>
<style>{CSS}</style>
<div className='srh-copy'>
<h1 className='srh-title'>
{headline}
{highlight ? (
<>
{' '}
<span className='srh-mark'>{highlight}</span>
</>
) : null}
</h1>
{lead ? <p className='srh-lead'>{lead}</p> : null}
{aside ? <p className='srh-aside'>{aside}</p> : null}
</div>
<div className='srh-stage'>
<div className='srh-stage-top'>
{reelsCaption ? <p className='srh-caption'>{fillProduct(reelsCaption, productName)}</p> : null}
<ul className='srh-reels' aria-label={fillProduct(text.reelsLabel, productName)}>
{reels.map((item, j) => {
const travel = 8 + j * 3
const dur = SPIN_BASE + j * SPIN_STEP
const style = {
'--travel': travel,
'--dur': `${dur}s`,
'--delay': `${SPIN_DELAY}s`,
'--at': `${SPIN_DELAY + dur - 0.05}s`,
} as React.CSSProperties
return (
<li className='srh-reel' key={`${item.name}-${j}`} style={style}>
<div className='srh-window'>
<div className='srh-strip'>
{Array.from({ length: travel + 3 }, (_, k) => {
const at = (j + k - 1 + count * 4) % count
return <ReelFace key={k} item={reels[at]} icon={at} live={k === 1} />
})}
</div>
</div>
</li>
)
})}
</ul>
</div>
<div className='srh-ticker-row'>
<div className='srh-ticker' aria-hidden='true'>
<div className='srh-view'>
<div className='srh-track'>
{[0, 1].map((group) => (
<span className='srh-group' key={group}>
{words.map((word, i) => (
<span className='srh-tick' key={`${word}-${i}`}>
<Sparkle className='srh-spark' aria-hidden='true' />
{word}
</span>
))}
</span>
))}
</div>
</div>
</div>
<button
type='button'
className='srh-pause'
aria-label={paused ? text.playLabel : text.pauseLabel}
onClick={() => setPaused((value) => !value)}
>
{paused ? <Play aria-hidden='true' /> : <Pause aria-hidden='true' />}
</button>
</div>
</div>
<div className='srh-offer'>
<p className='srh-price'>
{priceBefore ? <span className='srh-price-rest'>{priceBefore}</span> : null}
<span className='srh-price-fig'>{price}</span>
{priceAfter ? <span className='srh-price-rest'>{priceAfter}</span> : null}
</p>
{priceNote ? <p className='srh-price-note'>{priceNote}</p> : null}
{cta}
<ul className='srh-assure'>
{ctaNote ? (
<li>
<Lock aria-hidden='true' />
{ctaNote}
</li>
) : null}
{guarantee ? (
<li>
<ShieldCheck className='srh-ok' aria-hidden='true' />
{guarantee}
</li>
) : null}
</ul>
</div>
</div>
)
}
export default SlotReelsHero
/** Replaces every {product} placeholder with the product name. */
function fillProduct(template: string, productName: string) {
return template.split('{product}').join(productName)
}
function ReelFace({ item, icon, live }: { item: SlotReelsHeroItem; icon: number; live: boolean }) {
const Icon = FALLBACK_ICONS[icon % FALLBACK_ICONS.length]
return (
<div className='srh-cell' aria-hidden={live ? undefined : true}>
{item.image ? (
<img src={item.image} alt={live ? item.imageAlt ?? '' : ''} width={256} height={256} decoding='async' draggable={false} />
) : (
<Icon className='srh-icon' aria-hidden='true' strokeWidth={1.75} />
)}
{live ? <p className='srh-item'>{item.name}</p> : null}
</div>
)
}
// Theme notes: every colour is a token or an OKLCH recipe on a token. The marker falls back to a
// --warning-hued highlighter (the contract's highlighter base) when the theme sets no --marker; the
// -soft tint is too faint for a marker stroke, so this one status mix is deliberate.
// The marquee sparkle (--srh-lit) is a lit tone of --warning for the dark band. Shadows use --shadow.
// The marquee pause control is a small band button: its edge reads --button-2-border and its lift
// reads --button-2-shadow, each falling back to the band recipe it was designed with.
const CSS = `
.cf-slot-reels-hero{
--srh-shadow:var(--shadow,oklch(0.22 0.03 260));
--srh-marker:var(--marker,color-mix(in oklch,oklch(from var(--warning,oklch(0.5 0.1 85)) 0.9 0.15 h) 50%,var(--surface)));
--srh-lit:oklch(from var(--warning,oklch(0.5 0.1 85)) 0.9 0.15 h);
--srh-hair:oklch(from var(--ink) l c h / .1);
position:relative;width:100%;max-width:76rem;margin-inline:auto;
display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'copy' 'machine' 'offer';gap:1.75rem;
color:var(--ink);font-family:var(--font-body);
}
.cf-slot-reels-hero *,.cf-slot-reels-hero *::before,.cf-slot-reels-hero *::after{box-sizing:border-box}
.cf-slot-reels-hero p,.cf-slot-reels-hero h1{margin:0}
.cf-slot-reels-hero .srh-copy{grid-area:copy;min-width:0;text-align:center}
.cf-slot-reels-hero .srh-title{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(2.125rem,1.25rem + 3.1vw,3.75rem);line-height:1.04;color:var(--ink);text-wrap:balance}
.cf-slot-reels-hero .srh-mark{background-image:linear-gradient(var(--srh-marker),var(--srh-marker));background-repeat:no-repeat;background-size:100% .62em;background-position:0 86%;padding:0 .1em;margin:0 -.06em;border-radius:.16em .3em .22em .34em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-slot-reels-hero .srh-lead{margin:clamp(.9rem,.55rem + .9vw,1.25rem) auto 0;max-width:36rem;color:var(--muted);font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);font-weight:500;line-height:1.5;text-wrap:pretty}
.cf-slot-reels-hero .srh-aside{margin:.6rem auto 0;max-width:36rem;color:var(--muted);font-style:italic;font-size:1.0625rem;line-height:1.45;text-wrap:pretty}
.cf-slot-reels-hero .srh-stage{grid-area:machine;container-type:inline-size;position:relative;width:100%;max-width:36rem;margin-inline:auto;min-width:0;overflow:hidden;border-radius:calc(var(--card-radius,var(--radius,.75rem)) + .5rem);background:var(--card);border:1px solid var(--card-border,color-mix(in oklch,var(--ink) 12%,transparent));box-shadow:var(--card-shadow,var(--shadow-lg,0 1px 3px oklch(from var(--srh-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--srh-shadow) l c h / .32)))}
.cf-slot-reels-hero .srh-stage-top{padding:clamp(1rem,4cqi,1.75rem) clamp(.75rem,3.5cqi,1.5rem) clamp(.9rem,3.6cqi,1.5rem)}
.cf-slot-reels-hero .srh-caption{margin-bottom:clamp(.75rem,2.8cqi,1.15rem);text-align:center;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.0625rem,3.8cqi,1.375rem);letter-spacing:-.01em;line-height:1.2;color:var(--ink);text-wrap:balance}
.cf-slot-reels-hero .srh-reels{--srh-name-fs:clamp(.875rem,3cqi,1.125rem);--srh-img:clamp(3.75rem,18cqi,8rem);--srh-cell:calc(var(--srh-img) + 3 * 1.15 * var(--srh-name-fs) + 1.6rem);--srh-peek:clamp(.85rem,4.5cqi,2.25rem);list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--srh-n),minmax(0,1fr));gap:clamp(.4rem,1.8cqi,.8rem)}
.cf-slot-reels-hero .srh-reel{position:relative;min-width:0;height:calc(var(--srh-cell) + 2 * var(--srh-peek));border-radius:calc(var(--radius,.75rem) * .6 + .25rem);background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-slot-reels-hero .srh-reel::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--srh-hair);animation:srh-land .9s ease-out var(--at) both}
.cf-slot-reels-hero .srh-window{position:absolute;inset:0;overflow:hidden;border-radius:inherit;-webkit-mask-image:linear-gradient(180deg,transparent 0,currentColor var(--srh-peek),currentColor calc(100% - var(--srh-peek)),transparent 100%);mask-image:linear-gradient(180deg,transparent 0,currentColor var(--srh-peek),currentColor calc(100% - var(--srh-peek)),transparent 100%)}
.cf-slot-reels-hero .srh-strip{transform:translateY(calc(var(--srh-peek) - var(--srh-cell)));will-change:transform;animation:srh-spin var(--dur) cubic-bezier(.16,.72,.24,1.06) var(--delay) both,srh-blur var(--dur) ease-out var(--delay) both}
.cf-slot-reels-hero .srh-cell{height:var(--srh-cell);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;padding:.8rem .5rem;text-align:center}
.cf-slot-reels-hero .srh-cell img{display:block;width:100%;max-width:var(--srh-img);height:var(--srh-img);object-fit:contain;filter:drop-shadow(0 2px 2px oklch(from var(--srh-shadow) l c h / .28)) drop-shadow(0 6px 8px oklch(from var(--srh-shadow) l c h / .18));user-select:none}
.cf-slot-reels-hero .srh-icon{width:calc(var(--srh-img) * .72);height:calc(var(--srh-img) * .72);color:var(--accent);flex:none}
.cf-slot-reels-hero .srh-item{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--srh-name-fs);line-height:1.15;color:var(--ink);text-wrap:balance}
.cf-slot-reels-hero .srh-ticker-row{display:flex;align-items:center;gap:.5rem;padding:.5rem .55rem .5rem 0;background:var(--band);color:var(--band-ink)}
.cf-slot-reels-hero .srh-ticker{flex:1 1 auto;min-width:0;padding:.35rem 0}
.cf-slot-reels-hero .srh-view{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,currentColor 6%,currentColor 94%,transparent);mask-image:linear-gradient(90deg,transparent,currentColor 6%,currentColor 94%,transparent)}
.cf-slot-reels-hero .srh-track{display:flex;width:max-content;animation:srh-ticker 28s linear infinite}
.cf-slot-reels-hero .srh-ticker:hover .srh-track{animation-play-state:paused}
.cf-slot-reels-hero .srh-group{display:flex;flex:none;gap:1.4rem;padding-right:1.4rem}
.cf-slot-reels-hero .srh-tick{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:.875rem;letter-spacing:.06em;text-transform:uppercase;line-height:1.2;color:var(--band-ink)}
.cf-slot-reels-hero .srh-spark{width:.9em;height:.9em;flex:none;color:var(--srh-lit)}
.cf-slot-reels-hero .srh-pause{flex:none;display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;padding:0;border-radius:50%;border:1px solid var(--button-2-border,oklch(from var(--band-ink) l c h / .25));background:oklch(from var(--band) calc(l + 0.08) c h);color:var(--band-ink);cursor:pointer;box-shadow:var(--button-2-shadow,inset 0 1px 0 oklch(from var(--band) calc(l + 0.2) c h / .6),0 1px 2px oklch(from var(--srh-shadow) l c h / .45));transition:background .15s ease}
.cf-slot-reels-hero .srh-pause:hover{background:oklch(from var(--band) calc(l + 0.13) c h)}
.cf-slot-reels-hero .srh-pause:focus-visible{outline:3px solid var(--band-ink);outline-offset:2px}
.cf-slot-reels-hero .srh-pause svg{width:1.05rem;height:1.05rem}
.cf-slot-reels-hero .srh-offer{grid-area:offer;display:grid;justify-items:center;text-align:center;width:100%;max-width:28rem;margin-inline:auto;min-width:0}
.cf-slot-reels-hero .srh-price{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:.2rem .55rem;font-family:var(--font-display);font-weight:var(--display-weight,800);color:var(--ink);line-height:1.05}
.cf-slot-reels-hero .srh-price-fig{font-size:clamp(2.75rem,2.2rem + 2vw,3.75rem);letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1}
.cf-slot-reels-hero .srh-price-rest{font-size:clamp(1.25rem,1.1rem + .5vw,1.5rem);letter-spacing:-.01em}
.cf-slot-reels-hero .srh-price-note{margin-top:.8rem;color:var(--muted);font-size:1rem;font-weight:600;line-height:1.4}
.cf-slot-reels-hero .srh-cta{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:4.25rem;margin-top:1.25rem;padding:.9rem 1.5rem 1.1rem;border:1px solid oklch(from var(--button-bg,var(--cta)) calc(l - 0.12) c h);border-radius:var(--button-radius,var(--radius,.75rem));background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) 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.1875rem,1rem + .7vw,1.5rem);line-height:1.15;letter-spacing:-.01em;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / .75),inset 0 -4px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.14) c h),0 2px 3px oklch(from var(--srh-shadow) l c h / .35),0 10px 18px -8px oklch(from var(--srh-shadow) l c h / .55));cursor:pointer;transition:transform .14s ease,background .18s ease,box-shadow .18s ease;-webkit-tap-highlight-color:transparent}
.cf-slot-reels-hero .srh-cta::before{content:'';position:absolute;top:0;bottom:0;left:-40%;width:35%;z-index:-1;pointer-events:none;background:linear-gradient(100deg,transparent,oklch(from var(--button-bg,var(--cta)) calc(l + 0.2) c h / .55),transparent);transform:skewX(-18deg);animation:srh-shine 5.5s ease-in-out 2.6s infinite}
.cf-slot-reels-hero .srh-cta-label{position:relative;z-index:1}
.cf-slot-reels-hero .srh-cta:not(:disabled):hover,.cf-slot-reels-hero .srh-cta[data-state='hover']:not(:disabled){background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - 0.02) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.05) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.12) c h / .7),inset 0 -4px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.18) c h),0 3px 4px oklch(from var(--srh-shadow) l c h / .38),0 14px 22px -8px oklch(from var(--srh-shadow) l c h / .6)}
.cf-slot-reels-hero .srh-cta:not(:disabled):active,.cf-slot-reels-hero .srh-cta[data-state='active']:not(:disabled){background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - 0.08) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.08) c h));transform:translateY(2px);box-shadow:inset 0 2px 3px oklch(from var(--button-bg,var(--cta)) calc(l - 0.22) c h / .6),inset 0 -1px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.14) c h),0 1px 2px oklch(from var(--srh-shadow) l c h / .35)}
.cf-slot-reels-hero .srh-cta:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-slot-reels-hero .srh-cta:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));border-color:oklch(from var(--ink) l c h / .14);text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm));transform:none}
.cf-slot-reels-hero .srh-cta:disabled::before{display:none}
.cf-slot-reels-hero .srh-assure{list-style:none;margin:.9rem 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.1rem;color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.35}
.cf-slot-reels-hero .srh-assure li{display:inline-flex;align-items:center;gap:.4rem}
.cf-slot-reels-hero .srh-assure svg{width:1.05em;height:1.05em;flex:none}
.cf-slot-reels-hero .srh-assure .srh-ok{color:var(--success)}
.cf-slot-reels-hero.is-paused .srh-track,.cf-slot-reels-hero.is-paused .srh-cta::before{animation-play-state:paused}
@keyframes srh-spin{from{transform:translateY(calc(var(--srh-peek) - var(--srh-cell) * (1 + var(--travel))))}to{transform:translateY(calc(var(--srh-peek) - var(--srh-cell)))}}
@keyframes srh-blur{0%{filter:blur(2.5px)}75%{filter:blur(.6px)}100%{filter:none}}
@keyframes srh-land{0%{box-shadow:inset 0 0 0 1px var(--srh-hair)}25%{box-shadow:inset 0 0 0 3px var(--accent-fill,var(--accent))}100%{box-shadow:inset 0 0 0 1px var(--srh-hair)}}
@keyframes srh-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes srh-shine{0%{translate:0 0}18%,100%{translate:420% 0}}
@media (min-width:60rem){
.cf-slot-reels-hero{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:'machine copy' 'machine offer';grid-template-rows:auto 1fr;column-gap:clamp(2rem,4vw,3.75rem);row-gap:1.75rem;align-items:start}
.cf-slot-reels-hero .srh-copy,.cf-slot-reels-hero .srh-offer{text-align:left;justify-items:start;margin-inline:0}
.cf-slot-reels-hero .srh-lead,.cf-slot-reels-hero .srh-aside{margin-inline:0}
.cf-slot-reels-hero .srh-price,.cf-slot-reels-hero .srh-assure{justify-content:flex-start}
.cf-slot-reels-hero .srh-stage{max-width:none;margin-inline:0}
}
@media (prefers-reduced-motion:reduce){
.cf-slot-reels-hero .srh-strip,.cf-slot-reels-hero .srh-reel::after,.cf-slot-reels-hero .srh-track,.cf-slot-reels-hero .srh-cta::before{animation:none}
.cf-slot-reels-hero .srh-strip{filter:none}
.cf-slot-reels-hero .srh-cta,.cf-slot-reels-hero .srh-pause{transition:none}
.cf-slot-reels-hero .srh-cta:not(:disabled):hover,.cf-slot-reels-hero .srh-cta[data-state='hover']:not(:disabled){transform:none}
.cf-slot-reels-hero .srh-pause{display:none}
.cf-slot-reels-hero .srh-ticker-row{padding-right:0}
.cf-slot-reels-hero .srh-view{-webkit-mask-image:none;mask-image:none}
.cf-slot-reels-hero .srh-track{width:auto}
.cf-slot-reels-hero .srh-group{flex:1 1 auto;flex-wrap:wrap;justify-content:center;gap:.35rem 1.1rem;padding:0 .75rem}
.cf-slot-reels-hero .srh-group + .srh-group{display:none}
.cf-slot-reels-hero .srh-tick{white-space:normal}
}
@media (forced-colors:active){
.cf-slot-reels-hero .srh-cta{border:2px solid ButtonText;forced-color-adjust:none;background:ButtonFace;color:ButtonText;box-shadow:none}
.cf-slot-reels-hero .srh-stage{border-color:CanvasText}
.cf-slot-reels-hero .srh-reel::after{box-shadow:inset 0 0 0 1px CanvasText}
.cf-slot-reels-hero .srh-mark{forced-color-adjust:none}
}
`
pieces/attention/slot-reels-hero/specimen.tsx 35 lines
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import SlotReelsHero from '../slot-reels-hero'
export const states = ['default', 'hover', 'active', 'disabled']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled'
export default function SlotReelsHeroSpecimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample
const marked = 'a clear plan'
const hasMark = sample.headline.endsWith(marked)
const headline = hasMark ? sample.headline.slice(0, -marked.length).trim() : sample.headline
const items = sample.items.map((item, index) => ({
name: item.name,
image: slot(`item-${index + 1}`, item.image),
imageAlt: item.imageAlt,
}))
return (
<SlotReelsHero
headline={headline}
highlight={hasMark ? marked : undefined}
lead={sample.lead}
items={items}
productName={sample.name}
price={sample.price}
priceNote={sample.note}
ctaNote={sample.sublabel}
guarantee={sample.guarantee}
state={state}
onAction={(event) => event.preventDefault()}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalSlotReelsHero |
React.ReactNode |
Default 'Build your first funnel with'
|
highlight OptionalSlotReelsHero |
string |
Default 'a clear plan'
|
lead OptionalSlotReelsHero |
React.ReactNode |
Default 'Plan your funnel, write your page copy, and check every step before you launch.'
|
aside OptionalSlotReelsHero |
React.ReactNode |
Default '(No luck needed. Every reel lands on something you keep.)'
|
caption OptionalSlotReelsHero |
string |
|
jackpotCaption OptionalSlotReelsHero |
string |
|
items OptionalSlotReelsHero |
SlotReelsHeroItem[] |
Default DEFAULT_ITEMS
|
productName OptionalSlotReelsHero |
string |
Default 'The Funnel Starter Kit'
|
price OptionalSlotReelsHero |
string |
Default '$47'
|
priceLine OptionalSlotReelsHero |
string |
Default '{price} today. That’s it.'
|
priceNote OptionalSlotReelsHero |
string |
Default 'One payment · Lifetime access'
|
ctaLabel OptionalSlotReelsHero |
string |
Default 'Start planning my funnel'
|
ctaNote OptionalSlotReelsHero |
string |
Default 'Secure checkout · Instant download'
|
guarantee OptionalSlotReelsHero |
string |
Default '30-day money-back guarantee'
|
ticker OptionalSlotReelsHero |
string[] |
|
copy OptionalSlotReelsHero |
Partial<SlotReelsHeroCopy> |
|
href OptionalSlotReelsHero |
string |
|
onAction OptionalSlotReelsHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalSlotReelsHero |
boolean |
Default false
|
state OptionalSlotReelsHero |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
className OptionalSlotReelsHero |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
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