New Opportunity 4
Lets the reader price their own admin hours, recomputes them for the new vehicle and shows the gap, so the switch sells itself.
Use it in a prompt
Use content/new-opportunity-4 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-4.tsx. - Import it and pass your copy and images (Props tab):
import { NewOpportunity4 } from "@/components/funneldna/content/new-opportunity-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/new-opportunity-4/component.tsx 504 lines
// layout: number-rail
// Lets the reader price their own admin hours, recomputes them for the new vehicle and shows the gap, so the switch sells itself.
'use client'
import * as React from 'react'
import { AlertCircle, CalendarCheck, Minus, Plus } from 'lucide-react'
import { FX_HOST, Pattern } from '../fx/fx'
export type NewOpportunity4State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
/** The figures on screen when the action is clicked. */
export type NewOpportunity4Result = {
hoursPerWeek: number
oldYearly: number
newYearly: number
gapYearly: number
gapHours: number
}
export type NewOpportunity4Props = {
headline?: string
/** Phrase inside the headline that gets one marker stroke. */
emphasis?: string
lead?: string
/** The old vehicle, shown as a short struck line. */
oldVehicle?: string
/** Label of the hours field, set as a red subhead. */
fieldLabel?: string
/** Unit shown inside the field. */
unitLabel?: string
placeholder?: string
decreaseLabel?: string
increaseLabel?: string
/** Inline error; {min} and {max} are replaced. */
errorText?: string
/** Red subhead above the old-way yearly cost. */
oldCostHeading?: string
/** The new vehicle, named on the dark half. */
newVehicle?: string
/** The new vehicle's time figure; {newHours} and {unit} are replaced. */
newText?: string
gapHeading?: string
/** {hours} is replaced with the hours back a year. */
gapHoursLabel?: string
/** Legacy: the sticky phone strip is no longer rendered (row 04 shows on phones too). Kept so existing callers type-check. */
stripLabel?: string
/** Legacy: no longer rendered; kept for compatibility. */
stripHoursLabel?: string
/** Small suffix after each yearly figure. */
perYear?: string
/** Formula line: {hours}, {unit}, {rate}, {weeks} are replaced. */
formulaLabel?: string
hourUnit?: string
hoursUnit?: string
/** Screen-reader summary: {old}, {new}, {gap}, {hours} are replaced. */
liveLabel?: string
/** Plain instruction above the button. */
instruction?: string
ctaLabel?: string
/** One short line under the button; nothing renders when omitted. */
reassurance?: string
/** Slot scene: the after-state photo on the dark half. */
sceneImage?: string
sceneImageAlt?: string
/** What one hour of the reader's time is worth. */
hourlyValue?: number
/** Hours a week the new vehicle still takes. */
newHours?: number
weeksPerYear?: number
defaultHours?: number
minHours?: number
maxHours?: number
/** Amount each stepper press adds or removes. */
step?: number
currency?: string
locale?: string
/** Replaces hours × hourlyValue × weeksPerYear; update formulaLabel to match. */
calculate?: (hoursPerWeek: number) => number
/** Navigation destination; the button renders as a link when set. */
href?: string
/** Called on click with the figures on screen. */
onAction?: (result: NewOpportunity4Result) => void
state?: NewOpportunity4State
id?: string
className?: string
}
export function NewOpportunity4({
headline = 'Do the maths on doing it all yourself',
emphasis = 'doing it all yourself',
lead = 'Put in your real hours and watch the gap open up.',
oldVehicle = 'Doing all your own admin',
fieldLabel = 'How many hours a week do you spend on admin now?',
unitLabel = 'hrs / week',
placeholder = 'e.g. 10',
decreaseLabel = 'One hour less',
increaseLabel = 'One hour more',
errorText = 'Enter a number of hours from {min} to {max}.',
oldCostHeading = 'Here’s what that costs you every year',
newVehicle = 'Hand it to a dedicated assistant',
newText = 'Your part drops to about {newHours} {unit} a week.',
gapHeading = 'The gap you take back',
gapHoursLabel = '{hours} hours of your year back',
perYear = 'a year',
formulaLabel = '{hours} {unit} × {rate}/hr × {weeks} weeks',
hourUnit = 'hr',
hoursUnit = 'hrs',
liveLabel = 'The old way costs {old} a year. The new way costs {new}. You take back {gap} and {hours} hours.',
instruction = 'Click the button below to book your call.',
ctaLabel = 'Book my call',
reassurance,
sceneImage,
sceneImageAlt = '',
hourlyValue = 100,
newHours = 1,
weeksPerYear = 48,
defaultHours = 10,
minHours = 1,
maxHours = 60,
step = 1,
currency = 'USD',
locale = 'en-US',
calculate,
href,
onAction,
state = 'default',
id,
className,
}: NewOpportunity4Props) {
const uid = React.useId()
const headId = `${uid}-head`
const fieldId = `${uid}-hours`
const unitId = `${uid}-unit`
const errId = `${uid}-error`
const sample = String(maxHours + 15)
const [raw, setRaw] = React.useState(state === 'error' ? sample : String(defaultHours))
const [kept, setKept] = React.useState(defaultHours)
React.useEffect(() => {
setRaw(state === 'error' ? sample : String(defaultHours))
setKept(defaultHours)
}, [state, sample, defaultHours])
const money = React.useMemo(
() => new Intl.NumberFormat(locale, { style: 'currency', currency, maximumFractionDigits: 0 }),
[locale, currency]
)
const count = React.useMemo(() => new Intl.NumberFormat(locale, { maximumFractionDigits: 1 }), [locale])
const inRange = (n: number) => Number.isFinite(n) && n >= minHours && n <= maxHours
const clamp = (n: number) => Math.min(maxHours, Math.max(minHours, n))
const parsed = toNumber(raw)
const ok = inRange(parsed)
const hours = ok ? parsed : kept
const base = Number.isFinite(parsed) ? clamp(parsed) : kept
const atMin = base <= minHours
const atMax = base >= maxHours
const yearly = (h: number) => (calculate ? calculate(h) : h * hourlyValue * weeksPerYear)
const oldYearly = yearly(hours)
const newYearly = yearly(newHours)
const gapYearly = Math.max(0, oldYearly - newYearly)
const gapHours = Math.max(0, (hours - newHours) * weeksPerYear)
const unitFor = (h: number) => (h === 1 ? hourUnit : hoursUnit)
const formula = (h: number) =>
fill(formulaLabel, {
hours: count.format(h),
unit: unitFor(h),
rate: money.format(hourlyValue),
weeks: count.format(weeksPerYear),
})
const change = (value: string) => {
setRaw(value)
const n = toNumber(value)
if (inRange(n)) setKept(n)
}
const nudge = (dir: 1 | -1) => {
const next = clamp(Math.round((base + dir * step) * 100) / 100)
setRaw(String(next))
setKept(next)
}
const onKey = (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.key === 'ArrowUp' && !atMax) {
e.preventDefault()
nudge(1)
}
if (e.key === 'ArrowDown' && !atMin) {
e.preventDefault()
nudge(-1)
}
}
const disabled = state === 'disabled'
const force = !disabled && (state === 'hover' || state === 'active') ? ` is-${state}` : ''
const click = (e: React.MouseEvent<HTMLElement>) => {
if (disabled) {
e.preventDefault()
return
}
onAction?.({ hoursPerWeek: hours, oldYearly, newYearly, gapYearly, gapHours })
}
const live = fill(liveLabel, {
old: money.format(oldYearly),
new: money.format(newYearly),
gap: money.format(gapYearly),
hours: count.format(gapHours),
})
const cta =
href && !disabled ? (
<a className={`n4-btn${force}`} href={href} onClick={click}>
{ctaLabel}
</a>
) : (
<button type='button' className={`n4-btn${force}`} disabled={disabled} onClick={click}>
{ctaLabel}
</button>
)
return (
<section id={id} className={['cf-new-opportunity-4 n4', className].filter(Boolean).join(' ')} aria-labelledby={headId}>
<style>{CSS}</style>
<div className='n4-old'>
<div
className='n4-fx'
aria-hidden='true'
style={{ ...FX_HOST, position: 'absolute', inset: 0, zIndex: 0, pointerEvents: 'none', overflow: 'hidden' }}
>
<Pattern name='grid' fade='corner' />
</div>
<div className='n4-old-in'>
<h2 id={headId} className='n4-h n4-rv'>
<Emph text={headline} emphasis={emphasis} />
</h2>
{lead ? (
<p className='n4-lead n4-rv' style={{ '--d': 1 } as React.CSSProperties}>
{lead}
</p>
) : null}
<div className='n4-rows'>
<div className='n4-row n4-rv' style={{ '--d': 2 } as React.CSSProperties}>
<span className='n4-num' aria-hidden='true'>01</span>
<div className='n4-body'>
{oldVehicle ? (
<p className='n4-strike'>
<s>{oldVehicle}</s>
</p>
) : null}
<label htmlFor={fieldId} className='n4-ask'>
{fieldLabel}
</label>
<div className='n4-step'>
<button
type='button'
className='n4-sb'
aria-label={decreaseLabel}
aria-controls={fieldId}
disabled={atMin}
onClick={() => nudge(-1)}
>
<Minus size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
<div className='n4-fld' data-invalid={ok ? undefined : ''}>
<input
id={fieldId}
type='text'
inputMode='decimal'
autoComplete='off'
value={raw}
placeholder={placeholder}
aria-invalid={ok ? undefined : true}
aria-describedby={ok ? unitId : `${unitId} ${errId}`}
onChange={(e) => change(e.target.value)}
onKeyDown={onKey}
/>
<span id={unitId} className='n4-unit'>
{unitLabel}
</span>
</div>
<button
type='button'
className={`n4-sb${force}`}
aria-label={increaseLabel}
aria-controls={fieldId}
disabled={atMax}
onClick={() => nudge(1)}
>
<Plus size={20} strokeWidth={2.5} aria-hidden='true' />
</button>
</div>
<p id={errId} className='n4-err' aria-live='polite'>
{ok ? null : (
<>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' />
{fill(errorText, { min: count.format(minHours), max: count.format(maxHours) })}
</>
)}
</p>
</div>
</div>
<div className='n4-row n4-rv' style={{ '--d': 3 } as React.CSSProperties}>
<span className='n4-num' aria-hidden='true'>02</span>
<div className='n4-body'>
<h3 className='n4-sub'>{oldCostHeading}</h3>
<p className='n4-out'>
<span key={oldYearly} className='n4-tick'>{money.format(oldYearly)}</span>
<span className='n4-yr'>{perYear}</span>
</p>
<p className='n4-f'>{formula(hours)}</p>
</div>
</div>
</div>
</div>
</div>
<div className='n4-new'>
{sceneImage ? (
<img
className='n4-photo n4-rv'
style={{ '--d': 1 } as React.CSSProperties}
src={sceneImage}
alt={sceneImageAlt}
width={1200}
height={600}
loading='lazy'
decoding='async'
/>
) : null}
<div className='n4-row n4-rv' style={{ '--d': 2 } as React.CSSProperties}>
<span className='n4-num' aria-hidden='true'>03</span>
<div className='n4-body'>
<h3 className='n4-vehicle'>{newVehicle}</h3>
{newText ? (
<p className='n4-ntext'>{fill(newText, { newHours: count.format(newHours), unit: unitFor(newHours) })}</p>
) : null}
<p className='n4-out'>
<span key={newYearly} className='n4-tick'>{money.format(newYearly)}</span>
<span className='n4-yr'>{perYear}</span>
</p>
<p className='n4-f'>{formula(newHours)}</p>
</div>
</div>
</div>
<div className='n4-gap'>
<div className='n4-row'>
<span className='n4-num' aria-hidden='true'>04</span>
<div className='n4-gap-body'>
<h3 className='n4-gap-h'>{gapHeading}</h3>
<p className='n4-money'>
<span key={gapYearly} className='n4-tick'>{money.format(gapYearly)}</span>
</p>
<p className='n4-gap-hours'>{fill(gapHoursLabel, { hours: count.format(gapHours) })}</p>
</div>
</div>
</div>
<div className='n4-act'>
<div className='n4-act-in'>
{instruction ? <p className='n4-ins'>{instruction}</p> : null}
{cta}
{reassurance ? (
<p className='n4-note'>
<CalendarCheck size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
</div>
</div>
<p className='n4-sr' aria-live='polite'>{live}</p>
</section>
)
}
export default NewOpportunity4
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='n4-mark'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
function toNumber(value: string) {
const text = value.trim().replace(',', '.')
if (text === '') return Number.NaN
return Number(text)
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((text, key) => text.split(`{${key}}`).join(values[key]), template)
}
const CSS = `
.n4{--n4-g:clamp(16px,5vw,48px);--n4-edge:max(var(--n4-g),calc((100cqw - 1120px) / 2));--n4-in:clamp(32px,4vw,64px);--n4-pt:clamp(56px,8vw,112px);--n4-pb:clamp(64px,8.5vw,120px);--n4-rail:5rem;--n4-h1:clamp(2.5rem,5.4vw,4.875rem);--n4-h2:clamp(2rem,3.6vw,3.25rem);--n4-h3:clamp(1.3125rem,1.8vw,1.625rem);--n4-lead:clamp(1.125rem,1.5vw,1.375rem);--n4-body:clamp(1.0625rem,1.25vw,1.125rem);--n4-small:.9375rem;--n4-num:clamp(2.5rem,4.2vw,3.75rem);--n4-shade:var(--shadow,oklch(0.22 0.03 260));--n4-red:var(--subhead-ink,var(--danger));--n4-marker:var(--marker,#fae37c);--n4-marker-ink:var(--marker-ink,var(--ink));position:relative;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;overflow-x:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body);font-size:var(--n4-body);line-height:1.5}
.n4 *,.n4 *::before,.n4 *::after{box-sizing:border-box}
.n4 :where(h2,h3,p){margin:0}
.n4-old{position:relative;grid-column:1;grid-row:1 / 4;padding:var(--n4-pt) var(--n4-in) var(--n4-pb) var(--n4-edge);background:var(--surface);color:var(--ink)}
.n4-old-in{position:sticky;top:24px;z-index:1}
.n4-h{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:var(--n4-h2);line-height:1.06;color:var(--ink);text-wrap:balance}
.n4-mark{padding:0 .08em;border-radius:.12em .3em .18em .34em;background-image:linear-gradient(var(--n4-marker),var(--n4-marker));background-repeat:no-repeat;background-size:100% 86%;background-position:0 72%;color:var(--n4-marker-ink);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.n4-lead{margin-top:16px;max-width:46ch;font-size:var(--n4-lead);font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.n4-rows{display:grid;gap:40px;margin-top:40px}
.n4-row{display:grid;grid-template-columns:var(--n4-rail) minmax(0,1fr);column-gap:16px}
.n4-num{display:flex;flex-direction:column;align-items:center;font-family:var(--font-display);font-weight:800;font-size:var(--n4-h2);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--muted)}
.n4-num::after{content:'';flex:1;width:2px;min-height:24px;margin-top:16px;border-radius:2px;background:oklch(from var(--ink) l c h / .14)}
.n4-body{min-width:0}
.n4-strike{font-family:var(--font-display);font-weight:800;font-size:var(--n4-h3);line-height:1.15;letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.n4-strike s{text-decoration-line:line-through;text-decoration-color:var(--danger);text-decoration-thickness:.12em}
.n4-ask,.n4-sub{display:block;font-family:var(--font-display);font-weight:800;font-size:var(--n4-h3);line-height:1.15;letter-spacing:-0.01em;color:var(--n4-red);text-wrap:balance}
.n4-ask{margin:16px 0;color:var(--ink)}
.n4-sub{margin-bottom:12px}
.n4-step{display:flex;gap:8px;max-width:24rem}
.n4-sb{flex:none;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;padding:0;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:pointer;touch-action:manipulation}
.n4-sb:hover:not(:disabled),.n4-sb.is-hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .05) c h)}
.n4-sb:active:not(:disabled),.n4-sb.is-active:not(:disabled){transform:translateY(1px);background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .09) c h);box-shadow:inset 0 2px 3px oklch(from var(--n4-shade) l c h / .28)}
.n4-sb:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.n4-sb:disabled{cursor:not-allowed;box-shadow:none;background:color-mix(in oklch,var(--ink) 5%,var(--surface));color:color-mix(in oklch,var(--ink) 38%,var(--surface))}
.n4-fld{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:56px;padding:0 16px;border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));background:var(--field,#fff);color:var(--field-ink,#101828)}
.n4-fld:focus-within{border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
.n4-fld[data-invalid]{border-color:var(--danger)}
.n4-fld[data-invalid]:focus-within{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.n4-fld input{flex:1;min-width:0;width:100%;height:100%;padding:0;border:0;outline:0;background:var(--field,#fff);color:var(--field-ink,#101828);font-family:var(--font-display);font-weight:800;font-size:var(--n4-h3);font-variant-numeric:tabular-nums;text-align:right}
.n4-fld input::placeholder{color:color-mix(in oklch,var(--field-ink,#101828) 65%,var(--field,#fff));opacity:1}
.n4-unit{flex:none;font-size:var(--n4-small);font-weight:600;color:var(--field-ink,#101828);white-space:nowrap}
.n4-err{color:var(--danger);font-size:var(--n4-small);font-weight:600;line-height:1.4;text-wrap:pretty}
.n4-err:not(:empty){margin-top:8px}
.n4-err svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.n4-out{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px;font-family:var(--font-display);font-weight:800;font-size:var(--n4-num);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.n4-out > span:first-child{white-space:nowrap}
.n4-yr{font-family:var(--font-body);font-size:var(--n4-small);font-weight:600;letter-spacing:0}
.n4-f{margin-top:12px;font-size:var(--n4-small);font-weight:600;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums;text-wrap:pretty}
.n4-new,.n4-gap,.n4-act{grid-column:2;background:var(--band);color:var(--band-ink)}
.n4-new{grid-row:1;padding:var(--n4-pt) var(--n4-edge) 0 var(--n4-in)}
.n4-photo{display:block;width:100%;height:auto;aspect-ratio:2 / 1;object-fit:cover;object-position:50% 40%;border-radius:12px;margin-bottom:40px}
.n4-new .n4-num,.n4-gap .n4-num{color:oklch(from var(--band-ink) l c h / .72)}
.n4-new .n4-num::after,.n4-gap .n4-num::after{background:oklch(from var(--band-ink) l c h / .22)}
.n4-vehicle{font-family:var(--font-display);font-weight:800;font-size:var(--n4-h3);line-height:1.15;letter-spacing:-0.01em;color:var(--band-ink);text-wrap:balance}
.n4-ntext{margin:12px 0 24px;font-size:var(--n4-body);line-height:1.5;color:var(--band-ink);text-wrap:pretty}
.n4-new .n4-out{color:var(--band-ink)}
.n4-new .n4-f{color:var(--band-ink)}
.n4-gap{position:relative;z-index:2;grid-row:2;padding:40px var(--n4-edge) 0 var(--n4-in)}
.n4-gap-body{min-width:0;container-type:inline-size}
.n4-gap-h{margin-bottom:12px;font-family:var(--font-display);font-weight:800;font-size:var(--n4-h3);line-height:1.15;letter-spacing:-0.01em;color:var(--band-ink);text-wrap:balance}
.n4-money{font-family:var(--font-display);font-weight:800;font-size:min(var(--n4-h1),17cqi);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--band-ink)}
.n4-gap-hours{margin-top:16px;font-size:var(--n4-lead);font-weight:500;line-height:1.4;color:var(--band-ink);font-variant-numeric:tabular-nums;text-wrap:pretty}
.n4-act{grid-row:3;padding:40px var(--n4-edge) var(--n4-pb) var(--n4-in)}
.n4-act-in{margin-inline-start:calc(var(--n4-rail) + 16px)}
.n4-ins{margin-bottom:24px;font-size:var(--n4-lead);font-weight:700;line-height:1.4;color:var(--band-ink);text-wrap:pretty}
.n4-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:72px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .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-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--n4-shade) calc(l - .08) c h / .4),0 8px 16px -6px oklch(from var(--n4-shade) calc(l - .08) c h / .55));cursor:pointer;-webkit-tap-highlight-color:transparent}
.n4-btn:hover:not(:disabled),.n4-btn.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--n4-shade) calc(l - .08) c h / .45),0 10px 18px -6px oklch(from var(--n4-shade) calc(l - .08) c h / .65)}
.n4-btn:active:not(:disabled),.n4-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .2) c h / .6),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .18) c h),0 1px 2px oklch(from var(--n4-shade) calc(l - .08) c h / .4)}
.n4-btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.n4-btn:disabled{cursor:not-allowed;background:oklch(from var(--band-ink) l c h / .16);color:oklch(from var(--band-ink) l c h / .72);box-shadow:none;text-shadow:none;transform:none}
.n4-note{margin-top:12px;font-size:var(--n4-small);font-weight:600;line-height:1.4;color:var(--band-ink);text-align:center;text-wrap:pretty}
.n4-note svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.n4-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:880px){
.n4{display:block;--n4-rail:3.25rem}
.n4-old{padding:56px var(--n4-g) 48px}
.n4-old-in{position:relative;top:auto}
.n4-rows{gap:32px;margin-top:32px}
.n4-row{column-gap:12px}
.n4-new{padding:56px var(--n4-g) 40px}
.n4-photo{margin-bottom:32px}
.n4-gap{padding:0 var(--n4-g)}
.n4-act{padding:40px var(--n4-g) 64px}
.n4-act-in{margin-inline-start:0}
}
@media (max-width:520px){
.n4-fld{flex-direction:column;justify-content:center;align-items:stretch;gap:2px;padding:4px 8px}
.n4-fld input{flex:none;height:28px;line-height:1;text-align:center}
.n4-unit{font-size:.875rem;line-height:1.2;text-align:center}
}
@media (prefers-reduced-motion:no-preference){
.n4-rv{animation:n4-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--d,0) * .07s),.28s)}
.n4-tick{display:inline-block;animation:n4-tick .3s cubic-bezier(.2,.7,.2,1) both}
.n4-sb,.n4-btn,.n4-fld{transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
}
@keyframes n4-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes n4-tick{from{opacity:.6;transform:translateY(-.1em)}to{opacity:1;transform:none}}
`
pieces/content/new-opportunity-4/specimen.tsx 39 lines
import __studioImage9a320ad2 from "../assets/715fdf22a62be091.webp";
// Specimen: Clockwise, a fictional done-for-you virtual assistant agency for consultants.
import { NewOpportunity4, type NewOpportunity4State } from '../new-opportunity-4'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function NewOpportunity4Specimen({ state = 'default' }: { state?: NewOpportunity4State }) {
return (
<NewOpportunity4
state={state}
headline='What is doing your own admin really costing you?'
emphasis='really costing you'
lead='Put in your honest hours. Then see what changes with Clockwise.'
oldVehicle='Doing all your own admin'
fieldLabel='How many hours a week do you spend on admin now?'
oldCostHeading='Here’s what that costs you every year'
newVehicle='Hand it to your own Clockwise assistant'
newText='Your part drops to about {newHours} {unit} a week: one handover call and a quick review.'
gapHeading='The gap you take back'
gapHoursLabel='{hours} hours a year back for client work'
instruction='Click the button below to book your free 20-minute fit call.'
ctaLabel='Book my call'
reassurance='Free 20-minute call · No obligation'
hourlyValue={150}
newHours={1.5}
weeksPerYear={48}
defaultHours={10}
minHours={1}
maxHours={60}
sceneImage={slot(
'scene',
__studioImage9a320ad2
)}
sceneImageAlt='A consultant closing her laptop at the end of an unhurried workday'
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalNewOpportunity4 |
string |
Default 'Do the maths on doing it all yourself'
|
emphasis OptionalNewOpportunity4 |
string |
Default 'doing it all yourself'
|
lead OptionalNewOpportunity4 |
string |
Default 'Put in your real hours and watch the gap open up.'
|
oldVehicle OptionalNewOpportunity4 |
string |
Default 'Doing all your own admin'
|
fieldLabel OptionalNewOpportunity4 |
string |
Default 'How many hours a week do you spend on admin now?'
|
unitLabel OptionalNewOpportunity4 |
string |
Default 'hrs / week'
|
placeholder OptionalNewOpportunity4 |
string |
Default 'e.g. 10'
|
decreaseLabel OptionalNewOpportunity4 |
string |
Default 'One hour less'
|
increaseLabel OptionalNewOpportunity4 |
string |
Default 'One hour more'
|
errorText OptionalNewOpportunity4 |
string |
Default 'Enter a number of hours from {min} to {max}.'
|
oldCostHeading OptionalNewOpportunity4 |
string |
Default 'Here’s what that costs you every year'
|
newVehicle OptionalNewOpportunity4 |
string |
Default 'Hand it to a dedicated assistant'
|
newText OptionalNewOpportunity4 |
string |
Default 'Your part drops to about {newHours} {unit} a week.'
|
gapHeading OptionalNewOpportunity4 |
string |
Default 'The gap you take back'
|
gapHoursLabel OptionalNewOpportunity4 |
string |
Default '{hours} hours of your year back'
|
stripLabel OptionalNewOpportunity4 |
string |
|
stripHoursLabel OptionalNewOpportunity4 |
string |
|
perYear OptionalNewOpportunity4 |
string |
Default 'a year'
|
formulaLabel OptionalNewOpportunity4 |
string |
Default '{hours} {unit} × {rate}/hr × {weeks} weeks'
|
hourUnit OptionalNewOpportunity4 |
string |
Default 'hr'
|
hoursUnit OptionalNewOpportunity4 |
string |
Default 'hrs'
|
liveLabel OptionalNewOpportunity4 |
string |
Default 'The old way costs {old} a year. The new way costs {new}. You take back {gap} and {hours} hours.'
|
instruction OptionalNewOpportunity4 |
string |
Default 'Click the button below to book your call.'
|
ctaLabel OptionalNewOpportunity4 |
string |
Default 'Book my call'
|
reassurance OptionalNewOpportunity4 |
string |
|
sceneImage OptionalNewOpportunity4 |
string |
|
sceneImageAlt OptionalNewOpportunity4 |
string |
Default ''
|
hourlyValue OptionalNewOpportunity4 |
number |
Default 100
|
newHours OptionalNewOpportunity4 |
number |
Default 1
|
weeksPerYear OptionalNewOpportunity4 |
number |
Default 48
|
defaultHours OptionalNewOpportunity4 |
number |
Default 10
|
minHours OptionalNewOpportunity4 |
number |
Default 1
|
maxHours OptionalNewOpportunity4 |
number |
Default 60
|
step OptionalNewOpportunity4 |
number |
Default 1
|
currency OptionalNewOpportunity4 |
string |
Default 'USD'
|
locale OptionalNewOpportunity4 |
string |
Default 'en-US'
|
calculate OptionalNewOpportunity4 |
(hoursPerWeek: number) => number |
|
href OptionalNewOpportunity4 |
string |
|
onAction OptionalNewOpportunity4 |
(result: NewOpportunity4Result) => void |
|
state OptionalNewOpportunity4 |
NewOpportunity4State |
Default 'default'
|
id OptionalNewOpportunity4 |
string |
|
className OptionalNewOpportunity4 |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- 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.
scene- A wide atmosphere photo behind or beside the copy.
-
715fdf22a62be091.webp
image/webp · 62.7 KB