Listing Showcase 2
Vehicle spec scoreboard: the vehicle on a lit stage beside big fact tiles, a ticked service record, the dealer’s reason-why letter and a live payment estimate. It ends on the test-drive tile, so a shopper trusts the numbers and books the drive.
Use it in a prompt
Use offer/listing-showcase-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/offer/listing-showcase-2.tsx. - Import it and pass your copy and images (Props tab):
import { ListingShowcase2 } from "@/components/funneldna/offer/listing-showcase-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/listing-showcase-2/component.tsx 746 lines
// layout: fact-scoreboard
// Vehicle spec scoreboard: the vehicle on a lit stage beside big fact tiles, a ticked service record, the dealer’s reason-why letter and a live payment estimate. It ends on the test-drive tile, so a shopper trusts the numbers and books the drive.
import * as React from 'react';
import { Calculator, CalendarCheck, Check, CircleAlert, RotateCcw, ShieldCheck } from 'lucide-react';
import { FX_HOST, Spotlight } from '../fx/fx';
export type ListingFact = {
/** The big scoreboard figure, e.g. '38,412'. */
value: string;
/** Small unit after the figure, e.g. 'mi' or 'mpg'. */
unit?: string;
label: string;
/** One short line under the figure. */
detail?: string;
};
export type ServiceRecord = {
label: string;
/** Date, mileage or shop, e.g. 'Jun 2024 · 34,880 mi'. */
detail?: string;
};
export type ListingShowcase2Action = {
downPayment: number | null;
term: number | null;
monthly: number | null;
};
export type ListingShowcase2Copy = {
factsLabel: string;
priceLabel: string;
vs: string;
estimateBadge: string;
perMonth: string;
/** {term}, {apr} and {financed} are replaced. */
estimateLine: string;
downLabel: string;
termLegend: string;
/** Chip text; {n} is the number of months. */
termChip: string;
/** Accessible chip name; {n} is the number of months. */
termChipLabel: string;
estimateNote: string;
inspectionLabel: string;
returnLabel: string;
/** {monthly} and {term} are replaced. */
yourEstimate: string;
disabledNote: string;
/** Phone action bar line; {monthly} is replaced. */
dockEstimate: string;
};
export type ListingShowcase2Props = {
/** Section headline; a string headline can carry one emphasised phrase. */
headline?: React.ReactNode;
/** Phrase inside a string headline, set in the page accent. */
emphasis?: string;
lead?: React.ReactNode;
/** Vehicle on a transparent background (slot: product). */
vehicleImage?: string;
vehicleAlt?: string;
vehicleName?: string;
/** Stock number, lot or trim line under the name. */
vehicleMeta?: string;
/** Scoreboard tiles: year, mileage, owners, fuel economy… */
facts?: ListingFact[];
/** Asking price as a number; the estimator and price block need it. */
price?: number;
currency?: string;
locale?: string;
/** The supplied alternative the price is set beside, e.g. a comparable new model. */
alternative?: { price: string; label: string };
/** APR in percent. Leave empty and the estimator is hidden. */
apr?: number | null;
/** Loan terms in months, shown as chips. */
terms?: number[];
defaultTerm?: number;
defaultDown?: number;
downMin?: number;
/** Slider ceiling; defaults to half the price. */
downMax?: number;
downStep?: number;
estimatorTitle?: React.ReactNode;
historyTitle?: React.ReactNode;
history?: ServiceRecord[];
/** Supplied inspection statement. */
inspection?: React.ReactNode;
/** Supplied return or exchange policy. */
returnPolicy?: React.ReactNode;
/** Letter opening, e.g. 'Dear neighbor,'. */
salutation?: string;
/** Reason-why letter paragraphs in the dealer’s voice. */
letter?: React.ReactNode[];
signoffName?: string;
signoffRole?: string;
/** Dealer or owner headshot (slot: presenter). */
presenterImage?: string;
presenterAlt?: string;
actionTitle?: React.ReactNode;
ctaLabel?: string;
/** One short line under the button. */
note?: string;
copy?: Partial<ListingShowcase2Copy>;
/** Test-drive booking page; the estimate is added as ?down=…&term=… */
href?: string;
/** Called with the current estimate when the button is pressed. */
onAction?: (detail: ListingShowcase2Action) => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_TERMS = [36, 48, 60];
const DEFAULT_COPY: ListingShowcase2Copy = {
factsLabel: 'Key facts',
priceLabel: 'Your price',
vs: 'vs.',
estimateBadge: 'Estimate',
perMonth: '/mo',
estimateLine: '{term} months at {apr}% APR · {financed} financed',
downLabel: 'Down payment',
termLegend: 'Loan term',
termChip: '{n} mo',
termChipLabel: '{n} months',
estimateNote: 'An estimate, not an offer of credit. Tax, title and fees are extra, and your rate depends on approval.',
inspectionLabel: 'Inspected',
returnLabel: 'Return policy',
yourEstimate: 'Your estimate: {monthly}/mo for {term} months',
disabledNote: 'Test drives on this vehicle are paused right now.',
dockEstimate: 'est. {monthly}/mo',
};
export function ListingShowcase2(props: ListingShowcase2Props) {
const {
headline = 'Every number on this vehicle, before you drive it',
emphasis = 'before you drive it',
lead = 'Check the facts, run your own payment, then book a test drive at a time that suits you.',
vehicleImage,
vehicleAlt = '',
vehicleName,
vehicleMeta,
facts = [],
price,
currency = 'USD',
locale = 'en-US',
alternative,
apr = null,
terms = DEFAULT_TERMS,
defaultTerm,
defaultDown,
downMin = 0,
downMax,
downStep = 500,
estimatorTitle = 'Run your payment before you visit',
historyTitle = 'Every service, on record',
history = [],
inspection,
returnPolicy,
salutation,
letter = [],
signoffName,
signoffRole,
presenterImage,
presenterAlt = '',
actionTitle = 'Feel it on the road before you decide',
ctaLabel = 'Book a test drive',
note = 'Pick your day and time on the next page.',
href,
onAction,
disabled = false,
state = 'default',
className,
} = props;
const copy: ListingShowcase2Copy = { ...DEFAULT_COPY, ...(props.copy || {}) };
const uid = React.useId();
const isDisabled = disabled || state === 'disabled';
const forced = state === 'hover' || state === 'active' ? state : undefined;
const money = React.useMemo(() => makeMoney(locale, currency), [locale, currency]);
const hasPrice = typeof price === 'number' && Number.isFinite(price) && price > 0;
const p = hasPrice ? (price as number) : 0;
const hasEst = hasPrice && typeof apr === 'number' && Number.isFinite(apr) && apr >= 0 && terms.length > 0;
const step = downStep > 0 ? downStep : 500;
const floorDown = Math.max(0, downMin);
const maxDown = hasPrice ? clamp(downMax ?? Math.floor((p * 0.5) / step) * step, floorDown, p) : floorDown;
const startDown = clamp(defaultDown ?? Math.round((p * 0.1) / step) * step, floorDown, maxDown);
const lastTerm = terms[terms.length - 1] ?? 60;
const startTerm = defaultTerm !== undefined && terms.includes(defaultTerm) ? defaultTerm : lastTerm;
const [down, setDown] = React.useState(startDown);
const [term, setTerm] = React.useState(startTerm);
const downNow = clamp(down, floorDown, maxDown);
const termNow = terms.includes(term) ? term : startTerm;
const financed = Math.max(0, p - downNow);
const monthly = hasEst ? Math.round(monthlyPayment(financed, apr as number, termNow)) : null;
const monthlyText = monthly === null ? '' : money.format(monthly);
const aprText = hasEst ? formatNumber(apr as number, locale) : '';
const pct = maxDown > floorDown ? ((downNow - floorDown) / (maxDown - floorDown)) * 100 : 0;
const hasHistory = history.length > 0 || Boolean(inspection) || Boolean(returnPolicy);
const hasLetter = letter.length > 0;
const areas = boardAreas(facts.length > 0, hasEst, hasHistory, hasLetter);
const rootRef = React.useRef<HTMLElement>(null);
const stageRef = React.useRef<HTMLElement>(null);
const actRef = React.useRef<HTMLDivElement>(null);
const [inBand, setInBand] = React.useState(false);
const [pastStage, setPastStage] = React.useState(false);
const [actInView, setActInView] = React.useState(false);
React.useEffect(() => {
if (typeof IntersectionObserver === 'undefined') return;
const root = rootRef.current;
const stage = stageRef.current;
const act = actRef.current;
if (!root || !stage || !act) return;
const bandIo = new IntersectionObserver(
(entries) => setInBand(entries[entries.length - 1]?.isIntersecting ?? false),
{ rootMargin: '0px 0px -30% 0px' },
);
// The phone action bar waits until the vehicle has scrolled away, so it never covers the first facts.
const stageIo = new IntersectionObserver((entries) => {
const entry = entries[entries.length - 1];
if (!entry) return;
setPastStage(!entry.isIntersecting && entry.boundingClientRect.top < 0);
});
const actIo = new IntersectionObserver(
(entries) => setActInView(entries[entries.length - 1]?.isIntersecting ?? false),
{ threshold: 0.2 },
);
bandIo.observe(root);
stageIo.observe(stage);
actIo.observe(act);
return () => {
bandIo.disconnect();
stageIo.disconnect();
actIo.disconnect();
};
}, []);
const showDock = inBand && pastStage && !actInView && !isDisabled;
const detail: ListingShowcase2Action = {
downPayment: hasEst ? downNow : null,
term: hasEst ? termNow : null,
monthly,
};
const target = href && hasEst ? withQuery(href, { down: String(downNow), term: String(termNow) }) : href;
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
event.preventDefault();
return;
}
onAction?.(detail);
};
return (
<section
ref={rootRef}
className={['cf-listing-showcase-2', className].filter(Boolean).join(' ')}
aria-labelledby={uid + 'h'}
>
<style>{CSS}</style>
<div className='lsc-wrap'>
<header className='lsc-head'>
<h2 id={uid + 'h'} className='lsc-h2'>
{renderHeadline(headline, emphasis)}
</h2>
{lead ? <p className='lsc-lead'>{lead}</p> : null}
</header>
<div className='lsc-board' style={{ '--lsc-areas': areas } as React.CSSProperties}>
<figure ref={stageRef} className='lsc-tile lsc-stage lsc-rise' style={{ ...FX_HOST, '--i': 0 } as React.CSSProperties}>
<Spotlight />
{vehicleImage ? (
<div className='lsc-stage-media'>
<span className='lsc-contact' aria-hidden='true' />
<img className='lsc-car' src={vehicleImage} alt={vehicleAlt} width={1024} height={640} />
</div>
) : null}
{vehicleName || vehicleMeta ? (
<figcaption className='lsc-cap'>
{vehicleName ? <h3 className='lsc-h3'>{vehicleName}</h3> : null}
{vehicleMeta ? <p className='lsc-small lsc-soft'>{vehicleMeta}</p> : null}
</figcaption>
) : null}
</figure>
{facts.length > 0 ? (
<ul className='lsc-facts' aria-label={copy.factsLabel}>
{facts.map((fact, i) => (
<li key={i} className='lsc-tile lsc-fact lsc-rise' style={{ '--i': i + 1 } as React.CSSProperties}>
<p className='lsc-fact-l'>{fact.label}</p>
<p className='lsc-num'>
<span className='lsc-num-v'>{fact.value}</span>
{fact.unit ? <span className='lsc-num-u'>{fact.unit}</span> : null}
</p>
{fact.detail ? <p className='lsc-small'>{fact.detail}</p> : null}
</li>
))}
</ul>
) : null}
{hasEst ? (
<section className='lsc-tile lsc-est lsc-rise' aria-labelledby={uid + 'e'} style={{ '--i': 3 } as React.CSSProperties}>
<div className='lsc-est-top'>
<h3 id={uid + 'e'} className='lsc-h3'>
{estimatorTitle}
</h3>
<span className='lsc-badge'>{copy.estimateBadge}</span>
</div>
<div className='lsc-result' aria-live='polite' aria-atomic='true'>
<p className='lsc-monthly'>
<span key={monthlyText + '-' + termNow} className='lsc-monthly-v'>
{monthlyText}
</span>
<span className='lsc-monthly-u'>{copy.perMonth}</span>
</p>
<p className='lsc-small'>
{fill(copy.estimateLine, { term: termNow, apr: aprText, financed: money.format(financed) })}
</p>
</div>
<div className='lsc-field'>
<div className='lsc-field-row'>
<label htmlFor={uid + 'd'} className='lsc-label'>
{copy.downLabel}
</label>
<output htmlFor={uid + 'd'} className='lsc-out'>
{money.format(downNow)}
</output>
</div>
<input
id={uid + 'd'}
className='lsc-range'
type='range'
min={floorDown}
max={maxDown}
step={step}
value={downNow}
disabled={maxDown <= floorDown}
aria-valuetext={money.format(downNow)}
onChange={(event) => setDown(Number(event.currentTarget.value))}
style={{ '--pct': pct + '%' } as React.CSSProperties}
/>
<div className='lsc-ends' aria-hidden='true'>
<span>{money.format(floorDown)}</span>
<span>{money.format(maxDown)}</span>
</div>
</div>
<fieldset className='lsc-terms'>
<legend className='lsc-label'>{copy.termLegend}</legend>
<div className='lsc-chips'>
{terms.map((n) => (
<label key={n} className='lsc-chip'>
<input
type='radio'
name={uid + 't'}
value={n}
checked={termNow === n}
onChange={() => setTerm(n)}
aria-label={fill(copy.termChipLabel, { n })}
/>
<span aria-hidden='true'>{fill(copy.termChip, { n })}</span>
</label>
))}
</div>
</fieldset>
<p className='lsc-small lsc-est-note'>{copy.estimateNote}</p>
</section>
) : null}
{hasHistory ? (
<section className='lsc-tile lsc-hist lsc-rise' aria-labelledby={uid + 's'} style={{ '--i': 4 } as React.CSSProperties}>
<h3 id={uid + 's'} className='lsc-h3'>
{historyTitle}
</h3>
{history.length > 0 ? (
<ul className='lsc-recs'>
{history.map((record, i) => (
<li key={i}>
<span className='lsc-tickb' aria-hidden='true'>
<Check size={14} strokeWidth={3} />
</span>
<span>
<span className='lsc-rec-l'>{record.label}</span>
{record.detail ? <span className='lsc-rec-d'>{record.detail}</span> : null}
</span>
</li>
))}
</ul>
) : null}
{inspection || returnPolicy ? (
<dl className='lsc-policies'>
{inspection ? (
<div className='lsc-policy'>
<dt>
<ShieldCheck size={20} strokeWidth={2.5} aria-hidden='true' />
{copy.inspectionLabel}
</dt>
<dd>{inspection}</dd>
</div>
) : null}
{returnPolicy ? (
<div className='lsc-policy'>
<dt>
<RotateCcw size={20} strokeWidth={2.5} aria-hidden='true' />
{copy.returnLabel}
</dt>
<dd>{returnPolicy}</dd>
</div>
) : null}
</dl>
) : null}
</section>
) : null}
{hasLetter ? (
<article className='lsc-tile lsc-letter lsc-rise' style={{ '--i': 4 } as React.CSSProperties}>
{salutation ? <p className='lsc-salute'>{salutation}</p> : null}
{letter.map((paragraph, i) => (
<p key={i} className='lsc-para'>
{paragraph}
</p>
))}
{signoffName || signoffRole ? (
<div className='lsc-sign'>
{presenterImage ? (
<img className='lsc-face' src={presenterImage} alt={presenterAlt} width={112} height={112} loading='lazy' />
) : null}
<p>
{signoffName ? <span className='lsc-sign-n'>{signoffName}</span> : null}
{signoffRole ? <span className='lsc-sign-r'>{signoffRole}</span> : null}
</p>
</div>
) : null}
</article>
) : null}
<div ref={actRef} className='lsc-tile lsc-act lsc-rise' style={{ '--i': 4 } as React.CSSProperties}>
<h3 className='lsc-h3'>{actionTitle}</h3>
{hasPrice ? (
<div className='lsc-prices'>
<div>
<p className='lsc-k'>{copy.priceLabel}</p>
<p className='lsc-price'>{money.format(p)}</p>
</div>
{alternative ? (
<p className='lsc-alt'>
<span className='lsc-alt-vs'>{copy.vs}</span>
<span className='lsc-alt-p'>{alternative.price}</span>
<span className='lsc-alt-l'>{alternative.label}</span>
</p>
) : null}
</div>
) : null}
{hasEst ? (
<p className='lsc-well'>
<Calculator className='lsc-inl' size={16} strokeWidth={2.5} aria-hidden='true' />
{fill(copy.yourEstimate, { monthly: monthlyText, term: termNow })}
</p>
) : null}
<div className='lsc-act-foot'>
<Cta label={ctaLabel} href={target} disabled={isDisabled} forced={forced} onClick={handleAction} />
<p className='lsc-note'>
{isDisabled ? (
<CircleAlert className='lsc-inl' size={16} strokeWidth={2.5} aria-hidden='true' />
) : (
<CalendarCheck className='lsc-inl' size={16} strokeWidth={2.5} aria-hidden='true' />
)}
{isDisabled ? copy.disabledNote : note}
</p>
</div>
</div>
</div>
<div className='lsc-dock' data-show={showDock ? 'true' : 'false'}>
<div className='lsc-dock-bar' aria-hidden={!showDock}>
<div className='lsc-dock-p'>
<span className='lsc-dock-price'>{hasPrice ? money.format(p) : vehicleName || ctaLabel}</span>
{hasEst ? <span className='lsc-dock-est'>{fill(copy.dockEstimate, { monthly: monthlyText })}</span> : null}
</div>
<Cta label={ctaLabel} href={target} disabled={isDisabled} forced={forced} onClick={handleAction} compact />
</div>
</div>
</div>
</section>
);
}
export default ListingShowcase2;
function Cta(props: {
label: string;
href?: string;
disabled: boolean;
forced?: 'hover' | 'active';
compact?: boolean;
onClick: (event: React.MouseEvent<HTMLElement>) => void;
}) {
const cls = ['lsc-cta', props.compact ? 'is-compact' : '', props.forced ? 'is-' + props.forced : ''].filter(Boolean).join(' ');
if (props.href && !props.disabled) {
return (
<a className={cls} href={props.href} onClick={props.onClick}>
{props.label}
</a>
);
}
return (
<button type='button' className={cls} disabled={props.disabled} onClick={props.onClick}>
{props.label}
</button>
);
}
function boardAreas(hasFacts: boolean, hasEst: boolean, hasHist: boolean, hasLetter: boolean): string {
const top = hasFacts ? '"stage stage facts facts"' : '"stage stage stage stage"';
let rest: string[];
if (hasEst && hasHist) {
rest = hasLetter ? ['"est est hist hist"', '"letter letter act act"'] : ['"est est hist hist"', '"est est act act"'];
} else if (hasEst) {
rest = hasLetter ? ['"est est letter letter"', '"est est act act"'] : ['"est est act act"'];
} else if (hasHist) {
rest = hasLetter ? ['"letter letter hist hist"', '"letter letter act act"'] : ['"hist hist act act"'];
} else {
rest = hasLetter ? ['"letter letter act act"'] : ['"act act act act"'];
}
return [top, ...rest].join(' ');
}
function renderHeadline(headline: React.ReactNode, emphasis?: string): React.ReactNode {
if (typeof headline !== 'string' || !emphasis) return headline;
const at = headline.indexOf(emphasis);
if (at < 0) return headline;
return (
<>
{headline.slice(0, at)}
<span className='lsc-em'>{emphasis}</span>
{headline.slice(at + emphasis.length)}
</>
);
}
function fill(template: string, vars: Record<string, string | number>): string {
return Object.keys(vars).reduce((text, key) => text.split('{' + key + '}').join(String(vars[key] ?? '')), template);
}
function withQuery(href: string, params: Record<string, string>): string {
const query = Object.keys(params)
.map((key) => encodeURIComponent(key) + '=' + encodeURIComponent(params[key] ?? ''))
.join('&');
const hashAt = href.indexOf('#');
const base = hashAt >= 0 ? href.slice(0, hashAt) : href;
const hash = hashAt >= 0 ? href.slice(hashAt) : '';
return base + (base.indexOf('?') >= 0 ? '&' : '?') + query + hash;
}
function makeMoney(locale: string, currency: string): Intl.NumberFormat {
try {
return new Intl.NumberFormat(locale, { style: 'currency', currency, minimumFractionDigits: 0, maximumFractionDigits: 0 });
} catch {
return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 0, maximumFractionDigits: 0 });
}
}
function formatNumber(value: number, locale: string): string {
try {
return value.toLocaleString(locale, { maximumFractionDigits: 2 });
} catch {
return String(value);
}
}
function clamp(value: number, min: number, max: number): number {
if (max < min) return min;
return Math.min(max, Math.max(min, value));
}
function monthlyPayment(principal: number, aprPercent: number, months: number): number {
if (principal <= 0 || months <= 0) return 0;
const rate = aprPercent / 1200;
if (rate === 0) return principal / months;
return (principal * rate) / (1 - Math.pow(1 + rate, -months));
}
const CSS = `
.cf-listing-showcase-2 {
--lsc-soft: color-mix(in oklch, var(--band-ink) 80%, var(--band));
--lsc-tile: color-mix(in oklch, var(--band-ink) 7%, var(--band));
--lsc-wall: color-mix(in oklch, var(--band-ink) 4%, var(--band));
--lsc-floor: color-mix(in oklch, var(--band-ink) 11%, var(--band));
--lsc-horizon: color-mix(in oklch, var(--band-ink) 20%, var(--band));
--lsc-line: oklch(from var(--band-ink) l c h / 0.14);
--lsc-veil: oklch(from var(--band-ink) l c h / 0.12);
--lsc-emph: color-mix(in oklab, var(--accent-fill, var(--accent)) 45%, var(--band-ink));
--lsc-shade: var(--shadow, oklch(0.22 0.03 260));
position: relative;
background: var(--band);
color: var(--band-ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
.cf-listing-showcase-2 *, .cf-listing-showcase-2 *::before, .cf-listing-showcase-2 *::after { box-sizing: border-box; }
.cf-listing-showcase-2 p, .cf-listing-showcase-2 h2, .cf-listing-showcase-2 h3, .cf-listing-showcase-2 figure, .cf-listing-showcase-2 dl, .cf-listing-showcase-2 dd { margin: 0; }
.cf-listing-showcase-2 .lsc-wrap { max-width: 1120px; margin: 0 auto; }
.cf-listing-showcase-2 .lsc-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); }
.cf-listing-showcase-2 .lsc-h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); text-transform: var(--display-case, none); text-wrap: balance; }
.cf-listing-showcase-2 .lsc-em { color: var(--lsc-emph); }
.cf-listing-showcase-2 .lsc-lead { margin-top: 16px; max-width: 60ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; color: var(--lsc-soft); text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-h3 { font-family: var(--font-display); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; font-weight: var(--display-weight, 800); letter-spacing: -0.01em; text-transform: var(--display-case, none); text-wrap: balance; }
.cf-listing-showcase-2 .lsc-small { font-size: 0.9375rem; line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-soft { color: var(--lsc-soft); }
.cf-listing-showcase-2 .lsc-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cf-listing-showcase-2 .lsc-tile { position: relative; min-width: 0; padding: clamp(20px, 3vw, 32px); background: var(--lsc-tile); color: var(--band-ink); border: 1px solid var(--lsc-line); border-radius: var(--card-radius, var(--radius, 14px)); box-shadow: inset 0 1px 0 oklch(from var(--band-ink) l c h / 0.06), 0 1px 2px oklch(from var(--lsc-shade) calc(l - 0.08) c h / 0.35), 0 6px 14px -6px oklch(from var(--lsc-shade) calc(l - 0.08) c h / 0.45); }
.cf-listing-showcase-2 .lsc-stage { display: flex; flex-direction: column; overflow: hidden; padding: 0; background: var(--lsc-wall); }
.cf-listing-showcase-2 .lsc-stage-media { position: relative; z-index: 1; padding: clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 28px) 0; }
.cf-listing-showcase-2 .lsc-contact { position: absolute; left: 14%; right: 14%; bottom: 2%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, oklch(from var(--lsc-shade) calc(l - 0.12) c h / 0.65), transparent); }
.cf-listing-showcase-2 .lsc-car { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; object-position: 50% 100%; border-radius: 0; filter: drop-shadow(0 2px 3px oklch(from var(--lsc-shade) calc(l - 0.1) c h / 0.5)) drop-shadow(0 12px 12px oklch(from var(--lsc-shade) calc(l - 0.1) c h / 0.35)); }
.cf-listing-showcase-2 .lsc-cap { position: relative; z-index: 1; margin-top: auto; padding: 16px clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px); }
.cf-listing-showcase-2 .lsc-cap .lsc-small { margin-top: 8px; }
.cf-listing-showcase-2 .lsc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.cf-listing-showcase-2 .lsc-facts > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cf-listing-showcase-2 .lsc-fact { display: flex; flex-direction: column; padding: clamp(16px, 2.2vw, 24px); }
.cf-listing-showcase-2 .lsc-fact-l { font-size: 0.9375rem; line-height: 1.35; font-weight: 700; color: var(--lsc-soft); text-wrap: balance; }
.cf-listing-showcase-2 .lsc-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: auto; padding-top: 16px; font-family: var(--font-display); font-weight: var(--display-weight, 800); }
.cf-listing-showcase-2 .lsc-num-v { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-listing-showcase-2 .lsc-num-u { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1; color: var(--lsc-soft); }
.cf-listing-showcase-2 .lsc-fact .lsc-small { margin-top: 12px; color: var(--lsc-soft); }
.cf-listing-showcase-2 .lsc-est { display: flex; flex-direction: column; gap: 24px; }
.cf-listing-showcase-2 .lsc-est-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cf-listing-showcase-2 .lsc-badge { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; background: var(--lsc-veil); color: var(--band-ink); font-size: 0.875rem; line-height: 1.2; font-weight: 800; }
.cf-listing-showcase-2 .lsc-monthly { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: var(--display-weight, 800); }
.cf-listing-showcase-2 .lsc-monthly-v { display: inline-block; font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; animation: cf-lsc2-tick 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cf-listing-showcase-2 .lsc-monthly-u { font-size: clamp(1.125rem, 1.5vw, 1.375rem); color: var(--lsc-soft); }
.cf-listing-showcase-2 .lsc-result .lsc-small { margin-top: 12px; font-weight: 600; color: var(--lsc-soft); font-variant-numeric: tabular-nums; }
.cf-listing-showcase-2 .lsc-label { display: block; padding: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--band-ink); }
.cf-listing-showcase-2 .lsc-field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cf-listing-showcase-2 .lsc-out { font-family: var(--font-display); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; font-weight: var(--display-weight, 800); font-variant-numeric: tabular-nums; }
.cf-listing-showcase-2 .lsc-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; line-height: 1.2; font-weight: 700; color: var(--lsc-soft); font-variant-numeric: tabular-nums; }
.cf-listing-showcase-2 .lsc-est-note { padding-top: 16px; border-top: 1px solid var(--lsc-line); color: var(--lsc-soft); }
.cf-listing-showcase-2 .lsc-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.cf-listing-showcase-2 .lsc-range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-fill, var(--accent)) 0 var(--pct, 0%), var(--lsc-veil) var(--pct, 0%) 100%); }
.cf-listing-showcase-2 .lsc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 999px; background: var(--card); border: 4px solid var(--accent-fill, var(--accent)); box-shadow: 0 1px 2px oklch(from var(--lsc-shade) calc(l - 0.1) c h / 0.45), 0 4px 8px -2px oklch(from var(--lsc-shade) calc(l - 0.1) c h / 0.45); transition: transform 0.16s ease; }
.cf-listing-showcase-2 .lsc-range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.cf-listing-showcase-2 .lsc-range::-moz-range-track { height: 10px; border-radius: 999px; background: var(--lsc-veil); }
.cf-listing-showcase-2 .lsc-range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--accent-fill, var(--accent)); }
.cf-listing-showcase-2 .lsc-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 999px; background: var(--card); border: 4px solid var(--accent-fill, var(--accent)); box-shadow: 0 1px 2px oklch(from var(--lsc-shade) calc(l - 0.1) c h / 0.45), 0 4px 8px -2px oklch(from var(--lsc-shade) calc(l - 0.1) c h / 0.45); transition: transform 0.16s ease; }
.cf-listing-showcase-2 .lsc-range:hover::-moz-range-thumb { transform: scale(1.08); }
.cf-listing-showcase-2 .lsc-range:focus-visible { outline: 2px solid var(--band-ink); outline-offset: 4px; border-radius: 12px; }
.cf-listing-showcase-2 .lsc-range:disabled { cursor: not-allowed; opacity: 0.55; }
.cf-listing-showcase-2 .lsc-terms { min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-listing-showcase-2 .lsc-terms .lsc-label { margin-bottom: 12px; }
.cf-listing-showcase-2 .lsc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-listing-showcase-2 .lsc-chip { position: relative; display: inline-flex; }
.cf-listing-showcase-2 .lsc-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cf-listing-showcase-2 .lsc-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--lsc-veil); color: var(--band-ink); box-shadow: inset 0 0 0 1px var(--lsc-line); font-size: 0.9375rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease; }
.cf-listing-showcase-2 .lsc-chip input:hover + span { background: oklch(from var(--band-ink) l c h / 0.2); }
.cf-listing-showcase-2 .lsc-chip input:checked + span { background: var(--accent-fill, var(--accent)); color: var(--accent-fill-ink, var(--card)); box-shadow: inset 0 1px 0 oklch(from var(--accent-fill, var(--accent)) calc(l + 0.12) c h / 0.6), 0 1px 2px oklch(from var(--lsc-shade) calc(l - 0.1) c h / 0.4); }
.cf-listing-showcase-2 .lsc-chip input:focus-visible + span { outline: 2px solid var(--band-ink); outline-offset: 3px; }
.cf-listing-showcase-2 .lsc-hist { display: flex; flex-direction: column; gap: 16px; }
.cf-listing-showcase-2 .lsc-recs { list-style: none; margin: 0; padding: 0; }
.cf-listing-showcase-2 .lsc-recs li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; }
.cf-listing-showcase-2 .lsc-recs li + li { border-top: 1px solid var(--lsc-line); }
.cf-listing-showcase-2 .lsc-recs li:first-child { padding-top: 4px; }
.cf-listing-showcase-2 .lsc-recs li:last-child { padding-bottom: 0; }
.cf-listing-showcase-2 .lsc-tickb { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--success); color: var(--lsc-glyph, #fff); }
.cf-listing-showcase-2 .lsc-rec-l { display: block; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.35; font-weight: 700; text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-rec-d { display: block; margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--lsc-soft); }
.cf-listing-showcase-2 .lsc-policies { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--lsc-line); }
.cf-listing-showcase-2 .lsc-policy dt { display: flex; align-items: center; gap: 8px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.35; font-weight: 800; }
.cf-listing-showcase-2 .lsc-policy dt svg { flex: none; }
.cf-listing-showcase-2 .lsc-policy dd { margin: 4px 0 0 28px; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--lsc-soft); text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-letter { display: flex; flex-direction: column; gap: 12px; }
.cf-listing-showcase-2 .lsc-salute { font-family: var(--font-display); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.3; font-weight: var(--display-weight, 800); }
.cf-listing-showcase-2 .lsc-para { max-width: 64ch; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.55; text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-sign { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cf-listing-showcase-2 .lsc-face { flex: none; display: block; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; object-position: 50% 25%; }
.cf-listing-showcase-2 .lsc-sign-n { display: block; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.3; font-weight: 800; }
.cf-listing-showcase-2 .lsc-sign-r { display: block; margin-top: 2px; font-size: 0.9375rem; line-height: 1.4; color: var(--lsc-soft); }
.cf-listing-showcase-2 .lsc-act { display: flex; flex-direction: column; gap: 20px; background: var(--card); color: var(--ink); border-color: color-mix(in oklch, var(--accent) 32%, var(--card)); box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32))); }
.cf-listing-showcase-2 .lsc-prices { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.cf-listing-showcase-2 .lsc-k { margin-bottom: 12px; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--muted); }
.cf-listing-showcase-2 .lsc-price { font-family: var(--font-display); font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1; font-weight: var(--display-weight, 800); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.cf-listing-showcase-2 .lsc-alt { flex: 1 1 11rem; min-width: 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted); }
.cf-listing-showcase-2 .lsc-alt-vs { margin-inline-end: 6px; font-weight: 800; color: var(--ink); }
.cf-listing-showcase-2 .lsc-alt-p { font-family: var(--font-display); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; font-weight: var(--display-weight, 800); color: var(--ink); font-variant-numeric: tabular-nums; }
.cf-listing-showcase-2 .lsc-alt-l { display: block; margin-top: 4px; text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-well { padding: 12px 16px; border-radius: 10px; background: color-mix(in oklch, var(--ink) 5%, var(--card)); color: var(--ink); font-size: 0.9375rem; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-inl { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
.cf-listing-showcase-2 .lsc-well .lsc-inl { color: var(--accent); }
.cf-listing-showcase-2 .lsc-act-foot { display: grid; gap: 12px; margin-top: auto; }
.cf-listing-showcase-2 .lsc-note { font-size: 0.9375rem; line-height: 1.4; font-weight: 500; color: var(--muted); text-align: center; text-wrap: pretty; }
.cf-listing-showcase-2 .lsc-cta { --lsc-bg: var(--button-bg, var(--cta)); --lsc-bg2: var(--button-bg-2, var(--cta-2)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; padding: 0 28px; border: 0; border-radius: var(--button-radius, var(--radius, 12px)); font-family: var(--button-font, var(--font-display)); font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.15; font-weight: var(--button-weight, 800); text-transform: var(--button-case, none); white-space: nowrap; text-decoration: none; color: var(--button-ink, var(--cta-ink)); text-shadow: var(--button-text-shadow, none); background: linear-gradient(180deg, oklch(from var(--lsc-bg) calc(l + 0.04) c h), oklch(from var(--lsc-bg2) calc(l - 0.02) c h)); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--lsc-bg) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--lsc-bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--lsc-shade) calc(l - 0.08) c h / 0.35), 0 8px 16px -6px oklch(from var(--lsc-shade) calc(l - 0.08) c h / 0.5)); transform: translateY(var(--lsc-lift, 0px)); cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.cf-listing-showcase-2 .lsc-cta:not(:disabled):hover, .cf-listing-showcase-2 .lsc-cta.is-hover:not(:disabled) { --lsc-lift: -1px; background: linear-gradient(180deg, oklch(from var(--lsc-bg) calc(l - 0.01) c h), oklch(from var(--lsc-bg2) calc(l - 0.07) c h)); box-shadow: inset 0 1px 0 oklch(from var(--lsc-bg) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--lsc-bg) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--lsc-shade) calc(l - 0.08) c h / 0.4), 0 10px 18px -6px oklch(from var(--lsc-shade) calc(l - 0.08) c h / 0.6); }
.cf-listing-showcase-2 .lsc-cta:not(:disabled):active, .cf-listing-showcase-2 .lsc-cta.is-active:not(:disabled) { --lsc-lift: 1px; background: linear-gradient(180deg, oklch(from var(--lsc-bg) calc(l - 0.06) c h), oklch(from var(--lsc-bg2) calc(l - 0.08) c h)); box-shadow: inset 0 2px 4px oklch(from var(--lsc-bg) calc(l - 0.24) c h / 0.55), inset 0 -2px 0 oklch(from var(--lsc-bg) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--lsc-shade) calc(l - 0.08) c h / 0.3); }
.cf-listing-showcase-2 .lsc-cta:focus-visible { outline: 3px solid var(--field-focus, var(--accent)); outline-offset: 3px; }
.cf-listing-showcase-2 .lsc-cta:disabled { background: var(--button-2-bg, var(--secondary)); color: var(--button-2-ink, var(--secondary-ink)); box-shadow: none; text-shadow: none; cursor: not-allowed; }
.cf-listing-showcase-2 .lsc-cta.is-compact { flex: 0 1 auto; width: auto; min-width: 0; min-height: 52px; padding: 0 16px; font-size: 1rem; }
.cf-listing-showcase-2 .lsc-dock { position: sticky; bottom: 0; z-index: 5; height: 0; }
.cf-listing-showcase-2 .lsc-dock-bar { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--card); color: var(--ink); border: 1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12)); border-radius: var(--card-radius, var(--radius, 14px)); box-shadow: var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
.cf-listing-showcase-2 .lsc-dock[data-show='true'] .lsc-dock-bar { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s; }
.cf-listing-showcase-2 .lsc-dock-p { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-listing-showcase-2 .lsc-dock-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.15; font-weight: var(--display-weight, 800); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cf-listing-showcase-2 .lsc-dock-est { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; line-height: 1.3; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes cf-lsc2-rise { from { opacity: 0.82; transform: translateY(8px); } }
@keyframes cf-lsc2-tick { from { opacity: 0.6; transform: translateY(4px); } }
.cf-listing-showcase-2 .lsc-rise { animation: cf-lsc2-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: min(calc(var(--i, 0) * 0.07s), 0.28s); }
@media (min-width: 640px) {
.cf-listing-showcase-2 .lsc-dock { display: none; }
}
@media (max-width: 1023px) {
.cf-listing-showcase-2 .lsc-stage-media { width: min(100%, 720px); margin-inline: auto; }
}
@media (min-width: 1024px) {
.cf-listing-showcase-2 .lsc-board { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: var(--lsc-areas); gap: 16px; }
.cf-listing-showcase-2 .lsc-facts { gap: 16px; }
.cf-listing-showcase-2 .lsc-stage { grid-area: stage; }
.cf-listing-showcase-2 .lsc-facts { grid-area: facts; }
.cf-listing-showcase-2 .lsc-est { grid-area: est; justify-content: space-between; }
.cf-listing-showcase-2 .lsc-hist { grid-area: hist; }
.cf-listing-showcase-2 .lsc-letter { grid-area: letter; }
.cf-listing-showcase-2 .lsc-act { grid-area: act; }
}
@media (prefers-reduced-motion: reduce) {
.cf-listing-showcase-2 .lsc-rise, .cf-listing-showcase-2 .lsc-monthly-v { animation: none; }
.cf-listing-showcase-2 .lsc-cta, .cf-listing-showcase-2 .lsc-chip span, .cf-listing-showcase-2 .lsc-dock-bar { transition: none; }
.cf-listing-showcase-2 .lsc-cta { transform: none; }
.cf-listing-showcase-2 .lsc-dock-bar { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.cf-listing-showcase-2 .lsc-range::-webkit-slider-thumb { transition: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.cf-listing-showcase-2 .lsc-range::-moz-range-thumb { transition: none; transform: none; }
}
`;
pieces/offer/listing-showcase-2/specimen.tsx 57 lines
import __studioImagef8f526dd from "../assets/4cdc297bb48211d6.webp";
import __studioImage83925590 from "../assets/bdd965160a1febe7.webp";
// Specimen: Halvorsen Motors lists a one-owner 2021 midsize pickup on the vehicle spec scoreboard.
import * as React from 'react';
import { ListingShowcase2 } from '../listing-showcase-2';
import type { ListingShowcase2Props } from '../listing-showcase-2';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
export default function ListingShowcase2Specimen({ state = 'default' }: { state?: ListingShowcase2Props['state'] }) {
return (
<ListingShowcase2
state={state}
headline='One owner, 38,412 miles and every service receipt'
emphasis='every service receipt'
lead='Here’s the whole story on this 2021 midsize pickup, numbers first. Run your own payment, then come feel it on the road.'
vehicleImage={slot('product', __studioImagef8f526dd)}
vehicleAlt='2021 midsize crew-cab pickup in slate grey, front three-quarter view'
vehicleName='2021 Midsize Pickup · Crew Cab 4x4'
vehicleMeta='Stock #H2147 · On the lot at Halvorsen Motors'
facts={[
{ value: '2021', label: 'Model year', detail: 'Crew cab, 4x4' },
{ value: '38,412', unit: 'mi', label: 'On the odometer', detail: 'About 7,700 a year' },
{ value: '1', label: 'Owner from new', detail: 'Bought and serviced here' },
{ value: '20/26', unit: 'mpg', label: 'City / highway', detail: 'Manufacturer rating' },
]}
price={31900}
alternative={{ price: '$44,800', label: 'for a comparable new 2024 crew-cab pickup' }}
apr={6.9}
terms={[36, 48, 60]}
defaultTerm={60}
defaultDown={3000}
downMax={15000}
downStep={500}
history={[
{ label: 'Oil and filter every 5,000 miles', detail: '8 visits, all at Halvorsen Service' },
{ label: 'Brake pads and rotors replaced', detail: 'Jun 2024 · 34,880 mi' },
{ label: 'Transmission fluid service', detail: 'Mar 2024 · 30,105 mi' },
{ label: 'Tires rotated and balanced', detail: 'Every other oil change' },
]}
inspection='150-point inspection by our service team. The full report rides with the keys.'
returnPolicy='Not the right truck? Exchange it within 3 days or 150 miles.'
salutation='Dear neighbor,'
letter={[
'You’ll find trucks like this listed for less online. Here’s exactly why this one is $31,900.',
'One family bought it new from us in 2021 and brought it back every 5,000 miles. Every receipt is in a folder in the glovebox.',
'Before it hit the lot, we fitted new brake pads and rotors at 34,880 miles. That bill is already paid, and it isn’t yours.',
]}
signoffName='Erik Halvorsen'
signoffRole='Owner, Halvorsen Motors'
presenterImage={slot('presenter', __studioImage83925590)}
presenterAlt='Erik Halvorsen, owner of Halvorsen Motors'
note='No deposit. Pick your day and time on the next page.'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalListingShowcase2 |
React.ReactNode |
|
emphasis OptionalListingShowcase2 |
string |
|
lead OptionalListingShowcase2 |
React.ReactNode |
|
vehicleImage OptionalListingShowcase2 |
string |
|
vehicleAlt OptionalListingShowcase2 |
string |
|
vehicleName OptionalListingShowcase2 |
string |
|
vehicleMeta OptionalListingShowcase2 |
string |
|
facts OptionalListingShowcase2 |
ListingFact[] |
|
price OptionalListingShowcase2 |
number |
|
currency OptionalListingShowcase2 |
string |
|
locale OptionalListingShowcase2 |
string |
|
alternative OptionalListingShowcase2 |
{ price: string; label: string } |
|
apr OptionalListingShowcase2 |
number | null |
|
terms OptionalListingShowcase2 |
number[] |
|
defaultTerm OptionalListingShowcase2 |
number |
|
defaultDown OptionalListingShowcase2 |
number |
|
downMin OptionalListingShowcase2 |
number |
|
downMax OptionalListingShowcase2 |
number |
|
downStep OptionalListingShowcase2 |
number |
|
estimatorTitle OptionalListingShowcase2 |
React.ReactNode |
|
historyTitle OptionalListingShowcase2 |
React.ReactNode |
|
history OptionalListingShowcase2 |
ServiceRecord[] |
|
inspection OptionalListingShowcase2 |
React.ReactNode |
|
returnPolicy OptionalListingShowcase2 |
React.ReactNode |
|
salutation OptionalListingShowcase2 |
string |
|
letter OptionalListingShowcase2 |
React.ReactNode[] |
|
signoffName OptionalListingShowcase2 |
string |
|
signoffRole OptionalListingShowcase2 |
string |
|
presenterImage OptionalListingShowcase2 |
string |
|
presenterAlt OptionalListingShowcase2 |
string |
|
actionTitle OptionalListingShowcase2 |
React.ReactNode |
|
ctaLabel OptionalListingShowcase2 |
string |
|
note OptionalListingShowcase2 |
string |
|
copy OptionalListingShowcase2 |
Partial<ListingShowcase2Copy> |
|
href OptionalListingShowcase2 |
string |
|
onAction OptionalListingShowcase2 |
(detail: ListingShowcase2Action) => void |
|
disabled OptionalListingShowcase2 |
boolean |
|
state OptionalListingShowcase2 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalListingShowcase2 |
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- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
product- The main product shot or cover (ebook, kit, bottle).
-
4cdc297bb48211d6.webp
image/webp · 74.4 KB
-
bdd965160a1febe7.webp
image/webp · 56.7 KB