New Opportunity 2
Plots every old way the reader has tried in the losing corners of one map and puts the new vehicle alone in the winning corner, then asks for the action.
Use it in a prompt
Use content/new-opportunity-2 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-2.tsx. - Import it and pass your copy and images (Props tab):
import { NewOpportunity2 } from "@/components/funneldna/content/new-opportunity-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/new-opportunity-2/component.tsx 481 lines
// layout: advertorial-front
// Plots every old way the reader has tried in the losing corners of one map and puts the new vehicle alone in the winning corner, then asks for the action.
'use client'
import * as React from 'react'
import { Loader2, X } from 'lucide-react'
export type NewOpportunity2Way = {
name: string
/** Horizontal position, 0 (left end of the axis) to 100 (right end). */
x: number
/** Vertical position, 0 (bottom) to 100 (top). */
y: number
/** One line on why this way lands where it does; revealed on hover or focus. */
reason: string
/** Side of the dot its name sits on. */
side?: 'left' | 'right'
}
export type NewOpportunity2State = 'default' | 'hover' | 'active' | 'disabled'
export type NewOpportunity2Props = {
/** Publication name in the advertorial masthead. */
publication?: string
/** Advertorial disclosure in the masthead; empty hides it. */
disclosure?: string
dateline?: string
headline?: string
/** Phrase inside the headline that gets one marker-highlighter stroke. */
emphasis?: string
lead?: string
xTitle?: string
xLow?: string
xHigh?: string
yTitle?: string
yLow?: string
yHigh?: string
/** The old vehicles, plotted as grey dots in the losing corners. */
ways?: NewOpportunity2Way[]
/** Position of the new vehicle, 0 to 100 on each axis. */
vehicleX?: number
vehicleY?: number
/** Caption inside the winning corner. */
winLabel?: string
/** Accessible name for the map. */
mapLabel?: string
/** Accessible label for the new mark; placeholders {name} and {corner}. */
markLabel?: string
/** Line under the map telling the reader the dots respond. */
hint?: string
/** Accessible name for the phone list of reasons. */
reasonsLabel?: string
/** Caption under the map: the new opportunity versus improvement line. */
caption?: string
/** Bold opening of the verdict sentence. */
verdictLead?: string
verdict?: string
/** Slot scene: the photo inside the offer card. */
sceneImage?: string
sceneImageAlt?: string
vehicleName?: string
promise?: string
/** The question the button answers. */
question?: string
ctaLabel?: string
loadingLabel?: string
/** One short line under the button. */
note?: string
/** Navigation destination; the button renders as a link when set. */
href?: string
/** Called on click. A returned promise shows the loading label. */
onAction?: () => void | Promise<void>
state?: NewOpportunity2State
id?: string
className?: string
}
const DEFAULT_WAYS: NewOpportunity2Way[] = [
{ name: 'Public load boards', x: 30, y: 36, reason: 'You refresh all day and race every other carrier to the same post.' },
{ name: 'Broker phone calls', x: 10, y: 10, reason: 'Hours of calls and haggling to book one lane, then you start again tomorrow.' },
{ name: 'Hiring a dispatcher', x: 18, y: 76, reason: 'Hands-off, but you wait on one person’s broker list and pay a cut of every load.' },
{ name: 'Load board alerts', x: 60, y: 22, reason: 'The alert is fast. Calling, haggling and booking the load is still all on you.' },
]
export function NewOpportunity2({
publication = 'The Small Fleet Report',
disclosure = 'Advertisement',
dateline = 'Special report for fleets of 2 to 20 trucks',
headline = 'Stop chasing loads faster. Start where the loads come to you.',
emphasis = 'the loads come to you',
lead = 'Every way you’ve found freight so far sits in the same three corners. Freightlane sits alone in the fourth.',
xTitle = 'Speed to a booked load',
xLow = 'Slow',
xHigh = 'Fast',
yTitle = 'Time it takes from you',
yLow = 'Hands-on',
yHigh = 'Hands-off',
ways = DEFAULT_WAYS,
vehicleX = 80,
vehicleY = 74,
winLabel = 'Fast and hands-off',
mapLabel = 'Map of ways to find freight, by speed and by the time each takes from you',
markLabel = '{name}, alone in the {corner} corner',
hint = 'Hover or tap a grey dot to see why it stalls.',
reasonsLabel = 'Why each old way lands where it does',
caption = 'Not a better version of what you’ve tried. A different place on the map.',
verdictLead = 'Every old way keeps you on the phone.',
verdict = 'You search, you call, you haggle, so your trucks only move as fast as your free hours.',
sceneImage,
sceneImageAlt = '',
vehicleName = 'Freightlane',
promise = 'Loads matched to each truck’s next empty mile and sent to you before it unloads. Tap approve and the booking is done.',
question = 'Ready to stop hunting for your next load?',
ctaLabel = 'Yes, show me my matches',
loadingLabel = 'Finding your matches…',
note = 'Free fleet walkthrough · No contract',
href,
onAction,
state = 'default',
id,
className,
}: NewOpportunity2Props) {
const uid = React.useId().replace(/:/g, '')
const headId = `no2-${uid}-h`
const capId = `no2-${uid}-cap`
const cardId = `no2-${uid}-card`
const plotRef = React.useRef<HTMLDivElement>(null)
const alive = React.useRef(true)
const [hovered, setHovered] = React.useState<number | null>(null)
const [focused, setFocused] = React.useState<number | null>(null)
const [pinned, setPinned] = React.useState<number | null>(null)
const [escaped, setEscaped] = React.useState(false)
const [busy, setBusy] = React.useState(false)
React.useEffect(() => {
alive.current = true
return () => {
alive.current = false
}
}, [])
React.useEffect(() => {
if (pinned === null) return
const onDown = (event: PointerEvent) => {
if (plotRef.current && !plotRef.current.contains(event.target as Node)) setPinned(null)
}
document.addEventListener('pointerdown', onDown)
return () => document.removeEventListener('pointerdown', onDown)
}, [pinned])
const disabled = state === 'disabled'
const forcedOpen = (state === 'hover' || state === 'active') && ways.length > 0 ? 0 : null
const open = escaped ? null : pinned ?? focused ?? hovered ?? forcedOpen
const vx = clamp(vehicleX)
const vy = clamp(vehicleY)
const handle = async (event: React.MouseEvent<HTMLElement>) => {
if (disabled || busy) {
event.preventDefault()
return
}
if (!onAction) return
let result: void | Promise<void>
try {
result = onAction()
} catch {
return
}
if (!result || typeof (result as Promise<void>).then !== 'function') return
setBusy(true)
try {
await result
} catch {
// the builder wires what happens after a failed action
} finally {
if (alive.current) setBusy(false)
}
}
const btnClass = [
'no2-btn',
!disabled && state === 'hover' ? 'is-hover' : '',
!disabled && state === 'active' ? 'is-active' : '',
busy ? 'is-busy' : '',
].filter(Boolean).join(' ')
const btnInner = busy ? (
<>
<Loader2 className='no2-spin' size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{loadingLabel}</span>
</>
) : (
<span>{ctaLabel}</span>
)
const asLink = Boolean(href) && !disabled
return (
<section id={id} className={['cf-new-opportunity-2', className].filter(Boolean).join(' ')} aria-labelledby={headId}>
<style>{CSS}</style>
<div className='no2-in'>
<div className='no2-mast'>
<p className='no2-pub'>{publication}</p>
{disclosure || dateline ? (
<p className='no2-meta'>
{disclosure ? <span>{disclosure}</span> : null}
{disclosure && dateline ? <span aria-hidden='true'>·</span> : null}
{dateline ? <span>{dateline}</span> : null}
</p>
) : null}
</div>
<header className='no2-head no2-rv'>
<h2 id={headId} className='no2-h'><Emph text={headline} emphasis={emphasis} /></h2>
{lead ? <p className='no2-lead'>{lead}</p> : null}
</header>
<div className='no2-body'>
<figure className='no2-fig no2-rv' style={{ '--d': 1 } as React.CSSProperties} aria-labelledby={capId}>
<div className='no2-chart'>
<div className='no2-yaxis' aria-hidden='true'>
<span className='no2-end'>{yHigh}</span>
<span className='no2-ytitle'>{yTitle}</span>
<span className='no2-end'>{yLow}</span>
</div>
<div
className='no2-plot'
ref={plotRef}
role='group'
aria-label={mapLabel}
onKeyDown={(event) => {
if (event.key === 'Escape') {
setEscaped(true)
setPinned(null)
}
}}
>
<div className='no2-win'>
{winLabel ? <span className='no2-win-label'>{winLabel}</span> : null}
</div>
{ways.map((way, i) => {
const x = clamp(way.x)
const y = clamp(way.y)
const tipId = `no2-${uid}-tip-${i}`
return (
<div
key={`${way.name}-${i}`}
className='no2-pt'
data-side={way.side ?? 'right'}
data-v={y >= 55 ? 'below' : 'above'}
data-h={x < 32 ? 'start' : x > 68 ? 'end' : 'mid'}
data-open={open === i ? '' : undefined}
style={{ left: `${x}%`, top: `${100 - y}%`, '--d': i } as React.CSSProperties}
>
<button
type='button'
className='no2-dot'
aria-describedby={tipId}
onMouseEnter={() => {
setEscaped(false)
setHovered(i)
}}
onMouseLeave={() => setHovered((h) => (h === i ? null : h))}
onFocus={() => {
setEscaped(false)
setFocused(i)
}}
onBlur={() => setFocused((f) => (f === i ? null : f))}
onClick={() => {
setEscaped(false)
setPinned((p) => (p === i ? null : i))
}}
>
<span className='no2-pip' aria-hidden='true' />
<span className='no2-name'>{way.name}</span>
</button>
<span role='tooltip' id={tipId} className='no2-tip'>
<span className='no2-tip-name'>
<span className='no2-badge no2-badge-sm' aria-hidden='true'><X size={12} strokeWidth={3} /></span>
{way.name}
</span>
<span className='no2-tip-text'>{way.reason}</span>
</span>
</div>
)
})}
<div
className='no2-win-pt'
role='img'
aria-label={markLabel.split('{name}').join(vehicleName).split('{corner}').join(winLabel)}
style={{ left: `${vx}%`, top: `${100 - vy}%` }}
>
<span className='no2-win-mark' aria-hidden='true' />
<span className='no2-win-tag' aria-hidden='true'>{vehicleName}</span>
</div>
</div>
<div className='no2-xaxis' aria-hidden='true'>
<span className='no2-end'>{xLow}</span>
<span className='no2-xtitle'>{xTitle}</span>
<span className='no2-end'>{xHigh}</span>
</div>
</div>
{hint ? <p className='no2-hint'>{hint}</p> : null}
{ways.length > 0 ? (
<ol className='no2-reasons' aria-label={reasonsLabel}>
{ways.map((way, i) => (
<li key={`${way.name}-${i}`} className='no2-reason' data-on={open === i ? '' : undefined}>
<span className='no2-badge' aria-hidden='true'><X size={14} strokeWidth={3} /></span>
<p><strong>{way.name}</strong> {way.reason}</p>
</li>
))}
</ol>
) : null}
{caption ? <figcaption id={capId} className='no2-cap'>{caption}</figcaption> : null}
</figure>
<div className='no2-side no2-rv' style={{ '--d': 2 } as React.CSSProperties}>
{verdictLead || verdict ? (
<p className='no2-verdict'>
{verdictLead ? <strong>{verdictLead}</strong> : null}
{verdictLead && verdict ? ' ' : null}
{verdict}
</p>
) : null}
<article className='no2-card' aria-labelledby={cardId}>
{sceneImage ? (
<img className='no2-img' src={sceneImage} alt={sceneImageAlt} width={960} height={600} loading='lazy' decoding='async' />
) : null}
<h3 id={cardId} className='no2-card-h'>{vehicleName}</h3>
{promise ? <p className='no2-promise'>{promise}</p> : null}
{question ? <p className='no2-q'>{question}</p> : null}
{asLink ? (
<a className={btnClass} href={href} onClick={handle} aria-busy={busy || undefined}>
{btnInner}
</a>
) : (
<button type='button' className={btnClass} onClick={handle} disabled={disabled} aria-busy={busy || undefined}>
{btnInner}
</button>
)}
{note ? <p className='no2-note'>{note}</p> : null}
</article>
</div>
</div>
</div>
</section>
)
}
export default NewOpportunity2
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='no2-mk'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
function clamp(n: number) {
return Math.min(96, Math.max(4, Number.isFinite(n) ? n : 50))
}
const CSS = `
.cf-new-opportunity-2{--no2-marker:color-mix(in oklch,var(--marker,#fae37c) 62%,var(--surface,#ffffff));--no2-well:color-mix(in oklch,var(--ink,#101828) 4%,var(--surface,#ffffff));--no2-line:oklch(from var(--ink,#101828) l c h / .14);--no2-sh:var(--shadow,oklch(.22 .03 260));position:relative;background:var(--surface,#ffffff);color:var(--ink,#101828);font-family:var(--font-body,system-ui,sans-serif);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);overflow-x:clip}
.cf-new-opportunity-2 *,.cf-new-opportunity-2 *::before,.cf-new-opportunity-2 *::after{box-sizing:border-box}
.cf-new-opportunity-2 :where(h2,h3,p,ol,li,figure,figcaption){margin:0;padding:0}
.cf-new-opportunity-2 .no2-in{max-width:1120px;margin-inline:auto}
.cf-new-opportunity-2 .no2-mast{display:flex;flex-direction:column;align-items:center;gap:8px;padding-bottom:16px;border-bottom:1px solid var(--no2-line);text-align:center}
.cf-new-opportunity-2 .no2-pub{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink,#101828)}
.cf-new-opportunity-2 .no2-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#4a5565)}
.cf-new-opportunity-2 .no2-head{margin-top:clamp(32px,4vw,48px);text-align:center}
.cf-new-opportunity-2 .no2-h{font-family:var(--font-display,inherit);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;color:var(--ink,#101828)}
.cf-new-opportunity-2 .no2-mk{background-image:linear-gradient(transparent 54%,var(--no2-marker) 54%,var(--no2-marker) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.06em;border-radius:.1em}
.cf-new-opportunity-2 .no2-lead{max-width:46rem;margin:16px auto 0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted,#4a5565);text-wrap:pretty}
.cf-new-opportunity-2 .no2-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:start;margin-top:clamp(40px,5vw,64px)}
.cf-new-opportunity-2 .no2-fig{min-width:0}
.cf-new-opportunity-2 .no2-chart{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:12px}
.cf-new-opportunity-2 .no2-yaxis{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding-block:4px}
.cf-new-opportunity-2 .no2-yaxis span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;font-size:.875rem;line-height:1.2}
.cf-new-opportunity-2 .no2-end{font-weight:800;color:var(--ink,#101828)}
.cf-new-opportunity-2 .no2-ytitle,.cf-new-opportunity-2 .no2-xtitle{font-weight:600;color:var(--muted,#4a5565)}
.cf-new-opportunity-2 .no2-xaxis{grid-column:2;grid-row:2;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:baseline;font-size:.875rem;line-height:1.2}
.cf-new-opportunity-2 .no2-xtitle{text-align:center;text-wrap:balance}
.cf-new-opportunity-2 .no2-plot{position:relative;isolation:isolate;grid-column:2;grid-row:1;aspect-ratio:6 / 5;border-radius:var(--radius,12px);background:var(--no2-well);border:1px solid var(--no2-line)}
.cf-new-opportunity-2 .no2-plot::before,.cf-new-opportunity-2 .no2-plot::after{content:'';position:absolute;z-index:1;background:var(--no2-line);pointer-events:none}
.cf-new-opportunity-2 .no2-plot::before{left:50%;top:0;bottom:0;width:1px}
.cf-new-opportunity-2 .no2-plot::after{top:50%;left:0;right:0;height:1px}
.cf-new-opportunity-2 .no2-win{position:absolute;z-index:0;left:50%;top:0;right:0;bottom:50%;display:flex;justify-content:flex-end;align-items:flex-start;padding:12px 14px;border-top-right-radius:inherit;background:color-mix(in oklch,var(--accent,#2457c5) 10%,var(--card,#ffffff))}
.cf-new-opportunity-2 .no2-win-label{max-width:9em;font-size:.875rem;font-weight:800;line-height:1.2;text-align:right;color:var(--ink,#101828);text-wrap:balance}
.cf-new-opportunity-2 .no2-pt{position:absolute;z-index:2;width:0;height:0}
.cf-new-opportunity-2 .no2-pt[data-open]{z-index:5}
.cf-new-opportunity-2 .no2-dot{position:absolute;top:-22px;left:-22px;display:flex;align-items:center;gap:8px;width:max-content;height:44px;padding:0 10px 0 13px;border:0;border-radius:999px;background:none;color:var(--muted,#4a5565);font:inherit;font-size:.9375rem;font-weight:700;line-height:1.15;text-align:left;cursor:pointer}
.cf-new-opportunity-2 .no2-pt[data-side='left'] .no2-dot{left:auto;right:-22px;flex-direction:row-reverse;padding:0 13px 0 10px;text-align:right}
.cf-new-opportunity-2 .no2-pip{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--card,#ffffff);background:color-mix(in oklch,var(--ink,#101828) 36%,var(--surface,#ffffff));box-shadow:0 1px 2px oklch(from var(--no2-sh) l c h / .3)}
.cf-new-opportunity-2 .no2-name{max-width:10em;text-wrap:balance}
.cf-new-opportunity-2 .no2-dot:hover,.cf-new-opportunity-2 .no2-pt[data-open] .no2-dot{color:var(--ink,#101828)}
.cf-new-opportunity-2 .no2-dot:hover .no2-pip,.cf-new-opportunity-2 .no2-pt[data-open] .no2-pip{background:var(--ink,#101828);transform:scale(1.15)}
.cf-new-opportunity-2 .no2-dot:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2457c5));outline-offset:1px}
.cf-new-opportunity-2 .no2-tip{position:absolute;width:min(272px,62vw);padding:12px 14px;border-radius:10px;background:var(--band,#1b2a4a);color:var(--band-ink,#ffffff);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty;box-shadow:var(--shadow-lg,0 2px 4px oklch(.22 .03 260 / .22),0 12px 24px -8px oklch(.22 .03 260 / .32));opacity:0;visibility:hidden;pointer-events:none;transform:translateY(4px)}
.cf-new-opportunity-2 .no2-pt[data-v='above'] .no2-tip{bottom:26px}
.cf-new-opportunity-2 .no2-pt[data-v='below'] .no2-tip{top:26px}
.cf-new-opportunity-2 .no2-pt[data-h='start'] .no2-tip{left:-16px}
.cf-new-opportunity-2 .no2-pt[data-h='end'] .no2-tip{right:-16px}
.cf-new-opportunity-2 .no2-pt[data-h='mid'] .no2-tip{left:0;transform:translate(-50%,4px)}
.cf-new-opportunity-2 .no2-pt[data-open] .no2-tip{opacity:1;visibility:visible;transform:none}
.cf-new-opportunity-2 .no2-pt[data-open][data-h='mid'] .no2-tip{transform:translate(-50%,0)}
.cf-new-opportunity-2 .no2-tip-name{display:block;margin-bottom:4px;font-weight:800}
.cf-new-opportunity-2 .no2-tip-text{display:block}
.cf-new-opportunity-2 .no2-badge{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--danger,#b42318);color:var(--badge-glyph,#ffffff)}
.cf-new-opportunity-2 .no2-badge-sm{width:18px;height:18px;margin-inline-end:8px;vertical-align:-.2em}
.cf-new-opportunity-2 .no2-win-pt{position:absolute;z-index:3;width:0;height:0}
.cf-new-opportunity-2 .no2-win-mark{position:absolute;left:-17px;top:-17px;width:34px;height:34px;border-radius:50%;background:var(--accent-fill,var(--accent,#2457c5));box-shadow:var(--shadow-md,0 1px 2px oklch(.22 .03 260 / .22),0 4px 10px -2px oklch(.22 .03 260 / .2))}
.cf-new-opportunity-2 .no2-win-mark::before{content:'';position:absolute;inset:-9px;border-radius:50%;border:2px solid oklch(from var(--accent-fill,var(--accent,#2457c5)) l c h / .4)}
.cf-new-opportunity-2 .no2-win-mark::after{content:'';position:absolute;inset:11px;border-radius:50%;background:var(--accent-fill-ink,var(--card,#ffffff))}
.cf-new-opportunity-2 .no2-win-tag{position:absolute;top:30px;left:0;transform:translateX(-50%);display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:999px;white-space:nowrap;background:var(--accent-fill,var(--accent,#2457c5));color:var(--accent-fill-ink,var(--card,#ffffff));font-size:.875rem;font-weight:800;line-height:1.2;box-shadow:var(--shadow-sm,0 1px 1px oklch(.22 .03 260 / .18),0 1px 3px oklch(.22 .03 260 / .14))}
.cf-new-opportunity-2 .no2-hint{margin-top:12px;padding-left:40px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted,#4a5565)}
.cf-new-opportunity-2 .no2-reasons{display:none;list-style:none;gap:8px;margin-top:20px}
.cf-new-opportunity-2 .no2-reason{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;padding:12px 14px;border-radius:10px;background:var(--no2-well)}
.cf-new-opportunity-2 .no2-reason[data-on]{background:color-mix(in oklch,var(--ink,#101828) 9%,var(--surface,#ffffff))}
.cf-new-opportunity-2 .no2-reason p{font-size:1.0625rem;line-height:1.45;color:var(--ink,#101828);text-wrap:pretty}
.cf-new-opportunity-2 .no2-reason strong{font-weight:800}
.cf-new-opportunity-2 .no2-cap{margin-top:20px;padding-left:40px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.3;letter-spacing:-0.01em;color:var(--ink,#101828);text-wrap:balance}
.cf-new-opportunity-2 .no2-side{min-width:0}
.cf-new-opportunity-2 .no2-verdict{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink,#101828);text-wrap:pretty}
.cf-new-opportunity-2 .no2-verdict strong{font-weight:800}
.cf-new-opportunity-2 .no2-card{margin-top:clamp(24px,3vw,32px);padding:clamp(20px,3vw,32px);background:var(--card,#ffffff);color:var(--ink,#101828);border:1px solid color-mix(in oklch,var(--accent,#2457c5) 32%,var(--card,#ffffff));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(.22 .03 260 / .22),0 12px 24px -8px oklch(.22 .03 260 / .32)))}
.cf-new-opportunity-2 .no2-img{display:block;width:100%;height:auto;aspect-ratio:16 / 10;object-fit:cover;object-position:center 60%;border-radius:12px;margin-bottom:20px}
.cf-new-opportunity-2 .no2-card-h{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-new-opportunity-2 .no2-promise{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted,#4a5565);text-wrap:pretty}
.cf-new-opportunity-2 .no2-q{margin-top:24px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.35;color:var(--ink,#101828);text-wrap:pretty}
.cf-new-opportunity-2 .no2-note{margin-top:12px;font-size:.9375rem;font-weight:500;line-height:1.4;text-align:center;color:var(--muted,#4a5565);text-wrap:pretty}
.cf-new-opportunity-2 .no2-btn{display:flex;width:100%;min-height:64px;margin-top:16px;align-items:center;justify-content:center;gap:10px;padding:0 24px;border:var(--button-border,0);border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2,var(--cta,#b42318))) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink,#ffffff));font-family:var(--button-font,var(--font-display,inherit));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);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l - .16) c h),0 1px 2px oklch(from var(--no2-sh) l c h / .3),0 8px 16px -6px oklch(from var(--no2-sh) l c h / .4))}
.cf-new-opportunity-2 .no2-btn:hover,.cf-new-opportunity-2 .no2-btn.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2,var(--cta,#b42318))) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l + .12) c h / .6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l - .2) c h),0 1px 2px oklch(from var(--no2-sh) l c h / .32),0 10px 18px -6px oklch(from var(--no2-sh) l c h / .5))}
.cf-new-opportunity-2 .no2-btn:active,.cf-new-opportunity-2 .no2-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l - .06) c h),oklch(from var(--button-bg-2,var(--cta-2,var(--cta,#b42318))) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--no2-sh) l c h / .35),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta,#d92d20)) calc(l - .2) c h),0 1px 2px oklch(from var(--no2-sh) l c h / .3)}
.cf-new-opportunity-2 .no2-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2457c5));outline-offset:3px}
.cf-new-opportunity-2 .no2-btn:disabled{cursor:not-allowed;transform:none;background:var(--secondary,#e8ebf0);color:var(--secondary-ink,#101828);text-shadow:none;box-shadow:none}
.cf-new-opportunity-2 .no2-btn.is-busy{cursor:progress}
@media (max-width:900px){
.cf-new-opportunity-2 .no2-body{grid-template-columns:minmax(0,1fr)}
.cf-new-opportunity-2 .no2-fig{width:100%;max-width:720px;margin-inline:auto}
.cf-new-opportunity-2 .no2-side{width:100%;max-width:40rem;margin-inline:auto}
.cf-new-opportunity-2 .no2-verdict{text-align:center}
}
@media (max-width:640px){
.cf-new-opportunity-2 .no2-chart{grid-template-columns:20px minmax(0,1fr);column-gap:8px}
.cf-new-opportunity-2 .no2-ytitle{display:none}
.cf-new-opportunity-2 .no2-name{max-width:7.5em;font-size:.875rem}
.cf-new-opportunity-2 .no2-tip,.cf-new-opportunity-2 .no2-hint{display:none}
.cf-new-opportunity-2 .no2-reasons{display:grid}
.cf-new-opportunity-2 .no2-cap{padding-left:0;text-align:center}
.cf-new-opportunity-2 .no2-win{padding:10px 10px}
}
@media (prefers-reduced-motion:no-preference){
.cf-new-opportunity-2 .no2-rv{animation:no2-rise .45s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--d,0) * .07s)}
.cf-new-opportunity-2 .no2-pip{transition:transform .16s ease,background .16s ease;animation:no2-pop .3s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:min(calc(.14s + var(--d,0) * .07s),.28s)}
.cf-new-opportunity-2 .no2-win-mark{animation:no2-pop .3s cubic-bezier(.2,.7,.2,1) .28s backwards}
.cf-new-opportunity-2 .no2-tip{transition:opacity .16s ease,transform .16s ease,visibility .16s}
.cf-new-opportunity-2 .no2-dot,.cf-new-opportunity-2 .no2-reason{transition:color .16s ease,background .16s ease}
.cf-new-opportunity-2 .no2-btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-new-opportunity-2 .no2-spin{animation:no2-spin .8s linear infinite}
}
@keyframes no2-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes no2-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@keyframes no2-spin{to{transform:rotate(360deg)}}
`
pieces/content/new-opportunity-2/specimen.tsx 16 lines
import __studioImage029b4ef8 from "../assets/02e6ee3f43ce9bfd.webp";
import * as React from 'react'
import { NewOpportunity2, type NewOpportunity2State } from '../new-opportunity-2'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled']
export default function NewOpportunity2Demo({ state = 'default' }: { state?: NewOpportunity2State }) {
return (
<NewOpportunity2
state={state}
sceneImage={slot('scene', __studioImage029b4ef8)}
sceneImageAlt='A semi-truck rolling down an open highway at sunrise'
/>
)
}
| Name | Type | Details |
|---|---|---|
publication OptionalNewOpportunity2 |
string |
Default 'The Small Fleet Report'
|
disclosure OptionalNewOpportunity2 |
string |
Default 'Advertisement'
|
dateline OptionalNewOpportunity2 |
string |
Default 'Special report for fleets of 2 to 20 trucks'
|
headline OptionalNewOpportunity2 |
string |
Default 'Stop chasing loads faster. Start where the loads come to you.'
|
emphasis OptionalNewOpportunity2 |
string |
Default 'the loads come to you'
|
lead OptionalNewOpportunity2 |
string |
Default 'Every way you’ve found freight so far sits in the same three corners. Freightlane sits alone in the fourth.'
|
xTitle OptionalNewOpportunity2 |
string |
Default 'Speed to a booked load'
|
xLow OptionalNewOpportunity2 |
string |
Default 'Slow'
|
xHigh OptionalNewOpportunity2 |
string |
Default 'Fast'
|
yTitle OptionalNewOpportunity2 |
string |
Default 'Time it takes from you'
|
yLow OptionalNewOpportunity2 |
string |
Default 'Hands-on'
|
yHigh OptionalNewOpportunity2 |
string |
Default 'Hands-off'
|
ways OptionalNewOpportunity2 |
NewOpportunity2Way[] |
Default DEFAULT_WAYS
|
vehicleX OptionalNewOpportunity2 |
number |
Default 80
|
vehicleY OptionalNewOpportunity2 |
number |
Default 74
|
winLabel OptionalNewOpportunity2 |
string |
Default 'Fast and hands-off'
|
mapLabel OptionalNewOpportunity2 |
string |
Default 'Map of ways to find freight, by speed and by the time each takes from you'
|
markLabel OptionalNewOpportunity2 |
string |
Default '{name}, alone in the {corner} corner'
|
hint OptionalNewOpportunity2 |
string |
Default 'Hover or tap a grey dot to see why it stalls.'
|
reasonsLabel OptionalNewOpportunity2 |
string |
Default 'Why each old way lands where it does'
|
caption OptionalNewOpportunity2 |
string |
Default 'Not a better version of what you’ve tried. A different place on the map.'
|
verdictLead OptionalNewOpportunity2 |
string |
Default 'Every old way keeps you on the phone.'
|
verdict OptionalNewOpportunity2 |
string |
Default 'You search, you call, you haggle, so your trucks only move as fast as your free hours.'
|
sceneImage OptionalNewOpportunity2 |
string |
|
sceneImageAlt OptionalNewOpportunity2 |
string |
Default ''
|
vehicleName OptionalNewOpportunity2 |
string |
Default 'Freightlane'
|
promise OptionalNewOpportunity2 |
string |
Default 'Loads matched to each truck’s next empty mile and sent to you before it unloads. Tap approve and the booking is done.'
|
question OptionalNewOpportunity2 |
string |
Default 'Ready to stop hunting for your next load?'
|
ctaLabel OptionalNewOpportunity2 |
string |
Default 'Yes, show me my matches'
|
loadingLabel OptionalNewOpportunity2 |
string |
Default 'Finding your matches…'
|
note OptionalNewOpportunity2 |
string |
Default 'Free fleet walkthrough · No contract'
|
href OptionalNewOpportunity2 |
string |
|
onAction OptionalNewOpportunity2 |
() => void | Promise<void> |
|
state OptionalNewOpportunity2 |
NewOpportunity2State |
Default 'default'
|
id OptionalNewOpportunity2 |
string |
|
className OptionalNewOpportunity2 |
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-border--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.
--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
02e6ee3f43ce9bfd.webp
image/webp · 53.4 KB