New Opportunity 7
Turns a scattered pile of resources into one complete offer and a clear action.
Use it in a prompt
Use content/new-opportunity-7 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/new-opportunity-7.tsx. - Import it and pass your copy and images (Props tab):
import { NewOpportunity7 } from "@/components/funneldna/content/new-opportunity-7"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/new-opportunity-7/component.tsx 348 lines
// Turns a scattered pile of resources into one complete offer and a clear action.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Download, Loader2, ShieldCheck, X } from 'lucide-react'
export type NewOpportunity7Props = {
/** Retained for compatibility; the introductory header has been removed. */
preheadline?: string
headline?: string
emphasis?: string
oldLabel?: string
oldTitle?: string
oldText?: string
oldNotes?: (string | { text: string })[]
/** Legacy alias for sceneImage. */
oldImage?: string
sceneImage?: string
/** Legacy alias for sceneImageAlt. */
oldImageAlt?: string
sceneImageAlt?: string
newLabel?: string
newTitle?: string
newText?: string
items?: NewOpportunity7Item[]
/** Retained for compatibility; the stamp graphic is no longer rendered. */
stampImage?: string
/** Retained for compatibility; the stamp graphic is no longer rendered. */
stampAlt?: string
offerTitle?: string
offerNote?: string
todayLabel?: string
price?: string
/** Struck total value; nothing renders when omitted. */
regularPrice?: string
regularLabel?: string
ctaLabel?: string
/** Navigation destination; the button renders as a link when set. */
href?: string
/** Legacy alias for href. */
ctaHref?: string
loadingLabel?: string
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successLabel?: string
reassurance?: (string | { text: string })[]
/** @deprecated No longer rendered: the builder wires what happens after the click. */
successMessage?: string
errorMessage?: string
/** Called on click. A returned promise shows the loading label; a rejection shows errorMessage. */
onAction?: () => void | Promise<void>
/** "success" is accepted for older callers and renders as default. */
state?: NewOpportunity7State
id?: string
className?: string
}
export function NewOpportunity7({
oldLabel = 'The old way',
oldTitle = 'A pile of disconnected pieces.',
oldText = 'A template from here, a swipe file from there, a page you liked. None of it was made for your offer, so you’re left guessing what goes where.',
oldNotes: suppliedOldNotes = DEFAULT_NOTES,
oldImage,
sceneImage = oldImage,
oldImageAlt,
sceneImageAlt = oldImageAlt === undefined ? '' : oldImageAlt,
newLabel = 'Your new vehicle',
newTitle = 'One kit. A clear path to launch.',
newText = 'Plan your funnel, write your page copy, and check every step before you launch.',
items = DEFAULT_ITEMS,
offerTitle = 'Build your first funnel with The Funnel Starter Kit',
offerNote,
todayLabel = 'Get the complete kit for',
price = '$47',
regularPrice,
regularLabel = 'Total value',
ctaLabel = 'Yes! Give Me Access',
href: hrefProp,
ctaHref,
loadingLabel = 'Preparing your kit…',
reassurance: suppliedReassurance = [],
errorMessage = 'We couldn’t complete that. Please try again.',
onAction,
state = 'default',
id,
className,
}: NewOpportunity7Props) {
const reassurance = suppliedReassurance.map((entry) => typeof entry === 'string' ? entry : entry.text)
const oldNotes = suppliedOldNotes.map((entry) => typeof entry === 'string' ? entry : entry.text)
const uid = React.useId()
const alive = React.useRef(true)
const busy = React.useRef(false)
const [run, setRun] = React.useState<'idle' | 'loading' | 'error'>('idle')
const href = hrefProp ?? ctaHref
React.useEffect(() => {
alive.current = true
return () => { alive.current = false }
}, [])
React.useEffect(() => { setRun('idle') }, [state])
const view = run !== 'idle' ? run : state === 'error' ? 'error' : 'idle'
const disabled = state === 'disabled'
const locked = disabled || view === 'loading'
const prints = items.filter((item) => Boolean((item.itemImage === undefined ? item.image : item.itemImage))).slice(0, 3)
async function handleAction(event: React.MouseEvent<HTMLElement>) {
if (locked || busy.current) {
event.preventDefault()
return
}
if (!onAction) return
try {
const result = onAction()
if (!result) return
busy.current = true
setRun('loading')
await result
if (alive.current) setRun('idle')
} catch {
if (alive.current) setRun('error')
} finally {
busy.current = false
}
}
const notes = oldNotes.slice(0, 3).map((note, index) => (
<span key={`${note}-${index}`} className='no7-note'>{note}</span>
))
const buttonClass = [
'no7-btn',
!locked && state === 'hover' ? 'is-hover' : '',
!locked && state === 'active' ? 'is-active' : '',
view === 'loading' ? 'is-loading' : '',
].filter(Boolean).join(' ')
const buttonContent = (
<>
{view === 'loading' ? <Loader2 className='no7-spin' aria-hidden='true' /> : null}
<span>{view === 'loading' ? loadingLabel : ctaLabel}</span>
</>
)
return (
<section id={id} className={['cf-new-opportunity-7 no7', className].filter(Boolean).join(' ')} aria-labelledby={`${uid}-new`}>
<style>{CSS}</style>
<div className='no7-shell'>
<div className='no7-stage'>
<div className='no7-side no7-old'>
{sceneImage ? (
<div className='no7-ofig'>
<img src={sceneImage} alt={sceneImageAlt} width={960} height={600} loading='lazy' decoding='async' />
{notes.length > 0 && <div className='no7-notes'>{notes}</div>}
</div>
) : notes.length > 0 ? <div className='no7-notes-alone'>{notes}</div> : null}
<p className='no7-tag no7-tag-old'><X aria-hidden='true' />{oldLabel}</p>
<h2 className='no7-title'>{oldTitle}</h2>
<p className='no7-copy'>{oldText}</p>
</div>
<div className='no7-side no7-new'>
{prints.length > 0 && (
<div className='no7-nfig' data-count={prints.length}>
{prints.map((item, index) => (
<figure key={`${item.name}-${index}`} className={`no7-print no7-p${index}`}>
<img src={(item.itemImage === undefined ? item.image : item.itemImage)} alt={item.imageAlt ?? item.name} width={360} height={360} loading='lazy' decoding='async' />
</figure>
))}
</div>
)}
<p className='no7-tag no7-tag-new'><Check aria-hidden='true' />{newLabel}</p>
<h2 id={`${uid}-new`} className='no7-title'>{newTitle}</h2>
<p className='no7-copy'>{newText}</p>
{items.length > 0 && (
<ul className='no7-ledger'>
{items.map((item, index) => (
<li key={`${item.name}-${index}`}>
<span className='no7-check' aria-hidden='true'><Check /></span>
<span className='no7-name'>{item.name}</span>
{item.value && <span className='no7-value'>{item.value}</span>}
</li>
))}
</ul>
)}
</div>
</div>
<div className='no7-offer'>
<div>
<p className='no7-offer-title'>{offerTitle}</p>
{offerNote && <p className='no7-offer-note'>{offerNote}</p>}
</div>
<div className='no7-price'>
{todayLabel && <p className='no7-price-label'>{todayLabel}</p>}
<p className='no7-price-number'>{price}</p>
{regularPrice && <p className='no7-price-regular'>{regularLabel} <s>{regularPrice}</s></p>}
</div>
<div className='no7-act'>
{href && !disabled ? (
<a href={href} className={buttonClass} onClick={handleAction} aria-disabled={locked || undefined} aria-busy={view === 'loading' || undefined} aria-describedby={`${uid}-status`}>
{buttonContent}
</a>
) : (
<button type='button' className={buttonClass} onClick={handleAction} disabled={disabled} aria-disabled={locked || undefined} aria-busy={view === 'loading' || undefined} aria-describedby={`${uid}-status`}>
{buttonContent}
</button>
)}
{reassurance.length > 0 && (
<ul className='no7-reassurance'>
{reassurance.map((line, index) => (
<li key={`${line}-${index}`}>
{index === 0 ? <Download aria-hidden='true' /> : index === 1 ? <ShieldCheck aria-hidden='true' /> : <Check aria-hidden='true' />}
<span>{line}</span>
</li>
))}
</ul>
)}
<div id={`${uid}-status`} className='no7-status' aria-live='polite' aria-atomic='true'>
{view === 'error' && <p className='no7-message is-error'><AlertCircle aria-hidden='true' /><span>{errorMessage}</span></p>}
</div>
</div>
</div>
</div>
</section>
)
}
export default NewOpportunity7
export type NewOpportunity7Item = {
name: string
detail?: string
value?: string
itemImage?: string; image?: string
imageAlt?: string
}
/** "success" is accepted for older callers and renders as default. */
export type NewOpportunity7State = 'default' | 'hover' | 'active' | 'disabled' | 'error' | 'success'
const DEFAULT_ITEMS: NewOpportunity7Item[] = [
{ name: 'Funnel Planning Guide' },
{ name: 'Page Copy Workbook' },
{ name: 'Launch Checklist' },
]
const DEFAULT_NOTES = ['Offer?', 'Copy?', 'Next step?']
const CSS = `
.cf-new-opportunity-7{--no7-rule:oklch(from var(--ink,#101828) l c h / 0.14);--no7-tint:oklch(from var(--card,#ffffff) calc(l - 0.03) c h);--no7-on-band:var(--band-ink,#ffffff);--no7-band-soft:color-mix(in oklch,var(--band-ink,#ffffff) 82%,var(--band,#13294b));--no7-band-well:color-mix(in oklch,var(--band-ink,#ffffff) 8%,var(--band,#13294b));--no7-band-rule:oklch(from var(--band-ink,#ffffff) l c h / 0.16);position:relative;isolation:isolate;width:100%;padding:clamp(1.5rem,4.5vw,4rem) clamp(1rem,3vw,2.5rem);background:var(--surface,#ffffff);color:var(--ink,#101828);font-family:var(--font-body,Arial,sans-serif);-webkit-font-smoothing:antialiased}
.cf-new-opportunity-7,.cf-new-opportunity-7 *,.cf-new-opportunity-7 *::before,.cf-new-opportunity-7 *::after{box-sizing:border-box}
.cf-new-opportunity-7 :where(h2,h3,p,ul,li,figure){margin:0;padding:0}
.cf-new-opportunity-7 :where(ul){list-style:none}
.cf-new-opportunity-7 :where(p,li){text-wrap:pretty;overflow-wrap:anywhere}
.cf-new-opportunity-7 :where(h2,h3){font-family:var(--font-display,Arial,sans-serif);text-wrap:balance;overflow-wrap:anywhere;text-transform:var(--display-case,none)}
.cf-new-opportunity-7 img{display:block;max-width:100%}
.cf-new-opportunity-7 svg{flex:none}
:where(.cf-new-opportunity-7) .no7-shell{max-width:76rem;margin-inline:auto}
:where(.cf-new-opportunity-7) .no7-stage{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(2.5rem,5vw,5rem);align-items:start;padding:clamp(1.5rem,3.5vw,3rem);border:1px solid var(--no7-rule);border-radius:var(--card-radius,calc(var(--radius,12px) + 10px));background:var(--card,#ffffff);box-shadow:var(--card-shadow,inset 0 0 0 1px var(--card-border,oklch(from var(--ink) l c h / 0.12)),0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.18));border-color:var(--card-border,var(--no7-rule))}
:where(.cf-new-opportunity-7) .no7-stage::before{content:'';position:absolute;z-index:-1;inset:0;border-radius:inherit;background:var(--no7-tint);clip-path:polygon(0 0,54% 0,47% 100%,0 100%);pointer-events:none}
:where(.cf-new-opportunity-7) .no7-side{min-width:0;position:relative}
:where(.cf-new-opportunity-7) .no7-old{padding-right:clamp(0rem,1vw,1rem)}
:where(.cf-new-opportunity-7) .no7-new{padding-left:clamp(0rem,1vw,1rem)}
:where(.cf-new-opportunity-7) .no7-ofig,:where(.cf-new-opportunity-7) .no7-nfig{position:relative;aspect-ratio:16/10;margin-bottom:1.5rem;min-width:0;border-radius:var(--radius,10px);background:color-mix(in oklch,var(--ink) 4%,var(--card,#ffffff))}
:where(.cf-new-opportunity-7) .no7-ofig>img{width:100%;height:100%;object-fit:contain;mix-blend-mode:normal;filter:saturate(.55)}
:where(.cf-new-opportunity-7) .no7-notes{position:absolute;inset:0;pointer-events:none}
:where(.cf-new-opportunity-7) .no7-note{position:absolute;max-width:47%;padding:.65rem .9rem;border:1px solid var(--no7-rule);border-radius:var(--card-radius,var(--radius,8px));background:var(--card,#ffffff);color:var(--ink,#101828);font-size:clamp(1rem,1.5vw,1.25rem);font-weight:800;line-height:1.2;overflow-wrap:anywhere;box-shadow:var(--card-shadow,inset 0 0 0 1px var(--card-border,oklch(from var(--ink) l c h / 0.12)),0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.18));border-color:var(--card-border,var(--no7-rule))}
:where(.cf-new-opportunity-7) .no7-note:nth-child(1){top:7%;left:2%;transform:rotate(-5deg)}
:where(.cf-new-opportunity-7) .no7-note:nth-child(2){top:4%;right:3%;transform:rotate(4deg)}
:where(.cf-new-opportunity-7) .no7-note:nth-child(3){bottom:8%;left:29%;transform:rotate(-2deg)}
:where(.cf-new-opportunity-7) .no7-notes-alone{position:static;display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1.5rem}
:where(.cf-new-opportunity-7) .no7-notes-alone .no7-note{position:static;max-width:100%;transform:none}
:where(.cf-new-opportunity-7) .no7-print{position:absolute;width:43%;aspect-ratio:1;padding:5px;border:1px solid var(--no7-rule);border-radius:var(--card-radius,var(--radius,10px));background:var(--card,#ffffff);transform:rotate(var(--no7-rotation));border-color:var(--card-border,var(--no7-rule))}
:where(.cf-new-opportunity-7) .no7-print img{width:100%;height:100%;object-fit:contain;border-radius:6px}
:where(.cf-new-opportunity-7) .no7-p0{--no7-rotation:-7deg;left:2%;top:18%;z-index:1}
:where(.cf-new-opportunity-7) .no7-p1{--no7-rotation:1deg;left:29%;top:5%;z-index:2}
:where(.cf-new-opportunity-7) .no7-p2{--no7-rotation:7deg;left:55%;top:21%;z-index:1}
:where(.cf-new-opportunity-7) .no7-nfig[data-count='1'] .no7-p0{left:25%;width:50%;top:8%;--no7-rotation:-3deg}
:where(.cf-new-opportunity-7) .no7-nfig[data-count='2'] .no7-p0{left:9%;top:13%}
:where(.cf-new-opportunity-7) .no7-nfig[data-count='2'] .no7-p1{left:46%;top:11%;--no7-rotation:5deg}
:where(.cf-new-opportunity-7) .no7-tag{display:inline-flex;align-items:center;gap:.45rem;max-width:100%;padding:.5rem .8rem;border-radius:7px;font-size:.875rem;font-weight:800;line-height:1.25;letter-spacing:.045em;text-transform:uppercase}
:where(.cf-new-opportunity-7) .no7-tag svg{width:1rem;height:1rem;stroke-width:2.6}
:where(.cf-new-opportunity-7) .no7-tag-old{background:var(--danger-soft);color:var(--danger);border:1px solid var(--danger)}
:where(.cf-new-opportunity-7) .no7-tag-new{background:var(--success-soft);color:var(--success);border:1px solid var(--success)}
:where(.cf-new-opportunity-7) .no7-title{margin-top:1rem!important;font-size:clamp(1.8rem,3vw,2.65rem);font-weight:var(--display-weight,900);line-height:1.08;letter-spacing:var(--display-tracking,-.035em);color:var(--ink,#101828);text-transform:var(--display-case,none);text-wrap:balance}
:where(.cf-new-opportunity-7) .no7-copy{max-width:43ch;margin-top:.85rem!important;font-size:clamp(1.0625rem,1.4vw,1.125rem);font-weight:500;line-height:1.6;color:var(--muted,#4a5565)}
:where(.cf-new-opportunity-7) .no7-ledger{display:grid;gap:.85rem;margin-top:1.5rem!important}
:where(.cf-new-opportunity-7) .no7-ledger li{display:grid;grid-template-columns:1.25rem minmax(0,1fr) auto;gap:.65rem;align-items:start;font-size:1rem;line-height:1.4}
:where(.cf-new-opportunity-7) .no7-check{display:grid;place-items:center;width:1.25rem;height:1.25rem;margin-top:.08rem;border-radius:50%;background:var(--success);color:var(--card)}
:where(.cf-new-opportunity-7) .no7-check svg{width:.9rem;height:.9rem;stroke-width:3}
:where(.cf-new-opportunity-7) .no7-name{font-weight:700;color:var(--ink,#101828)}
:where(.cf-new-opportunity-7) .no7-value{font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink,#101828)}
:where(.cf-new-opportunity-7) .no7-offer{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1.2fr);gap:clamp(1.25rem,2.5vw,2.5rem);align-items:center;margin:1.25rem clamp(0rem,1.5vw,1.25rem) 0;padding:clamp(1.5rem,3.2vw,2.5rem);border:1px solid var(--no7-band-rule);border-radius:var(--card-radius,calc(var(--radius,12px) + 6px));background:var(--band,#13294b);color:var(--no7-on-band);box-shadow:inset 0 1px 0 oklch(from var(--band,#13294b) calc(l + 0.1) c h / 0.7),var(--shadow-lg,0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22),0 12px 24px -8px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.32))}
:where(.cf-new-opportunity-7) .no7-offer>div{min-width:0}
:where(.cf-new-opportunity-7) .no7-offer-title{font-family:var(--font-display,Arial,sans-serif);font-size:clamp(1.35rem,2vw,1.75rem);font-weight:var(--display-weight,800);line-height:1.18;letter-spacing:var(--display-tracking,-.02em);color:var(--no7-on-band);text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-new-opportunity-7) .no7-offer-note{margin-top:.65rem!important;font-size:1rem;font-weight:500;line-height:1.5;color:var(--no7-band-soft)}
:where(.cf-new-opportunity-7) .no7-price{min-width:12rem;padding:1.1rem 1.5rem;border:1px solid var(--no7-band-rule);border-radius:var(--card-radius,var(--radius,12px));background:var(--no7-band-well);color:var(--no7-on-band);text-align:center}
:where(.cf-new-opportunity-7) .no7-price-label{font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--no7-band-soft)}
:where(.cf-new-opportunity-7) .no7-price-number{margin-top:.6rem!important;font-family:var(--font-display,Arial,sans-serif);font-size:clamp(3.25rem,5vw,4.5rem);font-weight:var(--display-weight,900);line-height:1;letter-spacing:var(--display-tracking,-.045em);font-variant-numeric:lining-nums;color:var(--no7-on-band);text-transform:var(--display-case,none)}
:where(.cf-new-opportunity-7) .no7-price-regular{margin-top:.8rem!important;font-size:.875rem;font-weight:600;line-height:1.4;color:var(--no7-band-soft)}
:where(.cf-new-opportunity-7) .no7-price-regular s{text-decoration-thickness:2px;text-decoration-color:var(--no7-on-band);color:var(--no7-on-band)}
:where(.cf-new-opportunity-7) .no7-act{display:grid;justify-items:center;width:100%}
:where(.cf-new-opportunity-7) .no7-btn{appearance:none;text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:100%;min-height:4.25rem;padding:1rem .85rem;border:1px solid var(--cta-2,#b42318);border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) l c h),oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-size:clamp(1.0625rem,1.4vw,1.1875rem);font-weight:var(--button-weight,800);line-height:1.3;text-align:center;text-wrap:balance;overflow-wrap:anywhere;text-decoration:none;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.12) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) calc(l - 0.08) c h / 0.4), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 260)) calc(l - 0.08) c h / 0.35));border-color:var(--button-bg-2,var(--cta-2));text-transform:var(--button-case,none)}
:where(.cf-new-opportunity-7) .no7-btn svg{width:1.15rem;height:1.15rem}
:where(.cf-new-opportunity-7) .no7-btn:not(:disabled):not([aria-disabled='true']):hover,:where(.cf-new-opportunity-7) .no7-btn.is-hover{background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h);transform:translateY(-1px)}
:where(.cf-new-opportunity-7) .no7-btn:not(:disabled):not([aria-disabled='true']):active,:where(.cf-new-opportunity-7) .no7-btn.is-active{background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.1) c h);transform:translateY(2px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.12) c h / .4),inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 260)) calc(l - 0.08) c h / 0.4))}
:where(.cf-new-opportunity-7) .no7-btn:focus-visible{outline:3px solid var(--no7-on-band);outline-offset:4px}
:where(.cf-new-opportunity-7) .no7-btn:disabled{text-shadow:none;background:var(--button-2-bg,var(--secondary,var(--card)));color:var(--button-2-ink,var(--secondary-ink,var(--ink)));border-color:var(--button-2-border,transparent);box-shadow:none;cursor:not-allowed}
:where(.cf-new-opportunity-7) .no7-btn.is-loading{cursor:progress}
:where(.cf-new-opportunity-7) .no7-reassurance{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.1rem;margin-top:1rem!important}
:where(.cf-new-opportunity-7) .no7-reassurance li{display:flex;align-items:center;justify-content:center;gap:.4rem;font-size:.875rem;font-weight:600;line-height:1.4;color:var(--no7-band-soft)}
:where(.cf-new-opportunity-7) .no7-reassurance svg{width:1rem;height:1rem;color:var(--no7-on-band)}
:where(.cf-new-opportunity-7) .no7-status{width:100%}
:where(.cf-new-opportunity-7) .no7-status:empty{display:none}
:where(.cf-new-opportunity-7) .no7-message{display:flex;align-items:flex-start;gap:.5rem;margin-top:1rem!important;padding:.8rem .9rem;border:1px solid var(--success);border-radius:var(--card-radius,var(--radius,8px));background:var(--success-soft);color:var(--success);font-size:1rem;font-weight:600;line-height:1.45}
:where(.cf-new-opportunity-7) .no7-message svg{width:1.15rem;height:1.15rem;margin-top:.15rem}
:where(.cf-new-opportunity-7) .no7-message.is-error{background:var(--danger-soft);border-color:var(--danger);color:var(--danger)}
@media(min-width:901px) and (max-width:1180px){
:where(.cf-new-opportunity-7) .no7-offer{grid-template-columns:minmax(0,1fr) auto}
:where(.cf-new-opportunity-7) .no7-act{grid-column:1/-1;max-width:32rem;justify-self:center}
}
@media(max-width:900px){
:where(.cf-new-opportunity-7) .no7-stage{grid-template-columns:minmax(0,1fr);padding:clamp(1.25rem,5vw,2.5rem);gap:2.75rem}
:where(.cf-new-opportunity-7) .no7-stage::before{display:none}
:where(.cf-new-opportunity-7) .no7-side{padding:0}
:where(.cf-new-opportunity-7) .no7-old{isolation:isolate;padding-bottom:1.75rem}
:where(.cf-new-opportunity-7) .no7-old::before{content:'';position:absolute;z-index:-1;inset:calc(-1 * clamp(1.25rem,5vw,2.5rem));bottom:-1.5rem;background:var(--no7-tint);border-radius:calc(var(--radius,12px) + 10px) calc(var(--radius,12px) + 10px) 0 0;clip-path:polygon(0 0,100% 0,100% calc(100% - 2rem),0 100%)}
:where(.cf-new-opportunity-7) .no7-ofig,:where(.cf-new-opportunity-7) .no7-nfig{max-width:30rem;margin-inline:auto}
:where(.cf-new-opportunity-7) .no7-title,:where(.cf-new-opportunity-7) .no7-copy{text-wrap:balance}
:where(.cf-new-opportunity-7) .no7-offer{grid-template-columns:minmax(0,1fr);margin-inline:0;text-align:center;gap:1.25rem}
:where(.cf-new-opportunity-7) .no7-offer-title{margin-inline:auto!important;text-wrap:balance}
:where(.cf-new-opportunity-7) .no7-price{width:100%;min-width:0;max-width:23rem;justify-self:center}
:where(.cf-new-opportunity-7) .no7-act{max-width:32rem;justify-self:center}
}
@media(prefers-reduced-motion:no-preference){
:where(.cf-new-opportunity-7) .no7-btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
:where(.cf-new-opportunity-7) .no7-print{transition:transform .3s ease}
:where(.cf-new-opportunity-7) .no7-spin{animation:no7-spin .85s linear infinite}
@keyframes no7-spin{to{transform:rotate(360deg)}}
@media(hover:hover) and (pointer:fine){
:where(.cf-new-opportunity-7) .no7-nfig:hover .no7-p0{transform:translateY(-4px) rotate(-9deg)}
:where(.cf-new-opportunity-7) .no7-nfig:hover .no7-p1{transform:translateY(-6px) rotate(0deg)}
:where(.cf-new-opportunity-7) .no7-nfig:hover .no7-p2{transform:translateY(-4px) rotate(9deg)}
}
}
@media(prefers-reduced-motion:reduce){.cf-new-opportunity-7 *,.cf-new-opportunity-7 *::before,.cf-new-opportunity-7 *::after{animation:none!important;transition:none!important}}
@media(forced-colors:active){:where(.cf-new-opportunity-7) .no7-stage,:where(.cf-new-opportunity-7) .no7-offer,:where(.cf-new-opportunity-7) .no7-note,:where(.cf-new-opportunity-7) .no7-print,:where(.cf-new-opportunity-7) .no7-price,:where(.cf-new-opportunity-7) .no7-btn{border:1px solid CanvasText}:where(.cf-new-opportunity-7) .no7-check{outline:1px solid CanvasText}}
`
pieces/content/new-opportunity-7/specimen.tsx 46 lines
'use client'
import __studioImageffb67f36 from "../assets/a746a416fa5089c7.webp";
import * as React from 'react'
import { NewOpportunity7, type NewOpportunity7State } from '../new-opportunity-7'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function NewOpportunity7Specimen({ state = 'default' }: { state?: string }) {
const s = defaults.sample
const current = (states.includes(state) ? state : 'default') as NewOpportunity7State
return (
<NewOpportunity7
state={current}
oldLabel='The old way'
oldTitle='A pile of disconnected pieces.'
oldText='A template from here, a swipe file from there, a page you liked. None of it was made for your offer, so you’re left guessing what goes where.'
oldNotes={['Offer?', 'Copy?', 'Next step?']}
sceneImage={slot('scene', __studioImageffb67f36)}
sceneImageAlt='A disorganized pile of loose notes and string'
newLabel='Your new vehicle'
newTitle='One kit. A clear path to launch.'
newText={s.lead}
items={s.items.map((item, i) => ({
name: item.name,
detail: item.detail,
value: item.value,
itemImage: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
offerTitle={`Build your first funnel with ${s.name}`}
offerNote={s.note}
todayLabel={s.todayLabel}
price={s.price}
regularPrice={s.regularPrice}
regularLabel='Total value'
ctaLabel={s.label}
loadingLabel='Preparing your kit…'
reassurance={s.reassurance}
errorMessage='We couldn’t complete that. Please try again.'
/>
)
}
| Name | Type | Details |
|---|---|---|
preheadline OptionalNewOpportunity7 |
string |
|
headline OptionalNewOpportunity7 |
string |
|
emphasis OptionalNewOpportunity7 |
string |
|
oldLabel OptionalNewOpportunity7 |
string |
Default 'The old way'
|
oldTitle OptionalNewOpportunity7 |
string |
Default 'A pile of disconnected pieces.'
|
oldText OptionalNewOpportunity7 |
string |
Default 'A template from here, a swipe file from there, a page you liked. None of it was made for your offer, so you’re left guessing what goes where.'
|
oldNotes OptionalNewOpportunity7 |
(string | { text: string })[] |
Default DEFAULT_NOTES
|
oldImage OptionalNewOpportunity7 |
string |
|
sceneImage OptionalNewOpportunity7 |
string |
Default oldImage
|
oldImageAlt OptionalNewOpportunity7 |
string |
|
sceneImageAlt OptionalNewOpportunity7 |
string |
Default oldImageAlt === undefined ? '' : oldImageAlt
|
newLabel OptionalNewOpportunity7 |
string |
Default 'Your new vehicle'
|
newTitle OptionalNewOpportunity7 |
string |
Default 'One kit. A clear path to launch.'
|
newText OptionalNewOpportunity7 |
string |
Default 'Plan your funnel, write your page copy, and check every step before you launch.'
|
items OptionalNewOpportunity7 |
NewOpportunity7Item[] |
Default DEFAULT_ITEMS
|
stampImage OptionalNewOpportunity7 |
string |
|
stampAlt OptionalNewOpportunity7 |
string |
|
offerTitle OptionalNewOpportunity7 |
string |
Default 'Build your first funnel with The Funnel Starter Kit'
|
offerNote OptionalNewOpportunity7 |
string |
|
todayLabel OptionalNewOpportunity7 |
string |
Default 'Get the complete kit for'
|
price OptionalNewOpportunity7 |
string |
Default '$47'
|
regularPrice OptionalNewOpportunity7 |
string |
|
regularLabel OptionalNewOpportunity7 |
string |
Default 'Total value'
|
ctaLabel OptionalNewOpportunity7 |
string |
Default 'Yes! Give Me Access'
|
href OptionalNewOpportunity7 |
string |
|
ctaHref OptionalNewOpportunity7 |
string |
|
loadingLabel OptionalNewOpportunity7 |
string |
Default 'Preparing your kit…'
|
successLabel OptionalNewOpportunity7 |
string |
|
reassurance OptionalNewOpportunity7 |
(string | { text: string })[] |
Default []
|
successMessage OptionalNewOpportunity7 |
string |
|
errorMessage OptionalNewOpportunity7 |
string |
Default 'We couldn’t complete that. Please try again.'
|
onAction OptionalNewOpportunity7 |
() => void | Promise<void> |
|
state OptionalNewOpportunity7 |
NewOpportunity7State |
Default 'default'
|
id OptionalNewOpportunity7 |
string |
|
className OptionalNewOpportunity7 |
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- 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.
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.
scene- A wide atmosphere photo behind or beside the copy.
-
a746a416fa5089c7.webp
image/webp · 54.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB