New Opportunity 3
The switch moment: a pinned photo of the old deal crossfades to the new vehicle at the turn line, then one offer card carries the action.
Use it in a prompt
Use content/new-opportunity-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { NewOpportunity3 } from "@/components/funneldna/content/new-opportunity-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/new-opportunity-3/component.tsx 485 lines
// layout: advertorial-front
// The switch moment: a pinned photo of the old deal crossfades to the new vehicle at the turn line, then one offer card carries the action.
'use client'
import * as React from 'react'
import { CalendarCheck, Check, Sun, X } from 'lucide-react'
export type NewOpportunity3Beat = {
title: string
text: string
}
export type NewOpportunity3State = 'default' | 'hover' | 'active' | 'disabled'
export type NewOpportunity3Props = {
/** Publication name set as the front-page flag. */
publication?: string
/** Advertorial disclosure, shown top left of the masthead. */
disclosure?: string
edition?: string
/** Advertiser line under the flag. */
byline?: string
headline?: string
/** Phrase inside the headline that gets one marker-highlighter stroke. */
emphasis?: string
deck?: string
/** The old-way photo (pinned first). */
oldImage?: string
oldImageAlt?: string
oldCaption?: string
/** Slot scene: the new vehicle (crossfades in at the turn). */
newImage?: string
newImageAlt?: string
newCaption?: string
oldLead?: string
oldBeats?: NewOpportunity3Beat[]
turnLine?: string
/** Second line of the turn, set in the accent colour. */
turnAnswer?: string
newLead?: string
newBeats?: NewOpportunity3Beat[]
/** The offer card asks; the button answers. */
question?: string
offerText?: string
/** Hang tag: renders only when a price is supplied. */
tagLabel?: string
price?: string
/** Crossed out in marker on the tag; nothing renders when omitted. */
regularPrice?: string
/** Screen-reader label before the struck price. */
regularLabel?: string
tagNote?: string
ctaLabel?: string
/** Navigation destination; the button renders as a link when set. */
href?: string
onAction?: () => void
reassurance?: string
psLabel?: string
/** P.S. under the action; nothing renders when omitted. */
ps?: string
/** scroll: crossfade follows the turn line. old/new pin one photo. */
scene?: 'scroll' | 'old' | 'new'
state?: NewOpportunity3State
id?: string
className?: string
}
const DEFAULT_OLD_BEATS: NewOpportunity3Beat[] = [
{ title: 'The bill comes back every month', text: 'You pay for power you’ll never own. Next month, you pay for it again.' },
{ title: 'Someone else sets the price', text: 'Your utility decides the rate. You find out when the bill lands.' },
{ title: 'Cutting back only goes so far', text: 'Lights off, thermostat down. You can trim the bill, but you’re still renting.' },
]
const DEFAULT_NEW_BEATS: NewOpportunity3Beat[] = [
{ title: 'Your roof becomes your power plant', text: 'Panels turn the sun that already hits your roof into power for your home.' },
{ title: 'You own the system, not a lease', text: 'With a home-ownership plan the panels are yours. Nothing to rent back.' },
{ title: 'One local team does the work', text: 'Design, permits and install handled by one crew, start to finish.' },
]
const useIso = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect
export function NewOpportunity3({
publication = 'The Home Energy Report',
disclosure = 'Advertisement',
edition = 'Homeowner edition',
byline = 'A message from your local solar team',
headline = 'Stop renting your power. Start owning it.',
emphasis = 'owning it',
deck = 'Every month you pay for power and keep nothing. There’s a different way to run your home, and it starts on your roof.',
oldImage,
oldImageAlt = 'A homeowner wincing at a utility bill',
oldCaption = 'Renting: a new bill every month, nothing to keep',
newImage,
newImageAlt = 'A family home at dusk with solar panels on the roof',
newCaption = 'Owning: the same roof, making your own power',
oldLead = 'Here’s why renting your power keeps you stuck.',
oldBeats = DEFAULT_OLD_BEATS,
turnLine = 'You can’t trim your way out of renting.',
turnAnswer = 'So stop renting. Own your power.',
newLead = 'Here’s what changes when the power is yours.',
newBeats = DEFAULT_NEW_BEATS,
question = 'Ready to stop renting your power?',
offerText = 'Book a home solar assessment. We look at your roof and your bills, then show you what owning could look like.',
tagLabel = 'Home solar assessment',
price = '',
regularPrice,
regularLabel = 'Regular price',
tagNote,
ctaLabel = 'Yes, check my roof',
href,
onAction,
reassurance = 'Quick to book · One local team',
psLabel = 'P.S.',
ps,
scene = 'scroll',
state = 'default',
id,
className,
}: NewOpportunity3Props) {
const uid = React.useId().replace(/:/g, '')
const headId = `no3-${uid}-h`
const assureId = `no3-${uid}-a`
const rootRef = React.useRef<HTMLElement>(null)
const turnRef = React.useRef<HTMLDivElement>(null)
const initial: 'old' | 'new' = scene === 'new' ? 'new' : 'old'
const phaseRef = React.useRef<'old' | 'new'>(initial)
const [phase, setPhase] = React.useState<'old' | 'new'>(initial)
const [motion, setMotion] = React.useState(false)
const hasPhotos = Boolean(oldImage || newImage)
const disabled = state === 'disabled'
useIso(() => {
const root = rootRef.current
if (!root) return
const mq = window.matchMedia('(prefers-reduced-motion: reduce)')
setMotion(!mq.matches)
const commit = (mix: number) => {
root.style.setProperty('--no3-mix', String(mix))
const next = mix >= 0.5 ? 'new' : 'old'
if (next !== phaseRef.current) {
phaseRef.current = next
setPhase(next)
}
}
if (scene !== 'scroll') {
commit(scene === 'new' ? 1 : 0)
return
}
let raf = 0
const measure = () => {
raf = 0
const turn = turnRef.current
if (!turn) return
const box = turn.getBoundingClientRect()
const vh = window.innerHeight || 1
const mid = box.top + box.height / 2
if (mq.matches) {
commit(mid < vh * 0.6 ? 1 : 0)
return
}
const raw = (vh * 0.82 - mid) / (vh * 0.38)
commit(Math.round(Math.min(1, Math.max(0, raw)) * 1000) / 1000)
}
const onScroll = () => {
if (!raf) raf = window.requestAnimationFrame(measure)
}
measure()
window.addEventListener('scroll', onScroll, { passive: true })
window.addEventListener('resize', onScroll)
if (typeof mq.addEventListener === 'function') mq.addEventListener('change', onScroll)
return () => {
window.removeEventListener('scroll', onScroll)
window.removeEventListener('resize', onScroll)
if (typeof mq.removeEventListener === 'function') mq.removeEventListener('change', onScroll)
if (raf) window.cancelAnimationFrame(raf)
}
}, [scene])
React.useEffect(() => {
if (!motion) return
const root = rootRef.current
if (!root) return
const els = Array.from(root.querySelectorAll<HTMLElement>('.no3-rv'))
if (typeof IntersectionObserver === 'undefined') {
els.forEach((el) => { el.dataset.in = '' })
return
}
const fold = window.innerHeight * 0.92
els.forEach((el) => { if (el.getBoundingClientRect().top < fold) el.dataset.in = '' })
const io = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return
;(entry.target as HTMLElement).dataset.in = ''
io.unobserve(entry.target)
})
}, { rootMargin: '0px 0px -8% 0px' })
els.forEach((el) => { if (el.dataset.in === undefined) io.observe(el) })
return () => io.disconnect()
}, [motion])
const handle = (event: React.MouseEvent<HTMLElement>) => {
if (disabled) {
event.preventDefault()
return
}
onAction?.()
}
const ctaClass = [
'no3-btn',
!disabled && state === 'hover' ? 'is-hover' : '',
!disabled && state === 'active' ? 'is-active' : '',
].filter(Boolean).join(' ')
const describedBy = reassurance ? assureId : undefined
const cta = href && !disabled ? (
<a className={ctaClass} href={href} onClick={handle} aria-describedby={describedBy}>
<span className='no3-btn-l'>{ctaLabel}</span>
</a>
) : (
<button type='button' className={ctaClass} onClick={handle} disabled={disabled} aria-describedby={describedBy}>
<span className='no3-btn-l'>{ctaLabel}</span>
</button>
)
const beats = (list: NewOpportunity3Beat[], good: boolean) => (
<ol className='no3-beats'>
{list.map((beat, i) => (
<li key={`${beat.title}-${i}`} className='no3-beat no3-rv' style={{ '--d': i } as React.CSSProperties}>
<span className={good ? 'no3-badge no3-badge-ok' : 'no3-badge no3-badge-x'} aria-hidden='true'>
{good ? <Check size={18} strokeWidth={3} /> : <X size={18} strokeWidth={3} />}
</span>
<div>
<h3 className='no3-beat-h'>{beat.title}</h3>
{beat.text ? <p className='no3-beat-p'>{beat.text}</p> : null}
</div>
</li>
))}
</ol>
)
return (
<section
id={id}
ref={rootRef}
className={['cf-new-opportunity-3', className].filter(Boolean).join(' ')}
aria-labelledby={headId}
data-scene={scene}
data-motion={motion ? '' : undefined}
>
<style>{CSS}</style>
<div className='no3-in'>
<header className='no3-mast'>
{disclosure || edition ? (
<div className='no3-mast-row'>
{disclosure ? <span>{disclosure}</span> : null}
{edition ? <span>{edition}</span> : null}
</div>
) : null}
{publication ? <p className='no3-flag'>{publication}</p> : null}
{byline ? <p className='no3-by'>{byline}</p> : null}
</header>
<div className='no3-head'>
<h2 id={headId} className='no3-h'><Emph text={headline} emphasis={emphasis} /></h2>
{deck ? <p className='no3-deck'>{deck}</p> : null}
</div>
<div className='no3-stage' data-photos={hasPhotos ? undefined : 'none'}>
{hasPhotos ? (
<div className='no3-media'>
<div className='no3-pin'>
<div className='no3-frame'>
{oldImage ? (
<img className='no3-img no3-img-old' src={oldImage} alt={oldImageAlt} width={800} height={1000} decoding='async' aria-hidden={phase === 'new' && newImage ? true : undefined} />
) : null}
{newImage ? (
<img className='no3-img no3-img-new' src={newImage} alt={newImageAlt} width={800} height={1000} decoding='async' aria-hidden={phase === 'old' && oldImage ? true : undefined} />
) : null}
</div>
{oldCaption || newCaption ? (
<div className='no3-caps'>
{oldCaption ? <p className='no3-cap no3-cap-old' aria-hidden={phase === 'new' ? true : undefined}>{oldCaption}</p> : null}
{newCaption ? <p className='no3-cap no3-cap-new' aria-hidden={phase === 'old' ? true : undefined}>{newCaption}</p> : null}
</div>
) : null}
<div className='no3-meter' aria-hidden='true'><i /></div>
</div>
</div>
) : null}
<div className='no3-copy' data-phase={phase}>
{oldImage ? (
<figure className='no3-inline'>
<img src={oldImage} alt={oldImageAlt} width={800} height={600} decoding='async' />
{oldCaption ? <figcaption>{oldCaption}</figcaption> : null}
</figure>
) : null}
{oldLead ? <p className='no3-lead'>{oldLead}</p> : null}
{beats(oldBeats, false)}
<div className='no3-turn' ref={turnRef} data-phase={phase}>
<div className='no3-rule' aria-hidden='true'>
<span className='no3-sun'><Sun size={20} strokeWidth={2.5} /></span>
</div>
<h3 className='no3-turn-h'>
{turnLine}
{turnAnswer ? <span className='no3-turn-a'>{turnAnswer}</span> : null}
</h3>
</div>
{newImage ? (
<figure className='no3-inline'>
<img src={newImage} alt={newImageAlt} width={800} height={600} loading='lazy' decoding='async' />
{newCaption ? <figcaption>{newCaption}</figcaption> : null}
</figure>
) : null}
{newLead ? <p className='no3-lead'>{newLead}</p> : null}
{beats(newBeats, true)}
<div className='no3-offer no3-rv' data-tag={price ? '' : undefined}>
<div className='no3-offer-top'>
<div>
{question ? <h3 className='no3-q'>{question}</h3> : null}
{offerText ? <p className='no3-offer-p'>{offerText}</p> : null}
</div>
{price ? (
<div className='no3-tag'>
<span className='no3-hole' aria-hidden='true' />
<svg className='no3-string' viewBox='0 0 56 40' width={56} height={40} aria-hidden='true' focusable='false'>
<path d='M2 39 C 6 20, 24 6, 55 2' fill='none' stroke='currentColor' strokeWidth='2' strokeLinecap='round' />
</svg>
{tagLabel ? <span className='no3-tag-l'>{tagLabel}</span> : null}
{regularPrice ? (
<span className='no3-tag-was'>
<span className='no3-sr'>{regularLabel} </span>
<s>{regularPrice}</s>
</span>
) : null}
<span className='no3-tag-price'>{price}</span>
{tagNote ? <span className='no3-tag-n'>{tagNote}</span> : null}
</div>
) : null}
</div>
{cta}
{reassurance ? (
<p className='no3-assure' id={assureId}>
<CalendarCheck size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
{ps ? (
<p className='no3-ps'><strong>{psLabel}</strong> {ps}</p>
) : null}
</div>
</div>
</div>
</div>
</section>
)
}
export default NewOpportunity3
function Emph({ text, emphasis }: { text: string; emphasis?: string }) {
if (!emphasis) return <>{text}</>
const at = text.indexOf(emphasis)
if (at < 0) return <>{text}</>
return (
<>
{text.slice(0, at)}
<span className='no3-mark'>{emphasis}</span>
{text.slice(at + emphasis.length)}
</>
)
}
const R = '.cf-new-opportunity-3'
const CSS = `
${R}{--no3-mix:0;position:relative;overflow-x:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
${R}[data-scene='new']{--no3-mix:1}
${R},${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} :where(h2,h3,p,ol,li,figure,figcaption){margin:0;padding:0}
${R} :where(ol){list-style:none}
${R} .no3-in{max-width:1120px;margin:0 auto}
${R} .no3-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
${R} .no3-mast{text-align:center;padding-bottom:16px;border-bottom:3px double oklch(from var(--ink) l c h / .3)}
${R} .no3-mast-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid oklch(from var(--ink) l c h / .14);font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
${R} .no3-flag{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
${R} .no3-by{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
${R} .no3-head{max-width:58rem;margin:clamp(32px,4.5vw,56px) auto clamp(40px,5.5vw,72px);text-align:center}
${R} .no3-h{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;color:var(--ink)}
${R} .no3-mark{padding:0 .08em;border-radius:.14em;background-image:linear-gradient(transparent 56%,oklch(from var(--marker,#fae37c) l c h / .75) 56%,oklch(from var(--marker,#fae37c) l c h / .75) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
${R} .no3-deck{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);text-wrap:pretty}
${R} .no3-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(32px,5vw,72px);align-items:start}
${R} .no3-stage[data-photos='none']{grid-template-columns:minmax(0,1fr);max-width:46rem;margin-inline:auto}
${R} .no3-media{align-self:stretch;position:relative}
${R} .no3-pin{position:sticky;top:64px}
${R} .no3-frame{position:relative;overflow:hidden;border-radius:12px;height:min(calc(100vh - 160px),700px);min-height:420px;background:color-mix(in oklch,var(--ink) 6%,var(--surface))}
${R} .no3-img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%}
${R} .no3-img-new{opacity:var(--no3-mix);transform:scale(calc(1.04 - .04 * var(--no3-mix)));transition:opacity .12s linear,transform .12s linear}
${R} .no3-caps{display:grid;margin-top:12px;text-align:center}
${R} .no3-cap{grid-area:1 / 1;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty;transition:opacity .12s linear}
${R} .no3-cap-old{opacity:calc(1 - var(--no3-mix))}
${R} .no3-cap-new{opacity:var(--no3-mix);color:var(--ink)}
${R} .no3-meter{max-width:12rem;height:4px;margin:12px auto 0;overflow:hidden;border-radius:999px;background:color-mix(in oklch,var(--ink) 10%,var(--surface))}
${R} .no3-meter i{display:block;height:100%;border-radius:inherit;background:var(--accent-fill,var(--accent));transform-origin:0 50%;transform:scaleX(var(--no3-mix));transition:transform .12s linear}
${R} .no3-copy{min-width:0}
${R} .no3-inline{display:none}
${R} .no3-lead{margin-bottom:24px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
${R} .no3-beats{display:grid;gap:32px}
${R} .no3-beat{display:grid;grid-template-columns:32px minmax(0,1fr);gap:16px;align-items:start}
${R} .no3-badge{display:grid;place-items:center;width:32px;height:32px;border-radius:999px;color:var(--card)}
${R} .no3-badge-x{background:var(--danger)}
${R} .no3-badge-ok{background:var(--success)}
${R} .no3-beat-h{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;color:var(--ink)}
${R} .no3-beat-p{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
${R} .no3-turn{padding:clamp(56px,7vw,96px) 0;text-align:center}
${R} .no3-rule{display:flex;align-items:center;gap:16px;margin-bottom:24px}
${R} .no3-rule::before,${R} .no3-rule::after{content:'';flex:1;height:1px;background:oklch(from var(--ink) l c h / .16)}
${R} .no3-sun{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--surface));color:var(--muted);transition:background .3s ease,color .3s ease}
${R} .no3-turn[data-phase='new'] .no3-sun{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
${R} .no3-turn-h{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;color:var(--ink)}
${R} .no3-turn-a{display:block;margin-top:8px;color:var(--accent)}
${R} .no3-offer{container-type:inline-size;margin-top:clamp(48px,6vw,64px);padding:clamp(24px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid oklch(from var(--accent) l c h / .38);border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32)))}
${R} .no3-offer-top{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;margin-bottom:28px}
${R} .no3-offer[data-tag] .no3-offer-top{justify-items:center;text-align:center}
${R} .no3-offer[data-tag] .no3-tag{order:-1}
${R} .no3-offer[data-tag] .no3-ps{text-align:center}
${R} .no3-q{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(1.5rem,2.2vw,1.875rem);line-height:1.12;text-wrap:balance;color:var(--ink)}
${R} .no3-offer-p{max-width:34rem;margin:12px auto 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
@container (min-width:38rem){
${R} .no3-offer[data-tag] .no3-offer-top{grid-template-columns:minmax(0,1fr) auto;justify-items:stretch;text-align:left;gap:32px}
${R} .no3-offer[data-tag] .no3-tag{order:0;margin:24px 8px 0 0}
${R} .no3-offer[data-tag] .no3-offer-p{margin-inline:0}
${R} .no3-offer[data-tag] .no3-ps{text-align:left}
}
${R} .no3-tag{position:relative;display:grid;justify-items:center;gap:0;min-width:11rem;max-width:14rem;margin:24px auto 0;padding:42px 24px 24px;text-align:center;border-radius:var(--radius,12px);background:linear-gradient(oklch(from var(--accent-fill,var(--accent)) calc(l + .03) c h),oklch(from var(--accent-fill,var(--accent)) calc(l - .04) c h));color:var(--accent-fill-ink,var(--card));transform:rotate(2.5deg);box-shadow:inset 0 1px 0 oklch(from var(--accent-fill,var(--accent)) calc(l + .12) c h / .6),inset 0 -2px 0 oklch(from var(--accent-fill,var(--accent)) calc(l - .12) c h / .55),var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2))}
${R} .no3-hole{position:absolute;top:14px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:999px;background:var(--card);border:2px solid oklch(from var(--accent-fill,var(--accent)) calc(l - .14) c h);box-shadow:inset 0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45)}
${R} .no3-string{position:absolute;top:-18px;left:calc(50% - 2px);color:oklch(from var(--ink) l c h / .55);pointer-events:none}
${R} .no3-tag-l{max-width:11rem;font-size:.875rem;line-height:1.25;font-weight:800;letter-spacing:.06em;text-transform:uppercase;text-wrap:balance}
${R} .no3-tag-was{margin-top:10px;font-size:.9375rem;line-height:1.2;font-weight:700}
${R} .no3-tag-was s{padding:0 .15em;text-decoration:none;background-image:linear-gradient(transparent 44%,currentColor 44%,currentColor 60%,transparent 60%)}
${R} .no3-tag-price{margin-top:16px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
${R} .no3-tag-n{margin-top:20px;font-size:.9375rem;line-height:1.3;font-weight:700}
${R} .no3-btn{appearance:none;border:0;margin:0;display:flex;width:100%;min-height:72px;padding:0 28px;align-items:center;justify-content:center;text-align:center;text-decoration:none;cursor:pointer;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-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(--shadow,oklch(0.22 0.03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .4));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
${R} .no3-btn-l{text-wrap:balance}
${R} .no3-btn:not(:disabled):hover,${R} .no3-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(--shadow,oklch(0.22 0.03 260)) l c h / .34),0 10px 18px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .48)}
${R} .no3-btn:not(:disabled):active,${R} .no3-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .06) 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,var(--cta)) calc(l - .22) c h / .5),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)}
${R} .no3-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
${R} .no3-btn:disabled{cursor:not-allowed;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} .no3-assure{margin-top:12px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
${R} .no3-assure svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success)}
${R} .no3-ps{margin-top:24px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
${R} .no3-ps strong{font-weight:800}
@media (max-width:54rem){
${R} .no3-stage{grid-template-columns:minmax(0,1fr)}
${R} .no3-media{display:none}
${R} .no3-inline{display:block;margin-bottom:24px}
${R} .no3-inline img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;object-position:center 35%;border-radius:12px}
${R} .no3-inline figcaption{margin-top:12px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
}
@media (max-width:32rem){
${R} .no3-mast-row{justify-content:center}
${R} .no3-btn{min-height:64px;padding:0 20px}
}
@media (prefers-reduced-motion:no-preference){
${R}[data-motion] .no3-rv{transition:opacity .45s cubic-bezier(.2,.7,.2,1),transform .45s cubic-bezier(.2,.7,.2,1);transition-delay:min(calc(var(--d,0) * .07s),.28s)}
${R}[data-motion] .no3-rv:not([data-in]){opacity:.82;transform:translateY(8px)}
}
@media (prefers-reduced-motion:reduce){
${R} .no3-img-new,${R} .no3-cap,${R} .no3-meter i,${R} .no3-sun,${R} .no3-btn{transition:none}
${R} .no3-img-new{transform:none}
}
`
pieces/content/new-opportunity-3/specimen.tsx 52 lines
import __studioImagea36afd54 from "../assets/f913e670f4250d1a.webp";
import __studioImageaaa255c9 from "../assets/66e2566779aa7c19.webp";
import * as React from 'react'
import { NewOpportunity3 } from '../new-opportunity-3'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled'
export default function NewOpportunity3Specimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<NewOpportunity3
state={state}
publication='The Home Energy Report'
disclosure='Advertisement'
edition='Homeowner edition'
byline='Presented by SunRidge Solar · Local home service'
headline='Stop renting your power. Start owning it.'
emphasis='owning it'
deck='Every month you pay for power and keep nothing. The SunRidge home-ownership plan puts the power plant on your own roof.'
oldImage={__studioImagea36afd54}
oldImageAlt='A homeowner wincing at a utility bill at the kitchen table'
oldCaption='Renting: a new bill every month, nothing to keep'
newImage={slot('scene', __studioImageaaa255c9)}
newImageAlt='A family home at dusk with solar panels across the roof'
newCaption='Owning: the same roof, making your own power'
oldLead='Here’s why renting your power keeps you stuck.'
oldBeats={[
{ title: 'The bill comes back every month', text: 'You pay for power you’ll never own. Next month, you pay for it again.' },
{ title: 'Someone else sets the price', text: 'Your utility decides the rate. You find out when the bill lands.' },
{ title: 'Cutting back only goes so far', text: 'Lights off, thermostat down. You can trim the bill, but you’re still renting.' },
]}
turnLine='You can’t trim your way out of renting.'
turnAnswer='So stop renting. Own your power.'
newLead='Here’s what changes when the power is yours.'
newBeats={[
{ title: 'Your roof becomes your power plant', text: 'Panels turn the sun that already hits your roof into power for your home.' },
{ title: 'You own the system, not a lease', text: 'With the SunRidge home-ownership plan the panels are yours. Nothing to rent back.' },
{ title: 'One local crew does the work', text: 'SunRidge designs, permits and installs it, start to finish.' },
]}
question='Ready to stop renting your power?'
offerText='Book a free SunRidge home assessment. We look at your roof and your recent bills, then show you what owning your power could look like.'
tagLabel='Home solar assessment'
price='Free'
tagNote='At your home'
ctaLabel='Yes, check my roof'
reassurance='Free to book · One local team, start to finish'
ps='The assessment costs nothing. You see your roof’s options first, then decide if owning is right for you.'
/>
)
}
| Name | Type | Details |
|---|---|---|
publication OptionalNewOpportunity3 |
string |
Default 'The Home Energy Report'
|
disclosure OptionalNewOpportunity3 |
string |
Default 'Advertisement'
|
edition OptionalNewOpportunity3 |
string |
Default 'Homeowner edition'
|
byline OptionalNewOpportunity3 |
string |
Default 'A message from your local solar team'
|
headline OptionalNewOpportunity3 |
string |
Default 'Stop renting your power. Start owning it.'
|
emphasis OptionalNewOpportunity3 |
string |
Default 'owning it'
|
deck OptionalNewOpportunity3 |
string |
Default 'Every month you pay for power and keep nothing. There’s a different way to run your home, and it starts on your roof.'
|
oldImage OptionalNewOpportunity3 |
string |
|
oldImageAlt OptionalNewOpportunity3 |
string |
Default 'A homeowner wincing at a utility bill'
|
oldCaption OptionalNewOpportunity3 |
string |
Default 'Renting: a new bill every month, nothing to keep'
|
newImage OptionalNewOpportunity3 |
string |
|
newImageAlt OptionalNewOpportunity3 |
string |
Default 'A family home at dusk with solar panels on the roof'
|
newCaption OptionalNewOpportunity3 |
string |
Default 'Owning: the same roof, making your own power'
|
oldLead OptionalNewOpportunity3 |
string |
Default 'Here’s why renting your power keeps you stuck.'
|
oldBeats OptionalNewOpportunity3 |
NewOpportunity3Beat[] |
Default DEFAULT_OLD_BEATS
|
turnLine OptionalNewOpportunity3 |
string |
Default 'You can’t trim your way out of renting.'
|
turnAnswer OptionalNewOpportunity3 |
string |
Default 'So stop renting. Own your power.'
|
newLead OptionalNewOpportunity3 |
string |
Default 'Here’s what changes when the power is yours.'
|
newBeats OptionalNewOpportunity3 |
NewOpportunity3Beat[] |
Default DEFAULT_NEW_BEATS
|
question OptionalNewOpportunity3 |
string |
Default 'Ready to stop renting your power?'
|
offerText OptionalNewOpportunity3 |
string |
Default 'Book a home solar assessment. We look at your roof and your bills, then show you what owning could look like.'
|
tagLabel OptionalNewOpportunity3 |
string |
Default 'Home solar assessment'
|
price OptionalNewOpportunity3 |
string |
Default ''
|
regularPrice OptionalNewOpportunity3 |
string |
|
regularLabel OptionalNewOpportunity3 |
string |
Default 'Regular price'
|
tagNote OptionalNewOpportunity3 |
string |
|
ctaLabel OptionalNewOpportunity3 |
string |
Default 'Yes, check my roof'
|
href OptionalNewOpportunity3 |
string |
|
onAction OptionalNewOpportunity3 |
() => void |
|
reassurance OptionalNewOpportunity3 |
string |
Default 'Quick to book · One local team'
|
psLabel OptionalNewOpportunity3 |
string |
Default 'P.S.'
|
ps OptionalNewOpportunity3 |
string |
|
scene OptionalNewOpportunity3 |
'scroll' | 'old' | 'new' |
Default 'scroll'
|
state OptionalNewOpportunity3 |
NewOpportunity3State |
Default 'default'
|
id OptionalNewOpportunity3 |
string |
|
className OptionalNewOpportunity3 |
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-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.
-
66e2566779aa7c19.webp
image/webp · 71.4 KB
-
f913e670f4250d1a.webp
image/webp · 43.2 KB