New Opportunity 5
Breaks the old belief with three numbered reasons it fails, then deals the new vehicle face up with its receipt and one action.
Use it in a prompt
Use content/new-opportunity-5 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-5.tsx. - Import it and pass your copy and images (Props tab):
import { NewOpportunity5 } from "@/components/funneldna/content/new-opportunity-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/new-opportunity-5/component.tsx 569 lines
// layout: card-fan
// Breaks the old belief with three numbered reasons it fails, then deals the new vehicle face up with its receipt and one action.
'use client'
import * as React from 'react'
import { AlertCircle, Compass, Loader2, Quote, ShieldCheck, X } from 'lucide-react'
import { FX_HOST, Glow, Spot } from '../fx/fx'
import phoneSpot from '../fx/spots/phone'
import lockSpot from '../fx/spots/lock'
import clockSpot from '../fx/spots/clock'
export type NewOpportunity5Crack = {
title: string
text?: string
/** A Spot illustration (imported asset URL), e.g. import clock from '../fx/spots/clock'. */
spot?: string
}
export type NewOpportunity5Line = { name: string; value?: string }
export type NewOpportunity5State = 'default' | 'hover' | 'active' | 'disabled'
export type NewOpportunity5Props = {
/** The old belief, in the founder's words; it is the block's headline. */
quote?: string
/** Phrase inside the quote shown in the page colour. */
emphasis?: string
lead?: string
/** Slot presenter-cutout: the founder on a transparent background. */
presenterImage?: string
presenterImageAlt?: string
presenterName?: string
presenterRole?: string
/** Up to three reasons the old vehicle breaks, dealt as a fan. */
cracks?: NewOpportunity5Crack[]
/** Accessible name for the fan of reasons. */
cracksLabel?: string
/** Button that deals the face-down card. */
dealLabel?: string
/** Words on the back of the face-down card. */
backLabel?: string
/** Slot product: the product shot on a transparent background. */
productImage?: string
productImageAlt?: string
/** The promise on the new card. */
headline?: string
text?: string
/** Accessible name for the receipt. */
receiptLabel?: string
receiptTitle?: string
items?: NewOpportunity5Line[]
subtotalLabel?: string
discountLabel?: string
totalLabel?: string
price?: string
/** Subtotal before today's price; when omitted the item values are added up. */
regularPrice?: string
/** The question the button answers. */
question?: string
ctaLabel?: string
loadingLabel?: string
errorMessage?: string
guarantee?: string
/** Navigation destination; the action 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<void>
/** Called once when the visitor deals the new card. */
onDeal?: () => void
/** Start with the new card already face up. */
dealt?: boolean
state?: NewOpportunity5State
id?: string
className?: string
}
const DEFAULT_CRACKS: NewOpportunity5Crack[] = [
{ title: 'The feed forgets you overnight', text: 'Today’s post sinks under tomorrow’s. You start from zero every morning.', spot: phoneSpot },
{ title: 'You’re renting the audience', text: 'The app decides who sees your work, and it can change its mind any day.', spot: lockSpot },
{ title: 'It eats your making time', text: 'Every hour spent filming and captioning is an hour away from your bench.', spot: clockSpot },
]
const DEFAULT_ITEMS: NewOpportunity5Line[] = [
{ name: 'Pinpoint video course', value: '$67' },
{ name: 'Listing keyword workbook', value: '$19' },
{ name: 'Search-ready listing checklist', value: '$11' },
]
const useIso = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect
export function NewOpportunity5({
quote = 'Everyone told you to post every single day.',
emphasis = 'every single day',
lead = 'Here are three reasons that advice keeps your shop invisible.',
presenterImage,
presenterImageAlt = '',
presenterName,
presenterRole,
cracks = DEFAULT_CRACKS,
cracksLabel = 'Three reasons daily posting stops working',
dealLabel = 'Show me the new way',
backLabel = 'The new way',
productImage,
productImageAlt = '',
headline = 'Get found by buyers who are already searching',
text = 'Pinpoint shows you how to turn each listing into a page search engines show, so your sales stop depending on what you posted today.',
receiptLabel = 'Your order',
receiptTitle = 'Pinpoint · Search course for handmade sellers',
items = DEFAULT_ITEMS,
subtotalLabel = 'Subtotal',
discountLabel = 'Bundle discount',
totalLabel = 'Today',
price = '$47',
regularPrice,
question = 'Ready to be found without posting every day?',
ctaLabel = 'I’m ready, show me how',
loadingLabel = 'Opening checkout…',
errorMessage = 'We couldn’t open checkout. Please try again.',
guarantee = '30-day money-back guarantee',
href,
onAction,
onDeal,
dealt: startDealt = false,
state = 'default',
id,
className,
}: NewOpportunity5Props) {
const uid = React.useId().replace(/:/g, '')
const quoteId = `n5-${uid}-q`
const askId = `n5-${uid}-ask`
const fanRef = React.useRef<HTMLOListElement>(null)
const deckRef = React.useRef<HTMLDivElement>(null)
const cardRef = React.useRef<HTMLDivElement>(null)
const headRef = React.useRef<HTMLHeadingElement>(null)
const from = React.useRef<DOMRect | null>(null)
const flying = React.useRef(false)
const reduced = React.useRef(false)
const alive = React.useRef(true)
const [dealt, setDealt] = React.useState(startDealt)
const [motion, setMotion] = React.useState(false)
const [seen, setSeen] = React.useState(false)
const [run, setRun] = React.useState<'idle' | 'loading' | 'error'>('idle')
useIso(() => {
reduced.current = window.matchMedia('(prefers-reduced-motion: reduce)').matches
if (reduced.current) {
setDealt(true)
setSeen(true)
return
}
setMotion(true)
const el = fanRef.current
if (!el || typeof IntersectionObserver === 'undefined') {
setSeen(true)
return
}
const io = new IntersectionObserver((entries) => {
if (!entries.some((entry) => entry.isIntersecting)) return
setSeen(true)
io.disconnect()
}, { threshold: 0.25 })
io.observe(el)
return () => io.disconnect()
}, [])
React.useEffect(() => {
setDealt(startDealt || reduced.current)
}, [startDealt])
React.useEffect(() => {
setRun('idle')
}, [state])
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
useIso(() => {
if (!dealt || !flying.current) return
flying.current = false
headRef.current?.focus({ preventScroll: true })
const card = cardRef.current
const start = from.current
if (!card || !start || typeof card.animate !== 'function') return
const end = card.getBoundingClientRect()
if (!end.width || !end.height) return
const dx = start.left + start.width / 2 - (end.left + end.width / 2)
const dy = start.top + start.height / 2 - (end.top + end.height / 2)
const sx = start.width / end.width
const sy = start.height / end.height
const p = 'perspective(2000px)'
const anim = card.animate(
[
{ transform: `${p} translate(${dx}px, ${dy}px) rotate(-4deg) scale(${sx}, ${sy}) rotateY(180deg)`, easing: 'cubic-bezier(.2,.7,.2,1)' },
{ transform: `${p} translate(0px, 0px) rotate(0deg) scale(1, 1) rotateY(180deg)`, offset: 0.55, easing: 'cubic-bezier(.45,0,.2,1)' },
{ transform: `${p} translate(0px, 0px) rotate(0deg) scale(1, 1) rotateY(0deg)` },
],
{ duration: 1200, fill: 'backwards' },
)
let timer = 0
const below = end.bottom - window.innerHeight + 24
if (below > 0) {
const by = Math.min(below, end.top - 24)
if (by > 0) timer = window.setTimeout(() => window.scrollBy({ top: by, behavior: 'smooth' }), 120)
}
return () => {
window.clearTimeout(timer)
anim.cancel()
}
}, [dealt])
const deal = () => {
if (dealt) return
from.current = deckRef.current ? deckRef.current.getBoundingClientRect() : null
flying.current = motion
setDealt(true)
onDeal?.()
}
const disabled = state === 'disabled'
const busy = run === 'loading'
const force = state === 'hover' || state === 'active' ? ` is-${state}` : ''
const actionForce = disabled ? '' : force
async function act(event: React.MouseEvent<HTMLElement>) {
if (disabled || busy) {
event.preventDefault()
return
}
if (!onAction) return
if (!href) event.preventDefault()
try {
const result = onAction()
if (result && typeof (result as Promise<void>).then === 'function') {
setRun('loading')
await result
if (alive.current) setRun('idle')
} else {
setRun('idle')
}
} catch {
if (alive.current) setRun('error')
}
}
const shown = cracks.slice(0, 3)
const n = Math.max(shown.length, 1)
const values = items.map((item) => money(item.value))
const sum = values.length > 0 && values.every((v) => v !== null) ? values.reduce<number>((a, b) => a + (b ?? 0), 0) : null
const subN = regularPrice ? money(regularPrice) : sum
const subtotal = regularPrice ?? (sum !== null ? fmt(sum, items[0]?.value ?? price) : undefined)
const priceN = money(price)
const off = subN !== null && priceN !== null && subN > priceN ? subN - priceN : 0
const discount = off > 0 ? `−${fmt(off, price)}` : undefined
const showDiscount = Boolean(discount && subtotal)
const actionInner = (
<>
{busy ? <Loader2 className='n5-spin' size={20} strokeWidth={2.5} aria-hidden='true' /> : null}
<span>{busy ? loadingLabel : ctaLabel}</span>
</>
)
const describedBy = question ? askId : undefined
const action = href && !disabled ? (
<a className={`n5-btn n5-go${actionForce}`} href={href} onClick={act} aria-busy={busy || undefined} aria-disabled={busy || undefined} aria-describedby={describedBy}>
{actionInner}
</a>
) : (
<button type='button' className={`n5-btn n5-go${actionForce}`} onClick={act} disabled={disabled} aria-busy={busy || undefined} aria-describedby={describedBy}>
{actionInner}
</button>
)
return (
<section
id={id}
className={['cf-new-opportunity-5', className].filter(Boolean).join(' ')}
style={FX_HOST}
aria-labelledby={quoteId}
data-motion={motion ? 'on' : undefined}
data-seen={seen ? '' : undefined}
data-dealt={dealt ? '' : undefined}
>
<style>{CSS}</style>
<Glow />
<div className='n5-wrap'>
<div className={presenterImage ? 'n5-stage' : 'n5-stage n5-solo'}>
{presenterImage ? (
<figure className='n5-person'>
<img src={presenterImage} alt={presenterImageAlt} width={900} height={900} loading='lazy' decoding='async' />
{presenterName || presenterRole ? (
<figcaption>
{presenterName ? <strong>{presenterName}</strong> : null}
{presenterRole ? <span>{presenterRole}</span> : null}
</figcaption>
) : null}
</figure>
) : null}
<div className='n5-voice'>
<Quote className='n5-qmark' size={40} strokeWidth={2.5} aria-hidden='true' />
<h2 id={quoteId} className='n5-quote'><Emph text={quote} emphasis={emphasis} /></h2>
{lead ? <p className='n5-lead'>{lead}</p> : null}
</div>
<div className='n5-table'>
<ol className='n5-fan' ref={fanRef} aria-label={cracksLabel} style={{ '--n': n } as React.CSSProperties}>
{shown.map((crack, i) => {
const k = (shown.length - 1) / 2 - i
return (
<li
key={`${crack.title}-${i}`}
className='n5-crack'
tabIndex={0}
style={{
'--fr': `${-k * 4}deg`,
'--fy': `${Math.abs(k) * 12}px`,
'--k': k,
'--fz': n - Math.round(Math.abs(k)),
'--d': `${Math.min(Math.abs(k) * 0.07, 0.28)}s`,
} as React.CSSProperties}
>
<span className='n5-x' aria-hidden='true'><X size={16} strokeWidth={3} /></span>
<span className='n5-num' aria-hidden='true'>{i + 1}</span>
<h3 className='n5-ctitle'>{crack.title}</h3>
{crack.text ? <p className='n5-ctext'>{crack.text}</p> : null}
{crack.spot ? <span className='n5-spot'><Spot src={crack.spot} size={56} /></span> : null}
</li>
)
})}
</ol>
{!dealt ? (
<div className='n5-dealer'>
<div className='n5-deck' ref={deckRef} aria-hidden='true' onClick={deal}>
<CardBack label={backLabel} />
</div>
<button type='button' className={`n5-btn n5-deal${force}`} onClick={deal}>{dealLabel}</button>
</div>
) : null}
</div>
</div>
{dealt ? (
<div className='n5-land'>
<div className='n5-new' ref={cardRef}>
<div className='n5-face'>
<div className='n5-pitch'>
<h3 ref={headRef} tabIndex={-1} className='n5-promise'>{headline}</h3>
{text ? <p className='n5-text'>{text}</p> : null}
</div>
{productImage ? (
<img className='n5-product' src={productImage} alt={productImageAlt} width={900} height={900} loading='lazy' decoding='async' />
) : null}
<div className='n5-close'>
<div className='n5-receipt' role='group' aria-label={receiptLabel}>
{receiptTitle ? <p className='n5-rtitle'>{receiptTitle}</p> : null}
{items.length > 0 ? (
<ul className={showDiscount ? 'n5-lines n5-ruled' : 'n5-lines'}>
{items.map((item, i) => (
<li key={`${item.name}-${i}`}>
<span>{item.name}</span>
{item.value ? <span className='n5-amt'>{item.value}</span> : null}
</li>
))}
</ul>
) : null}
<dl className='n5-sum'>
{showDiscount ? (
<>
<div className='n5-row'><dt>{subtotalLabel}</dt><dd>{subtotal}</dd></div>
<div className='n5-row n5-off'><dt>{discountLabel}</dt><dd>{discount}</dd></div>
</>
) : null}
<div className='n5-row n5-total'><dt>{totalLabel}</dt><dd>{price}</dd></div>
</dl>
</div>
{question ? <p className='n5-ask' id={askId}>{question}</p> : null}
{action}
{run === 'error' ? (
<p className='n5-err' role='alert'><AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' />{errorMessage}</p>
) : null}
{guarantee ? (
<p className='n5-guar'><ShieldCheck size={16} strokeWidth={2.5} aria-hidden='true' />{guarantee}</p>
) : null}
</div>
</div>
<div className='n5-back' aria-hidden='true'>
<CardBack label={backLabel} big />
</div>
</div>
</div>
) : null}
</div>
</section>
)
}
export default NewOpportunity5
function Emph({ text, emphasis }: { text: string; emphasis?: string }) {
const at = emphasis ? text.indexOf(emphasis) : -1
if (!emphasis || at < 0) return <>{text}</>
return (
<>
{text.slice(0, at)}
<span className='n5-em'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
function CardBack({ label, big = false }: { label: string; big?: boolean }) {
return (
<div className={big ? 'n5-cb n5-cb-big' : 'n5-cb'}>
<span className='n5-cb-in'>
<Compass strokeWidth={2.5} aria-hidden='true' />
{label ? <span className='n5-cb-l'>{label}</span> : null}
</span>
</div>
)
}
function money(value?: string): number | null {
if (!value) return null
const n = parseFloat(value.replace(/[^0-9.-]/g, ''))
return Number.isFinite(n) ? n : null
}
function fmt(n: number, like: string) {
const sym = (like.trim().match(/^[^0-9]*/)?.[0] ?? '').replace('-', '').trim() || '$'
const cents = like.includes('.') || !Number.isInteger(n)
return sym + n.toLocaleString('en-US', { minimumFractionDigits: cents ? 2 : 0, maximumFractionDigits: cents ? 2 : 0 })
}
const R = '.cf-new-opportunity-5'
const CSS = `
${R}{--n5-sh:var(--shadow, oklch(0.22 0.03 260));position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} .n5-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
${R} .n5-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'person' 'voice' 'table';row-gap:24px}
${R} .n5-person{grid-area:person;margin:0;display:flex;align-items:center;gap:12px;min-width:0}
${R} .n5-person img{display:block;flex:none;width:76px;height:76px;border-radius:999px;object-fit:cover;object-position:50% 14%;background:oklch(from var(--band-ink) l c h / .12)}
${R} .n5-person figcaption{display:grid;gap:2px;min-width:0}
${R} .n5-person strong{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.3}
${R} .n5-person figcaption span{font-size:.9375rem;font-weight:500;line-height:1.4}
${R} .n5-voice{grid-area:voice;min-width:0}
${R} .n5-qmark{display:block;color:var(--accent-fill, var(--accent));margin-bottom:12px}
${R} .n5-quote{margin:0;color:var(--band-ink);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(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
${R} .n5-em{color:color-mix(in oklab, var(--band-ink) 62%, var(--accent-fill, var(--accent)))}
${R} .n5-lead{margin:16px 0 0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
${R} .n5-table{grid-area:table;display:grid;min-width:0}
${R} .n5-fan{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr)}
${R} .n5-crack{--r:-.5deg;--y:0px;--x:0px;--lift:0px;position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-content:start;padding:18px 56px 20px 18px;background:var(--card);color:var(--ink);border:1px solid var(--card-border, oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius, var(--radius,14px));box-shadow:var(--card-shadow, var(--shadow-md));transform:translate(var(--x), calc(var(--y) - var(--lift))) rotate(var(--r));transform-origin:50% 100%;outline:none}
${R} .n5-crack + .n5-crack{margin-top:10px}
${R} .n5-crack:nth-child(even){--r:.5deg}
${R} .n5-crack:hover,${R} .n5-crack:focus-visible{--lift:6px;z-index:6;box-shadow:var(--shadow-lg)}
${R} .n5-crack:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
${R} .n5-x{position:absolute;top:16px;right:16px;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--danger);background:oklch(from var(--danger) min(l, .52) c h);color:var(--n5-badge-ink,#fff);box-shadow:inset 0 -1px 0 oklch(from var(--danger) calc(l - .14) c h / .6)}
${R} .n5-num{grid-row:1 / span 2;font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
${R} .n5-ctitle{grid-column:2;margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
${R} .n5-ctext{grid-column:2;margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
${R} .n5-spot{display:none}
${R} .n5-dealer{position:relative;z-index:7;display:grid;justify-items:center;gap:20px;margin-top:-8px}
${R} .n5-deck{width:100%;height:112px;cursor:pointer;transform:rotate(-1.2deg)}
${R} .n5-deal{width:100%}
${R} .n5-cb{height:100%;display:grid;place-items:center;border-radius:var(--card-radius, var(--radius,14px));color:var(--accent-fill-ink, var(--card));background:linear-gradient(160deg, oklch(from var(--accent-fill, var(--accent)) calc(l + .03) c h), oklch(from var(--accent-fill, var(--accent)) calc(l - .05) c h));box-shadow:inset 0 0 0 10px oklch(from var(--accent-fill, var(--accent)) calc(l - .08) c h), inset 0 0 0 11.5px oklch(from var(--accent-fill-ink, var(--card)) l c h / .5), var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / .22), 0 12px 24px -8px oklch(0.22 0.03 260 / .32))}
${R} .n5-cb-in{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;padding:16px;text-align:center}
${R} .n5-cb svg{width:40px;height:40px;flex:none}
${R} .n5-cb-l{font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase}
${R} .n5-cb-big .n5-cb-in{flex-direction:column;gap:16px}
${R} .n5-cb-big svg{width:64px;height:64px}
${R} .n5-cb-big .n5-cb-l{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);letter-spacing:.06em}
${R} .n5-btn{--bb:var(--button-bg, var(--cta));--bb2:var(--button-bg-2, var(--cta-2));appearance:none;border:0;margin:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:64px;padding:12px 28px;border-radius:var(--button-radius, var(--radius,12px));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;color:var(--button-ink, var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--bb) calc(l + .04) c h), oklch(from var(--bb2) calc(l - .02) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--bb) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--bb) calc(l - .16) c h), 0 1px 2px oklch(from var(--n5-sh) l c h / .35), 0 8px 16px -6px oklch(from var(--n5-sh) l c h / .45))}
${R} .n5-btn:hover,${R} .n5-btn.is-hover{background:linear-gradient(oklch(from var(--bb) calc(l - .01) c h), oklch(from var(--bb2) calc(l - .07) c h));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--bb) calc(l + .12) c h / .6), inset 0 -3px 0 oklch(from var(--bb) calc(l - .18) c h), 0 1px 2px oklch(from var(--n5-sh) l c h / .4), 0 10px 20px -6px oklch(from var(--n5-sh) l c h / .55))}
${R} .n5-btn:active,${R} .n5-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--bb) calc(l - .06) c h), oklch(from var(--bb2) calc(l - .1) c h));box-shadow:inset 0 2px 4px oklch(from var(--bb) calc(l - .22) c h / .55), inset 0 -2px 0 oklch(from var(--bb) calc(l - .16) c h), 0 1px 2px oklch(from var(--n5-sh) l c h / .3)}
${R} .n5-btn:focus-visible{outline:3px solid var(--field-focus, var(--accent));outline-offset:3px}
${R} .n5-deal:focus-visible{outline-color:var(--band-ink)}
${R} .n5-btn:disabled{cursor:not-allowed;transform:none;background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm))}
${R} .n5-btn[aria-busy=true]{cursor:progress}
${R} .n5-land{position:relative;z-index:8;display:flex;justify-content:center;margin-top:clamp(40px,5vw,64px)}
${R} .n5-new{position:relative;width:min(100%,960px);transform-style:preserve-3d}
${R} .n5-face{position:relative;-webkit-backface-visibility:hidden;backface-visibility:hidden;display:grid;gap:24px;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch, var(--accent) 38%, var(--card));border-radius:var(--card-radius, var(--radius,14px));box-shadow:var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / .22), 0 12px 24px -8px oklch(0.22 0.03 260 / .32))}
${R} .n5-back{position:absolute;inset:0;transform:rotateY(180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:none}
${R} .n5-pitch{min-width:0}
${R} .n5-promise{margin:0;outline:none;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(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
${R} .n5-text{margin:14px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
${R} .n5-product{display:block;width:100%;max-height:220px;object-fit:contain;object-position:50% 50%;filter:drop-shadow(0 2px 3px oklch(from var(--n5-sh) l c h / .3)) drop-shadow(0 10px 12px oklch(from var(--n5-sh) l c h / .2))}
${R} .n5-close{display:grid;gap:16px;align-content:start;min-width:0}
${R} .n5-receipt{padding:20px 22px;border-radius:10px;background:color-mix(in oklch, var(--ink) 4%, var(--card));font-variant-numeric:tabular-nums}
${R} .n5-rtitle{margin:0 0 12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.3;text-wrap:pretty}
${R} .n5-lines{list-style:none;margin:0;padding:0;display:grid;gap:8px}
${R} .n5-lines.n5-ruled{padding-bottom:12px;border-bottom:1px solid oklch(from var(--ink) l c h / .14)}
${R} .n5-lines li,${R} .n5-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4}
${R} .n5-amt{flex:none}
${R} .n5-sum{margin:12px 0 0;display:grid;gap:6px}
${R} .n5-row dt,${R} .n5-row dd{margin:0}
${R} .n5-row dd{flex:none}
${R} .n5-off{color:var(--success);font-weight:700}
${R} .n5-total{margin-top:8px}
${R} .n5-total dt{font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:800}
${R} .n5-total dd{font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em}
${R} .n5-ask{margin:8px 0 0;font-family:var(--font-display);font-weight:800;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
${R} .n5-go{width:100%;min-height:72px}
${R} .n5-guar,${R} .n5-err{margin:0;font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty}
${R} .n5-guar{color:var(--muted)}
${R} .n5-err{color:var(--danger)}
${R} .n5-guar svg,${R} .n5-err svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
${R} .n5-guar svg{color:var(--success)}
@media (max-width:480px){
${R} .n5-btn{padding:12px 16px}
}
@media (min-width:700px){
${R} .n5-stage{grid-template-columns:200px minmax(0,1fr);grid-template-areas:'person voice' 'table table';column-gap:32px;row-gap:40px;align-items:start}
${R} .n5-person{display:block}
${R} .n5-person img{width:100%;height:auto;aspect-ratio:1;border-radius:0;background:none;object-fit:contain;object-position:50% 100%;-webkit-mask-image:linear-gradient(to bottom, var(--band) 78%, transparent);mask-image:linear-gradient(to bottom, var(--band) 78%, transparent);filter:drop-shadow(0 2px 3px oklch(from var(--n5-sh) l c h / .35))}
${R} .n5-person figcaption{margin-top:12px}
${R} .n5-fan{grid-template-columns:repeat(var(--n),minmax(0,1fr));padding:16px 12px 0}
${R} .n5-crack{--r:var(--fr);--y:var(--fy);z-index:var(--fz);display:flex;flex-direction:column;min-height:340px;margin:0 -10px;padding:24px}
${R} .n5-crack + .n5-crack{margin-top:0}
${R} .n5-crack:nth-child(even){--r:var(--fr)}
${R} .n5-crack:hover,${R} .n5-crack:focus-visible{--lift:14px}
${R} .n5-num{margin-bottom:12px}
${R} .n5-spot{display:block;margin-top:auto;padding-top:16px}
${R}[data-motion=on]:not([data-seen]) .n5-crack{--r:0deg;--y:20px;--x:calc(var(--k) * (100% - 20px))}
${R} .n5-dealer{margin-top:-92px;gap:24px}
${R} .n5-deck{width:188px;height:236px;transform:rotate(-4deg)}
${R} .n5-deck:hover{transform:rotate(-2deg) translateY(-6px)}
${R} .n5-deck .n5-cb-in{flex-direction:column}
${R} .n5-deal{width:auto;min-width:300px}
}
@media (min-width:960px){
${R} .n5-face{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'pitch close' 'product close';column-gap:40px;align-items:start}
${R} .n5-pitch{grid-area:pitch}
${R} .n5-product{grid-area:product;max-height:280px;align-self:center}
${R} .n5-close{grid-area:close}
}
@media (min-width:1100px){
${R} .n5-stage{grid-template-columns:minmax(0,340px) minmax(0,1fr);grid-template-areas:'person voice' 'person table';column-gap:56px;row-gap:32px}
${R} .n5-person{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end}
${R} .n5-person img{flex:0 1 620px;min-height:280px;aspect-ratio:auto;object-fit:cover;object-position:50% 100%}
}
${R} .n5-stage.n5-solo{grid-template-columns:minmax(0,1fr);grid-template-areas:'voice' 'table'}
@media (prefers-reduced-motion:no-preference){
${R} .n5-voice{animation:n5-rise .45s cubic-bezier(.2,.7,.2,1) both}
${R} .n5-crack{transition:transform .45s cubic-bezier(.2,.7,.2,1) var(--d,0s), box-shadow .16s ease}
${R} .n5-crack:hover,${R} .n5-crack:focus-visible{transition-delay:0s}
${R} .n5-deck{transition:transform .16s ease}
${R} .n5-btn{transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
${R} .n5-spin{animation:n5-spin .8s linear infinite}
}
@keyframes n5-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes n5-spin{to{transform:rotate(360deg)}}
`
pieces/content/new-opportunity-5/specimen.tsx 27 lines
import __studioImaged68f324f from "../assets/3b4c097f90def42a.webp";
import __studioImage1007a36c from "../assets/1cfee69db426b996.webp";
import * as React from 'react'
import { NewOpportunity5, type NewOpportunity5State } from '../new-opportunity-5'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled']
export default function NewOpportunity5Specimen({ state = 'default' }: { state?: NewOpportunity5State }) {
const sample = defaults.sample
return (
<NewOpportunity5
state={state}
dealt={state === 'disabled'}
presenterImage={slot('presenter-cutout', __studioImaged68f324f)}
presenterImageAlt='Maya Okafor, founder of Pinpoint, gesturing toward the reasons'
presenterName='Maya Okafor'
presenterRole='Ceramicist and founder of Pinpoint'
productImage={slot('product', __studioImage1007a36c)}
productImageAlt='The Pinpoint course on a tablet beside its printed workbook'
price={sample.price}
regularPrice={sample.regularPrice}
guarantee={sample.guarantee}
/>
)
}
| Name | Type | Details |
|---|---|---|
quote OptionalNewOpportunity5 |
string |
Default 'Everyone told you to post every single day.'
|
emphasis OptionalNewOpportunity5 |
string |
Default 'every single day'
|
lead OptionalNewOpportunity5 |
string |
Default 'Here are three reasons that advice keeps your shop invisible.'
|
presenterImage OptionalNewOpportunity5 |
string |
|
presenterImageAlt OptionalNewOpportunity5 |
string |
Default ''
|
presenterName OptionalNewOpportunity5 |
string |
|
presenterRole OptionalNewOpportunity5 |
string |
|
cracks OptionalNewOpportunity5 |
NewOpportunity5Crack[] |
Default DEFAULT_CRACKS
|
cracksLabel OptionalNewOpportunity5 |
string |
Default 'Three reasons daily posting stops working'
|
dealLabel OptionalNewOpportunity5 |
string |
Default 'Show me the new way'
|
backLabel OptionalNewOpportunity5 |
string |
Default 'The new way'
|
productImage OptionalNewOpportunity5 |
string |
|
productImageAlt OptionalNewOpportunity5 |
string |
Default ''
|
headline OptionalNewOpportunity5 |
string |
Default 'Get found by buyers who are already searching'
|
text OptionalNewOpportunity5 |
string |
Default 'Pinpoint shows you how to turn each listing into a page search engines show, so your sales stop depending on what you posted today.'
|
receiptLabel OptionalNewOpportunity5 |
string |
Default 'Your order'
|
receiptTitle OptionalNewOpportunity5 |
string |
Default 'Pinpoint · Search course for handmade sellers'
|
items OptionalNewOpportunity5 |
NewOpportunity5Line[] |
Default DEFAULT_ITEMS
|
subtotalLabel OptionalNewOpportunity5 |
string |
Default 'Subtotal'
|
discountLabel OptionalNewOpportunity5 |
string |
Default 'Bundle discount'
|
totalLabel OptionalNewOpportunity5 |
string |
Default 'Today'
|
price OptionalNewOpportunity5 |
string |
Default '$47'
|
regularPrice OptionalNewOpportunity5 |
string |
|
question OptionalNewOpportunity5 |
string |
Default 'Ready to be found without posting every day?'
|
ctaLabel OptionalNewOpportunity5 |
string |
Default 'I’m ready, show me how'
|
loadingLabel OptionalNewOpportunity5 |
string |
Default 'Opening checkout…'
|
errorMessage OptionalNewOpportunity5 |
string |
Default 'We couldn’t open checkout. Please try again.'
|
guarantee OptionalNewOpportunity5 |
string |
Default '30-day money-back guarantee'
|
href OptionalNewOpportunity5 |
string |
|
onAction OptionalNewOpportunity5 |
() => void | Promise<void> |
|
onDeal OptionalNewOpportunity5 |
() => void |
|
dealt OptionalNewOpportunity5 |
boolean |
Default false
|
state OptionalNewOpportunity5 |
NewOpportunity5State |
Default 'default'
|
id OptionalNewOpportunity5 |
string |
|
className OptionalNewOpportunity5 |
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-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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
product- The main product shot or cover (ebook, kit, bottle).
-
09bc3d4486616844.webp
image/webp · 23.2 KB
-
1cfee69db426b996.webp
image/webp · 112 KB
-
3b4c097f90def42a.webp
image/webp · 121 KB
-
4788bc008c79471c.webp
image/webp · 13.9 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB