Loop Offer Hero 1
Loop offer hero: a rounded, framed video stage sells the outcome on the left while a floating offer sheet ticks off what's included, prices it in a starburst and repeats the one buy button.
Use it in a prompt
Use hero/loop-offer-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/hero/loop-offer-hero.tsx. - Import it and pass your copy and images (Props tab):
import { LoopOfferHero } from "@/components/funneldna/hero/loop-offer-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/loop-offer-hero/component.tsx 321 lines
// layout: clipboard-checklist
// Loop offer hero: a rounded, framed video stage sells the outcome on the left while a floating offer sheet ticks off what's included, prices it in a starburst and repeats the one buy button.
import * as React from 'react';
import { Check, Lock } from 'lucide-react';
import { BackdropVideo, Spot, FX_HOST } from '../fx/fx';
import sweepLoop from '../fx/loops/sweep';
import book from '../fx/spots/book';
import play from '../fx/spots/play';
import gift from '../fx/spots/gift';
import shield from '../fx/spots/shield';
export type LoopOfferHeroItem = {
name: string;
detail?: string;
/** Spot illustration that leads the row: a default import from ../fx/spots/<name> (defaults: book, play, gift) */
spot?: string;
};
export type LoopOfferHeroProps = {
eyebrow?: string;
headline?: string;
/** Phrase inside the headline that gets the marker stroke */
highlight?: string;
subhead?: string;
/** The question the button answers, shown above the hero button */
question?: string;
/** Button label, used on both buttons (one action) */
label?: string;
/** One short line under the hero button */
reassurance?: string;
productName?: string;
/** product slot image, shown at the top of the offer card */
productImage?: string;
productImageAlt?: string;
items?: LoopOfferHeroItem[];
/** Accessible name of the checklist; {product} is replaced with productName */
itemsLabel?: string;
/** Screen-reader text for each tick */
includedLabel?: string;
/** Today's price; empty hides the starburst, the note and the price in the reasons title */
price?: string;
/** Small word above the price inside the starburst */
priceLabel?: string;
/** Line under the card button, shown only with a price */
priceNote?: string;
/** stamp slot: a transparent starburst cut-out used as the sticker's shape */
starburstImage?: string;
/** Guarantee line with a shield Spot; empty hides it */
guarantee?: string;
/** Numbered reasons under the hero action; empty hides the list */
reasons?: string[];
/** Reasons title when a price is set; {price} is replaced with the price */
reasonsTitle?: string;
/** Reasons title when no price is set */
reasonsTitleNoPrice?: string;
href?: string;
onAction?: () => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_SPOTS = [book, play, gift];
const DEFAULT_ITEMS: LoopOfferHeroItem[] = [
{ 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.' },
];
export function LoopOfferHero({
eyebrow = '',
headline = 'Build your first funnel with a clear plan',
highlight = 'a clear plan',
subhead = 'Plan your funnel, write your page copy, and check every step before you launch.',
question = 'Ready to map your first funnel?',
label = 'I’m ready, show me how',
reassurance = 'Secure checkout · Instant download',
productName = 'The Funnel Starter Kit',
productImage,
productImageAlt = '',
items = DEFAULT_ITEMS,
itemsLabel = 'What’s included in {product}',
includedLabel = 'Included',
price = '',
priceLabel = 'Today',
priceNote = '',
starburstImage,
guarantee = '',
reasons = [],
reasonsTitle = 'Three reasons this is {price} today',
reasonsTitleNoPrice = 'Three reasons to start today',
href,
onAction,
state = 'default',
className,
}: LoopOfferHeroProps) {
const titleId = React.useId();
const disabled = state === 'disabled';
const hasPrice = price.trim() !== '';
const hasImage = Boolean(productImage);
const titleText = hasPrice ? reasonsTitle.replace('{price}', price) : reasonsTitleNoPrice;
const burst = hasPrice ? <PriceBurst price={price} label={priceLabel} image={starburstImage} /> : null;
const cardClass = ['lo-card', 'lo-r', hasImage ? '' : 'no-media', burst ? 'has-burst' : ''].filter(Boolean).join(' ');
return (
<section className={['cf-loop-offer-hero', className].filter(Boolean).join(' ')} data-state={state}>
<style>{CSS}</style>
<div className='lo-stage' style={{ ...FX_HOST }}>
<BackdropVideo video={sweepLoop} treatment='duotone' tone='band' side='left' position='center' control='top-right' />
<div className='lo-wrap'>
<div className='lo-copy'>
{eyebrow ? (
<p className='lo-eyebrow lo-r' style={{ '--i': 0 } as React.CSSProperties}>{eyebrow}</p>
) : null}
<h1 className='lo-h1 lo-r' style={{ '--i': 1 } as React.CSSProperties}>{markPhrase(headline, highlight)}</h1>
{subhead ? (
<p className='lo-lead lo-r' style={{ '--i': 2 } as React.CSSProperties}>{subhead}</p>
) : null}
<div className='lo-act lo-r' style={{ '--i': 3 } as React.CSSProperties}>
{question ? <p className='lo-q'>{question}</p> : null}
<Cta label={label} href={href} onAction={onAction} disabled={disabled} />
{reassurance ? (
<p className='lo-assure'>
<Lock className='lo-ico' size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
</div>
</div>
<div className={cardClass} style={{ '--i': 2 } as React.CSSProperties} aria-labelledby={titleId} role='group'>
{hasImage ? (
<div className='lo-media'>
<img className='lo-img' src={productImage} alt={productImageAlt} width={640} height={360} decoding='async' />
{burst}
</div>
) : (
burst
)}
<h2 className='lo-title' id={titleId}>{productName}</h2>
{items.length ? (
<ul className='lo-list' aria-label={itemsLabel.replace('{product}', productName)}>
{items.map((it, i) => (
<li className='lo-item' key={it.name + i}>
<span className='lo-spot' aria-hidden='true'>
<Spot src={it.spot ?? DEFAULT_SPOTS[i % DEFAULT_SPOTS.length]} size={44} />
</span>
<span className='lo-itext'>
<span className='lo-iname'>{it.name}</span>
{it.detail ? <span className='lo-idetail'>{it.detail}</span> : null}
</span>
<span className='lo-tick'>
<Check size={16} strokeWidth={3} aria-hidden='true' />
<span className='lo-sr'>{includedLabel}</span>
</span>
</li>
))}
</ul>
) : null}
<Cta label={label} href={href} onAction={onAction} disabled={disabled} />
{hasPrice && priceNote ? <p className='lo-note'>{priceNote}</p> : null}
{guarantee ? (
<p className='lo-guar'>
<span className='lo-gspot' aria-hidden='true'>
<Spot src={shield} size={36} />
</span>
<span>{guarantee}</span>
</p>
) : null}
</div>
{reasons.length ? (
<div className='lo-reasons lo-r' style={{ '--i': 4 } as React.CSSProperties}>
<p className='lo-rt'>{titleText}</p>
<ol className='lo-rl'>
{reasons.map((r, i) => (
<li key={r + i}>
<span className='lo-rn' aria-hidden='true'>{i + 1}</span>
<span>{r}</span>
</li>
))}
</ol>
</div>
) : null}
</div>
</div>
</section>
);
}
export default LoopOfferHero;
function markPhrase(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
// Short phrases stay on one line so the marker reads as one continuous stroke, never split chips
const cls = phrase.length <= 18 ? 'lo-mark is-whole' : 'lo-mark';
return (
<>
{text.slice(0, at)}
<span className={cls}>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
function Cta({ label, href, onAction, disabled }: { label: string; href?: string; onAction?: () => void; disabled: boolean }) {
if (href && !disabled) {
return (
<a className='lo-cta' href={href} onClick={onAction ? () => onAction() : undefined}>
{label}
</a>
);
}
return (
<button type='button' className='lo-cta' disabled={disabled} onClick={onAction ? () => onAction() : undefined}>
{label}
</button>
);
}
function PriceBurst({ price, label, image }: { price: string; label: string; image?: string }) {
const cls = ['lo-burst', image ? '' : 'is-tag', price.length > 4 ? 'is-long' : ''].filter(Boolean).join(' ');
const mask = image ? ({ WebkitMaskImage: `url('${image}')`, maskImage: `url('${image}')` } as React.CSSProperties) : undefined;
return (
<div className={cls}>
<span className='lo-burst-shape' aria-hidden='true' style={mask} />
<span className='lo-burst-text'>
{label ? <span className='lo-burst-label'>{label}</span> : null}
<span className='lo-burst-price'>{price}</span>
</span>
</div>
);
}
const CSS = `
.cf-loop-offer-hero{position:relative;background:var(--surface);color:var(--band-ink);font-family:var(--font-body);padding:clamp(8px,1.5vw,20px);--lo-sh:var(--shadow,oklch(0.22 0.03 260));--lo-stage-r:min(calc(var(--card-radius,var(--radius,14px)) * 2),32px)}
.cf-loop-offer-hero *,.cf-loop-offer-hero *::before,.cf-loop-offer-hero *::after{box-sizing:border-box}
.cf-loop-offer-hero .lo-stage{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;width:100%;max-width:1680px;min-height:min(88svh,880px);margin:0 auto;background:var(--band);color:var(--band-ink);border:1px solid oklch(from var(--band) calc(l - 0.06) c h);border-radius:var(--lo-stage-r);box-shadow:var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / 0.22),0 12px 24px -8px oklch(0.22 0.03 260 / 0.32));transform:translateZ(0)}
.cf-loop-offer-hero .lo-stage::after{content:'';position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / 0.12),inset 0 1px 0 oklch(from var(--band-ink) l c h / 0.16)}
.cf-loop-offer-hero .lo-wrap{position:relative;z-index:1;pointer-events:none;width:100%;max-width:calc(1120px + 2 * clamp(16px,5vw,48px));margin:0 auto;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);grid-template-areas:'copy card' 'reasons card';grid-template-rows:auto 1fr;column-gap:clamp(32px,5vw,72px);row-gap:40px;align-items:start}
.cf-loop-offer-hero .lo-copy,.cf-loop-offer-hero .lo-card,.cf-loop-offer-hero .lo-reasons{pointer-events:auto}
.cf-loop-offer-hero .lo-copy{grid-area:copy;min-width:0;--lo-ring:var(--band-ink)}
.cf-loop-offer-hero .lo-eyebrow{margin:0 0 16px;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--band-ink)}
.cf-loop-offer-hero .lo-h1{margin:0 0 22px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;text-wrap:balance;color:var(--band-ink)}
.cf-loop-offer-hero .lo-mark{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));padding:0 .12em .04em;margin:0 -.02em;border-radius:.1em .26em .14em .22em / .2em .12em .24em .14em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-loop-offer-hero .lo-mark.is-whole{white-space:nowrap;display:inline-block;line-height:1.04;padding:.02em .12em .06em}
.cf-loop-offer-hero .lo-lead{margin:0 0 28px;max-width:36rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
.cf-loop-offer-hero .lo-act{max-width:26rem}
.cf-loop-offer-hero .lo-q{margin:0 0 12px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.3;text-wrap:balance;color:var(--band-ink)}
.cf-loop-offer-hero .lo-copy .lo-cta{display:flex;width:100%;min-width:0}
.cf-loop-offer-hero .lo-assure{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty;color:var(--band-ink)}
.cf-loop-offer-hero .lo-ico{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-loop-offer-hero .lo-cta{--b:var(--button-bg,var(--cta));--b2:var(--button-bg-2,var(--cta-2));display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:72px;min-width:min(100%,340px);max-width:100%;padding:0 32px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--b) calc(l + 0.04) c h),oklch(from var(--b2) calc(l - 0.02) c h));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.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-wrap:balance;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--lo-sh) l c h / 0.35),0 8px 16px -6px oklch(from var(--lo-sh) l c h / 0.5));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
.cf-loop-offer-hero .lo-cta:hover:not(:disabled),.cf-loop-offer-hero[data-state='hover'] .lo-cta:not(:disabled){background:linear-gradient(oklch(from var(--b) calc(l - 0.01) c h),oklch(from var(--b2) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + 0.12) c h / 0.7),inset 0 -3px 0 oklch(from var(--b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--lo-sh) l c h / 0.4),0 12px 20px -6px oklch(from var(--lo-sh) l c h / 0.55))}
.cf-loop-offer-hero .lo-cta:active:not(:disabled),.cf-loop-offer-hero[data-state='active'] .lo-cta:not(:disabled){background:linear-gradient(oklch(from var(--b) calc(l - 0.05) c h),oklch(from var(--b2) calc(l - 0.08) c h));transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--b) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--b) calc(l - 0.16) c h),0 1px 1px oklch(from var(--lo-sh) l c h / 0.35)}
.cf-loop-offer-hero .lo-cta:focus-visible{outline:3px solid var(--lo-ring);outline-offset:3px}
.cf-loop-offer-hero .lo-cta:disabled{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;cursor:not-allowed;transform:none;box-shadow:var(--button-2-shadow,var(--shadow-sm))}
.cf-loop-offer-hero .lo-card{grid-area:card;position:relative;min-width:0;background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch,var(--accent) 28%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / 0.22),0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));padding:clamp(20px,3vw,28px);--lo-ring:var(--field-focus,var(--accent))}
.cf-loop-offer-hero .lo-media{position:relative;margin:0 0 20px}
.cf-loop-offer-hero .lo-img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;border-radius:12px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-loop-offer-hero .lo-title{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--ink)}
.cf-loop-offer-hero .lo-card.no-media.has-burst .lo-title{padding-right:120px}
.cf-loop-offer-hero .lo-list{list-style:none;margin:12px 0 20px;padding:0}
.cf-loop-offer-hero .lo-item{display:grid;grid-template-columns:44px minmax(0,1fr) 24px;gap:16px;align-items:start;padding:12px 0}
.cf-loop-offer-hero .lo-item + .lo-item{border-top:1px solid oklch(from var(--ink) l c h / 0.1)}
.cf-loop-offer-hero .lo-spot{display:block;width:44px;height:44px}
.cf-loop-offer-hero .lo-itext{min-width:0;padding-top:2px}
.cf-loop-offer-hero .lo-iname{display:block;font-size:1.0625rem;line-height:1.3;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-loop-offer-hero .lo-idetail{display:block;margin-top:4px;font-size:.9375rem;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-loop-offer-hero .lo-tick{display:grid;place-items:center;width:24px;height:24px;margin-top:10px;border-radius:999px;background:var(--success);color:var(--success-ink,#fff)}
.cf-loop-offer-hero .lo-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.cf-loop-offer-hero .lo-card .lo-cta{width:100%;min-width:0;min-height:64px;padding:0 24px}
.cf-loop-offer-hero .lo-note{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-loop-offer-hero .lo-guar{display:flex;align-items:center;gap:12px;margin:16px 0 0;padding:12px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));font-size:.9375rem;line-height:1.35;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-loop-offer-hero .lo-gspot{flex:0 0 36px;display:block;width:36px;height:36px}
.cf-loop-offer-hero .lo-burst{--rot:-8deg;position:absolute;z-index:2;top:-30px;right:-24px;width:144px;height:144px;display:grid;place-items:center;transform:rotate(var(--rot));filter:drop-shadow(0 2px 2px oklch(from var(--lo-sh) l c h / 0.35)) drop-shadow(0 8px 10px oklch(from var(--lo-sh) l c h / 0.25));pointer-events:none;animation:lo-pop .3s cubic-bezier(.2,.7,.2,1) .28s both}
.cf-loop-offer-hero .lo-card > .lo-burst{top:-34px;right:-18px}
.cf-loop-offer-hero .lo-burst-shape{position:absolute;inset:0;background:linear-gradient(160deg,oklch(from var(--accent-fill,var(--accent)) calc(l + 0.03) c h),oklch(from var(--accent-fill,var(--accent)) calc(l - 0.03) c h));-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.cf-loop-offer-hero .lo-burst-text{position:relative;display:grid;justify-items:center;gap:12px;text-align:center;color:var(--accent-fill-ink,var(--card))}
.cf-loop-offer-hero .lo-burst-label{font-size:.875rem;line-height:1.1;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.cf-loop-offer-hero .lo-burst-price{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:2.5rem;line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-loop-offer-hero .lo-burst.is-long .lo-burst-price{font-size:1.625rem}
.cf-loop-offer-hero .lo-burst.is-tag{--rot:-4deg;width:auto;height:auto;padding:10px 16px}
.cf-loop-offer-hero .lo-burst.is-tag .lo-burst-shape{border-radius:999px}
.cf-loop-offer-hero .lo-burst.is-tag .lo-burst-text{grid-auto-flow:column;align-items:baseline;gap:8px}
.cf-loop-offer-hero .lo-burst.is-tag .lo-burst-price{font-size:1.625rem}
.cf-loop-offer-hero .lo-reasons{grid-area:reasons;min-width:0;align-self:start}
.cf-loop-offer-hero .lo-rt{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.25;text-wrap:balance;color:var(--band-ink)}
.cf-loop-offer-hero .lo-rl{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:40rem}
.cf-loop-offer-hero .lo-rl li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:baseline;font-size:1.0625rem;line-height:1.45;font-weight:500;color:var(--band-ink);text-wrap:pretty}
.cf-loop-offer-hero .lo-rn{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:1.625rem;line-height:1;font-variant-numeric:tabular-nums;color:var(--band-ink)}
@keyframes lo-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes lo-pop{from{transform:rotate(var(--rot)) scale(.9)}to{transform:rotate(var(--rot)) scale(1)}}
.cf-loop-offer-hero .lo-r{animation:lo-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * .07s)}
@media (max-width:960px){
.cf-loop-offer-hero .lo-wrap{grid-template-columns:minmax(0,1fr);grid-template-areas:'copy' 'card' 'reasons';grid-template-rows:auto;row-gap:40px}
.cf-loop-offer-hero .lo-card{width:100%;max-width:560px}
}
@media (max-width:640px){
.cf-loop-offer-hero{--lo-stage-r:min(calc(var(--card-radius,var(--radius,14px)) * 1.5),20px)}
.cf-loop-offer-hero .lo-wrap{row-gap:32px;padding-left:16px;padding-right:16px}
.cf-loop-offer-hero .lo-h1{margin-bottom:16px}
.cf-loop-offer-hero .lo-lead{margin-bottom:24px}
.cf-loop-offer-hero .lo-act{max-width:none}
.cf-loop-offer-hero .lo-copy .lo-cta{padding:0 20px}
.cf-loop-offer-hero .lo-card .lo-cta{padding:0 16px}
.cf-loop-offer-hero .lo-burst{width:124px;height:124px;top:-20px;right:-10px}
.cf-loop-offer-hero .lo-card > .lo-burst{top:-30px;right:-6px}
.cf-loop-offer-hero .lo-card.no-media.has-burst .lo-title{padding-right:112px}
.cf-loop-offer-hero .lo-burst-price{font-size:2rem}
.cf-loop-offer-hero .lo-burst.is-long .lo-burst-price{font-size:1.5rem}
.cf-loop-offer-hero .lo-item{grid-template-columns:40px minmax(0,1fr) 24px;gap:12px}
.cf-loop-offer-hero .lo-spot{width:40px;height:40px}
}
@media (prefers-reduced-motion:reduce){
.cf-loop-offer-hero .lo-r,.cf-loop-offer-hero .lo-burst{animation:none}
.cf-loop-offer-hero .lo-cta{transition:none}
}
`;
pieces/hero/loop-offer-hero/specimen.tsx 40 lines
import __studioImage66848ded from "../assets/cbced4835536bf0a.webp";
import __studioImage007c5c71 from "../assets/30d6f3ea40c433e6.webp";
import { LoopOfferHero, type LoopOfferHeroProps } from '../loop-offer-hero';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
import book from '../../fx/spots/book';
import play from '../../fx/spots/play';
import gift from '../../fx/spots/gift';
export const states = ['default', 'hover', 'active', 'disabled'];
const sample = defaults.sample;
const SPOTS = [book, play, gift];
export default function LoopOfferHeroSpecimen({ state = 'default' }: { state?: LoopOfferHeroProps['state'] }) {
return (
<LoopOfferHero
state={state}
headline={sample.headline}
highlight='a clear plan'
subhead={sample.lead}
question='Ready to map your first funnel?'
label='I’m ready, show me how'
reassurance={sample.sublabel}
productName={sample.name}
productImage={slot('product', __studioImage66848ded)}
productImageAlt='The Funnel Starter Kit: planning guide, copy workbook and launch checklist'
items={sample.items.map((it, i) => ({ name: it.name, detail: it.detail, spot: SPOTS[i % SPOTS.length] }))}
price={sample.price}
priceNote={sample.note}
starburstImage={slot('stamp', __studioImage007c5c71)}
guarantee={sample.guarantee}
reasons={[
'You map the whole funnel in one sitting, not one month.',
'Your page copy starts from prompts, never a blank page.',
'You launch with a checklist, so no link or form gets missed.',
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
eyebrow OptionalLoopOfferHero |
string |
Default ''
|
headline OptionalLoopOfferHero |
string |
Default 'Build your first funnel with a clear plan'
|
highlight OptionalLoopOfferHero |
string |
Default 'a clear plan'
|
subhead OptionalLoopOfferHero |
string |
Default 'Plan your funnel, write your page copy, and check every step before you launch.'
|
question OptionalLoopOfferHero |
string |
Default 'Ready to map your first funnel?'
|
label OptionalLoopOfferHero |
string |
Default 'I’m ready, show me how'
|
reassurance OptionalLoopOfferHero |
string |
Default 'Secure checkout · Instant download'
|
productName OptionalLoopOfferHero |
string |
Default 'The Funnel Starter Kit'
|
productImage OptionalLoopOfferHero |
string |
|
productImageAlt OptionalLoopOfferHero |
string |
Default ''
|
items OptionalLoopOfferHero |
LoopOfferHeroItem[] |
Default DEFAULT_ITEMS
|
itemsLabel OptionalLoopOfferHero |
string |
Default 'What’s included in {product}'
|
includedLabel OptionalLoopOfferHero |
string |
Default 'Included'
|
price OptionalLoopOfferHero |
string |
Default ''
|
priceLabel OptionalLoopOfferHero |
string |
Default 'Today'
|
priceNote OptionalLoopOfferHero |
string |
Default ''
|
starburstImage OptionalLoopOfferHero |
string |
|
guarantee OptionalLoopOfferHero |
string |
Default ''
|
reasons OptionalLoopOfferHero |
string[] |
Default []
|
reasonsTitle OptionalLoopOfferHero |
string |
Default 'Three reasons this is {price} today'
|
reasonsTitleNoPrice OptionalLoopOfferHero |
string |
Default 'Three reasons to start today'
|
href OptionalLoopOfferHero |
string |
|
onAction OptionalLoopOfferHero |
() => void |
|
state OptionalLoopOfferHero |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
className OptionalLoopOfferHero |
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-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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
stamp- A stamp or badge graphic, on a transparent background.
-
30d6f3ea40c433e6.webp
image/webp · 57.3 KB
- 3f53d2ed889fcb35.mp4 video/mp4 · 188 KB
-
4b8007624c8cad38.webp
image/webp · 12.9 KB
-
63571cb07acc4626.webp
image/webp · 17.3 KB
- 77f5156a8b9c01c4.webm video/webm · 113 KB
-
7d6f1c81c93d8f71.webp
image/webp · 18.2 KB
-
839cc020060f63a3.webp
image/webp · 9.49 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
bc3d360c88eeac0e.webp
image/webp · 23.9 KB
-
cbced4835536bf0a.webp
image/webp · 88.2 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB