Review Wall 1
Review wall: the supplied average rating up top, a masonry wall of written reviews (a swipe row on phones), then one question-and-answer action with the rating restated under the button and a P.S., so the proof hands the reader straight to the click.
Use it in a prompt
Use proof/review-wall 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/proof/review-wall.tsx. - Import it and pass your copy and images (Props tab):
import { ReviewWall } from "@/components/funneldna/proof/review-wall"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/review-wall/component.tsx 557 lines
// layout: scroll-panels
// Review wall: the supplied average rating up top, a masonry wall of written reviews (a swipe row on phones), then one question-and-answer action with the rating restated under the button and a P.S., so the proof hands the reader straight to the click.
import * as React from 'react';
import { Check, ChevronLeft, ChevronRight, Star } from 'lucide-react';
import { motion, useReducedMotion } from 'motion/react';
export type Review = {
/** Star rating 0–5; tenths render as a partly filled star. */
rating: number;
quote: string;
name: string;
/** City, region or role shown under the name. */
place?: string;
/** Short bold line above the quote. */
title?: string;
/** A phrase inside the quote to mark with one highlighter stroke. */
highlight?: string;
/** Small reviewer photo (src); initials show when absent. */
photo?: string;
photoAlt?: string;
/** Shows the verified tag. */
verified?: boolean;
/** Gives one review the accent ring and a larger quote. */
featured?: boolean;
};
export type ReviewWallCopy = {
/** Uses {count}. */
countLabel: string;
countLabelOne: string;
outOf: string;
/** Uses {rating}. */
ratingLabel: string;
/** Uses {rating}. */
reviewRatingLabel: string;
verifiedLabel: string;
wallLabel: string;
prevLabel: string;
nextLabel: string;
/** Uses {current} and {total}. */
position: string;
openQuote: string;
closeQuote: string;
/** Rating line under the button. Uses {rating} and {count}. */
recap: string;
/** Uses {rating}. */
recapOne: string;
/** Used when no review count is supplied. Uses {rating}. */
recapNoCount: string;
};
export type ReviewWallProps = {
headline?: string;
/** A phrase inside the headline to mark with the highlighter. */
headlineHighlight?: string;
lead?: string;
/** Supplied average rating, 0–5. Hidden when absent. */
rating?: number;
/** Supplied total number of reviews. Hidden when absent. */
reviewCount?: number;
/** Real reviews only; the wall is hidden when empty. */
reviews?: Review[];
question?: string;
/** Empty string hides the closing action panel. */
ctaLabel?: string;
ctaSublabel?: string;
pricePrefix?: string;
price?: string;
priceNote?: string;
psLabel?: string;
ps?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled';
copy?: Partial<ReviewWallCopy>;
className?: string;
};
const defaultCopy: ReviewWallCopy = {
countLabel: 'Based on {count} reviews',
countLabelOne: 'Based on 1 review',
outOf: '/ 5',
ratingLabel: 'Average rating {rating} out of 5',
reviewRatingLabel: 'Rated {rating} out of 5',
verifiedLabel: 'Verified buyer',
wallLabel: 'Customer reviews',
prevLabel: 'Previous review',
nextLabel: 'Next review',
position: '{current} of {total}',
openQuote: '“',
closeQuote: '”',
recap: 'Rated {rating} out of 5 from {count} reviews',
recapOne: 'Rated {rating} out of 5 from 1 review',
recapNoCount: 'Rated {rating} out of 5',
};
export function ReviewWall(props: ReviewWallProps) {
const {
headline = 'Hear it from people who’ve already used it',
headlineHighlight,
lead = '',
rating,
reviewCount,
reviews = [],
question = 'Ready to get started?',
ctaLabel = 'I’m ready, show me how',
ctaSublabel = '',
pricePrefix = 'Just',
price = '',
priceNote = '',
psLabel = 'P.S.',
ps = '',
href,
onAction,
disabled = false,
state = 'default',
copy: copyProp,
className,
} = props;
const copy = { ...defaultCopy, ...copyProp };
const reduce = useReducedMotion();
const headingId = React.useId();
const trackRef = React.useRef<HTMLUListElement>(null);
const frame = React.useRef(0);
const [pos, setPos] = React.useState({ index: 0, progress: 0, atStart: true, atEnd: false });
const count = reviews.length;
const measure = React.useCallback(() => {
const el = trackRef.current;
if (!el) return;
const max = el.scrollWidth - el.clientWidth;
if (max <= 2) {
setPos((p) => (p.atStart && p.atEnd && p.index === 0 ? p : { index: 0, progress: 1, atStart: true, atEnd: true }));
return;
}
const pad = parseFloat(getComputedStyle(el).paddingLeft) || 0;
const kids = Array.from(el.children) as HTMLElement[];
let index = 0;
let best = Infinity;
kids.forEach((kid, i) => {
const d = Math.abs(kid.offsetLeft - pad - el.scrollLeft);
if (d < best) {
best = d;
index = i;
}
});
const atEnd = el.scrollLeft >= max - 2;
setPos({
index: atEnd ? kids.length - 1 : index,
progress: Math.min(1, Math.max(0, el.scrollLeft / max)),
atStart: el.scrollLeft <= 2,
atEnd,
});
}, []);
const onScroll = React.useCallback(() => {
cancelAnimationFrame(frame.current);
frame.current = requestAnimationFrame(measure);
}, [measure]);
React.useEffect(() => {
const el = trackRef.current;
if (!el) return;
measure();
el.addEventListener('scroll', onScroll, { passive: true });
window.addEventListener('resize', onScroll);
return () => {
el.removeEventListener('scroll', onScroll);
window.removeEventListener('resize', onScroll);
cancelAnimationFrame(frame.current);
};
}, [measure, onScroll, count]);
const go = (dir: number) => {
const el = trackRef.current;
if (!el) return;
const kids = Array.from(el.children) as HTMLElement[];
const target = kids[Math.min(kids.length - 1, Math.max(0, pos.index + dir))];
if (!target) return;
const pad = parseFloat(getComputedStyle(el).paddingLeft) || 0;
el.scrollTo({ left: target.offsetLeft - pad, behavior: reduce ? 'auto' : 'smooth' });
};
const hasScore = typeof rating === 'number' && Number.isFinite(rating);
const score = hasScore ? Math.min(5, Math.max(0, rating as number)) : 0;
const scoreText = score.toFixed(1);
const hasCount = typeof reviewCount === 'number' && Number.isFinite(reviewCount);
const isDisabled = disabled || state === 'disabled';
const showAction = ctaLabel.trim().length > 0;
const cols = count <= 2 ? count : count === 4 ? 2 : 3;
const barFill = count > 1 ? 1 / count + pos.progress * (1 - 1 / count) : 1;
const scrollable = !(pos.atStart && pos.atEnd);
const recapText = !hasCount
? template(copy.recapNoCount, { rating: scoreText })
: reviewCount === 1
? template(copy.recapOne, { rating: scoreText })
: template(copy.recap, { rating: scoreText, count: (reviewCount as number).toLocaleString('en-US') });
const buttonInner = (
<>
<span className='cf-review-wall__btn-label'>{ctaLabel}</span>
{ctaSublabel ? <span className='cf-review-wall__btn-sub'>{ctaSublabel}</span> : null}
</>
);
return (
<section
className={['cf-review-wall', className].filter(Boolean).join(' ')}
data-state={state}
data-empty={count === 0 ? '' : undefined}
aria-labelledby={headingId}
>
<style>{css}</style>
<div className='cf-review-wall__head'>
<div className='cf-review-wall__inner cf-review-wall__head-grid' data-score={hasScore ? '' : undefined}>
<div className='cf-review-wall__intro'>
<h2 id={headingId} className='cf-review-wall__headline'>
{marked(headline, headlineHighlight, 'cf-review-wall__mark')}
</h2>
{lead ? <p className='cf-review-wall__lead'>{lead}</p> : null}
</div>
{hasScore ? (
<div className='cf-review-wall__score'>
<p className='cf-review-wall__score-num' aria-hidden='true'>
{scoreText}
<span className='cf-review-wall__score-out'>{copy.outOf}</span>
</p>
<div className='cf-review-wall__score-meta'>
<Stars
value={score}
label={template(copy.ratingLabel, { rating: scoreText })}
className='cf-review-wall__stars cf-review-wall__stars--big'
/>
{hasCount ? (
<p className='cf-review-wall__count'>
{reviewCount === 1
? copy.countLabelOne
: template(copy.countLabel, { count: (reviewCount as number).toLocaleString('en-US') })}
</p>
) : null}
</div>
</div>
) : null}
</div>
</div>
{count > 0 ? (
<div className='cf-review-wall__wall'>
<div className='cf-review-wall__inner'>
<ul
ref={trackRef}
className='cf-review-wall__list'
data-cols={cols}
aria-label={copy.wallLabel}
tabIndex={scrollable ? 0 : undefined}
>
{reviews.map((review, i) => (
<motion.li
key={`${review.name}-${i}`}
className='cf-review-wall__item'
initial={reduce ? false : { opacity: 0.82, y: 12 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '0px 0px -40px 0px' }}
transition={{ duration: 0.45, ease: 'easeOut', delay: Math.min(i * 0.06, 0.3) }}
>
<figure className='cf-review-wall__card' data-featured={review.featured ? '' : undefined}>
<Stars
value={Math.min(5, Math.max(0, review.rating))}
label={template(copy.reviewRatingLabel, { rating: String(review.rating) })}
className='cf-review-wall__stars'
/>
{review.title ? <h3 className='cf-review-wall__title'>{review.title}</h3> : null}
<blockquote className='cf-review-wall__quote'>
<p>
{copy.openQuote}
{marked(review.quote, review.highlight, 'cf-review-wall__mark')}
{copy.closeQuote}
</p>
</blockquote>
<figcaption className='cf-review-wall__by'>
<span className='cf-review-wall__avatar' aria-hidden={review.photo ? undefined : true}>
{review.photo ? (
<img src={review.photo} alt={review.photoAlt ?? ''} width={44} height={44} loading='lazy' />
) : (
initials(review.name)
)}
</span>
<span className='cf-review-wall__who'>
<span className='cf-review-wall__name'>{review.name}</span>
{review.place ? <span className='cf-review-wall__place'>{review.place}</span> : null}
{review.verified ? (
<span className='cf-review-wall__verified'>
<span className='cf-review-wall__tick' aria-hidden='true'>
<Check strokeWidth={3.25} />
</span>
{copy.verifiedLabel}
</span>
) : null}
</span>
</figcaption>
</figure>
</motion.li>
))}
</ul>
{count > 1 ? (
<div className='cf-review-wall__nav'>
<button
type='button'
className='cf-review-wall__navbtn'
onClick={() => go(-1)}
disabled={pos.atStart}
aria-label={copy.prevLabel}
>
<ChevronLeft aria-hidden='true' strokeWidth={2.5} />
</button>
<div className='cf-review-wall__progress'>
<span className='cf-review-wall__bar' aria-hidden='true'>
<span className='cf-review-wall__bar-fill' style={{ width: `${Math.round(barFill * 1000) / 10}%` }} />
</span>
<span className='cf-review-wall__pos' aria-live='polite'>
{template(copy.position, { current: String(pos.index + 1), total: String(count) })}
</span>
</div>
<button
type='button'
className='cf-review-wall__navbtn'
onClick={() => go(1)}
disabled={pos.atEnd}
aria-label={copy.nextLabel}
>
<ChevronRight aria-hidden='true' strokeWidth={2.5} />
</button>
</div>
) : null}
</div>
</div>
) : null}
{showAction ? (
<div className='cf-review-wall__cta'>
<div className='cf-review-wall__inner cf-review-wall__cta-inner'>
{question ? <h2 className='cf-review-wall__question'>{question}</h2> : null}
{price ? (
<p className='cf-review-wall__price'>
<span className='cf-review-wall__price-main'>
{pricePrefix ? `${pricePrefix} ` : ''}
{price}
</span>
{priceNote ? <span className='cf-review-wall__price-note'>{priceNote}</span> : null}
</p>
) : null}
{href && !isDisabled ? (
<a className='cf-review-wall__btn' href={href} onClick={onAction}>
{buttonInner}
</a>
) : (
<button type='button' className='cf-review-wall__btn' disabled={isDisabled} onClick={onAction}>
{buttonInner}
</button>
)}
{hasScore ? (
<p className='cf-review-wall__recap'>
<Stars value={score} label='' hidden className='cf-review-wall__stars cf-review-wall__stars--recap' />
<span className='cf-review-wall__recap-text'>{recapText}</span>
</p>
) : null}
{ps ? (
<p className='cf-review-wall__ps'>
<strong>{psLabel}</strong> {ps}
</p>
) : null}
</div>
</div>
) : null}
</section>
);
}
export default ReviewWall;
function Stars({ value, label, className, hidden }: { value: number; label: string; className: string; hidden?: boolean }) {
return (
<span
className={className}
role={hidden ? undefined : 'img'}
aria-label={hidden ? undefined : label}
aria-hidden={hidden ? true : undefined}
>
{[0, 1, 2, 3, 4].map((i) => {
const f = Math.min(1, Math.max(0, value - i));
return (
<span key={i} className='cf-review-wall__star' style={{ '--i': i } as React.CSSProperties}>
<Star fill='currentColor' strokeWidth={0} aria-hidden='true' />
{f > 0 ? (
<span className='cf-review-wall__star-fill' style={{ width: `${f * 100}%` }}>
<Star fill='currentColor' strokeWidth={0} aria-hidden='true' />
</span>
) : null}
</span>
);
})}
</span>
);
}
function marked(text: string, phrase: string | undefined, className: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<mark className={className}>{phrase}</mark>
{text.slice(at + phrase.length)}
</>
);
}
function initials(name: string) {
return name
.split(' ')
.filter(Boolean)
.slice(0, 2)
.map((word) => word[0])
.join('')
.toUpperCase();
}
function template(text: string, values: Record<string, string>) {
return Object.keys(values).reduce((out, key) => out.split(`{${key}}`).join(values[key]), text);
}
const css = `
.cf-review-wall,.cf-review-wall *{box-sizing:border-box}
.cf-review-wall{
--rw-pad:clamp(1.25rem,4vw,2.5rem);
--rw-cut:clamp(1.25rem,3vw,2.75rem);
--rw-shadow:var(--shadow,oklch(0.22 0.03 260));
--rw-wall:color-mix(in oklch,var(--ink,oklch(0.21 0.03 263)) 4%,var(--surface,oklch(1 0 0)));
--rw-star:var(--review-star,oklch(from var(--warning,oklch(0.5 0.1 85)) 0.6 0.14 h));
--rw-star-empty:oklch(from var(--ink,oklch(0.21 0.03 263)) l c h / 0.16);
--rw-marker:var(--review-marker,oklch(from var(--marker,var(--warning,oklch(0.5 0.1 85))) 0.84 0.15 h / 0.42));
position:relative;isolation:isolate;overflow:hidden;
background:var(--rw-wall);color:var(--ink);font-family:var(--font-body);
}
.cf-review-wall[data-empty]{background:var(--surface)}
.cf-review-wall__inner{max-width:72rem;margin-inline:auto;padding-inline:var(--rw-pad)}
.cf-review-wall__head{background:var(--surface);padding-block:clamp(2.5rem,5vw,4rem) clamp(2rem,4vw,3rem)}
.cf-review-wall__head-grid{display:grid;gap:1.75rem;align-items:start}
@media (min-width:900px){.cf-review-wall__head-grid[data-score]{grid-template-columns:minmax(0,1fr) auto;gap:3.5rem}}
.cf-review-wall__headline{margin:0 0 .3em;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.02em);font-size:clamp(2.125rem,4.8vw,3.75rem);line-height:1.06;color:var(--ink);text-wrap:balance}
.cf-review-wall__lead{margin:0;max-width:60ch;font-size:clamp(1.0625rem,1.6vw,1.25rem);line-height:1.5;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-review-wall__score{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.25rem;padding-top:.35rem}
.cf-review-wall__score-num{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(3.5rem,7vw,5.25rem);line-height:.9;letter-spacing:-0.03em;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-review-wall__score-out{margin-left:.15em;font-size:.4em;letter-spacing:0;font-weight:700;color:var(--muted)}
.cf-review-wall__score-meta{display:grid;gap:.6rem}
.cf-review-wall__count{margin:0;font-size:1rem;font-weight:600;color:var(--muted)}
.cf-review-wall__stars{--s:1.125rem;display:inline-flex;gap:.15em;line-height:0}
.cf-review-wall__stars--big{--s:clamp(1.5rem,2.6vw,2rem);gap:.2rem}
.cf-review-wall__star{position:relative;display:inline-block;inline-size:var(--s);block-size:var(--s);color:var(--rw-star-empty)}
.cf-review-wall__star svg{display:block;inline-size:var(--s);block-size:var(--s);max-inline-size:none}
.cf-review-wall__star-fill{position:absolute;inset:0 auto 0 0;overflow:hidden;color:var(--rw-star)}
.cf-review-wall__stars--big .cf-review-wall__star{animation:cf-rw-pop .5s cubic-bezier(.3,1.5,.5,1) backwards;animation-delay:calc(var(--i) * 70ms + 120ms)}
@keyframes cf-rw-pop{from{transform:scale(.55)}}
.cf-review-wall__wall{padding-block:clamp(2rem,4vw,3.25rem) clamp(2.75rem,5vw,4.25rem)}
.cf-review-wall__list{position:relative;list-style:none;margin:0;padding:0;columns:1;column-gap:1.25rem}
.cf-review-wall__item{break-inside:avoid;margin:0 0 1.25rem}
@media (min-width:720px){
.cf-review-wall__list{columns:2}
.cf-review-wall__list[data-cols='1']{columns:1;max-width:40rem;margin-inline:auto}
}
@media (min-width:1024px){.cf-review-wall__list[data-cols='3']{columns:3}}
.cf-review-wall__card{position:relative;margin:0;display:flex;flex-direction:column;gap:.75rem;padding:1.375rem 1.375rem 1.25rem;background:var(--card,oklch(1 0 0));border:1px solid var(--card-border,color-mix(in oklch,var(--ink) 12%,transparent));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,inset 0 1px 0 oklch(from var(--card,oklch(1 0 0)) calc(l + 0.05) c h / 0.5),var(--shadow-sm,0 1px 2px oklch(from var(--rw-shadow) l c h / 0.2),0 2px 6px -2px oklch(from var(--rw-shadow) l c h / 0.18)));transition:transform .25s ease,box-shadow .25s ease}
.cf-review-wall__card[data-featured]{border:2px solid var(--accent-fill,var(--accent));padding:calc(1.375rem - 1px) calc(1.375rem - 1px) calc(1.25rem - 1px)}
@media (hover:hover) and (pointer:fine){
.cf-review-wall__card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--rw-shadow) l c h / 0.22),0 4px 10px -2px oklch(from var(--rw-shadow) l c h / 0.2))}
}
.cf-review-wall__title{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:1.1875rem;line-height:1.2;letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.cf-review-wall__quote{margin:0}
.cf-review-wall__quote p{margin:0;font-size:1.0625rem;line-height:1.55;color:var(--ink);text-wrap:pretty}
.cf-review-wall__card[data-featured] .cf-review-wall__quote p{font-size:1.1875rem;font-weight:600;line-height:1.5}
mark.cf-review-wall__mark{color:inherit;padding:0 .14em;margin:0 -.06em;border-radius:.2em .34em .24em .3em;background:linear-gradient(180deg,transparent 44%,var(--rw-marker) 44%,var(--rw-marker) 93%,transparent 93%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-review-wall__by{display:flex;align-items:flex-start;gap:.75rem;margin-top:auto;padding-top:.5rem}
.cf-review-wall__avatar{flex:none;display:grid;place-items:center;inline-size:2.75rem;block-size:2.75rem;border-radius:999px;overflow:hidden;background:var(--secondary);color:var(--secondary-ink);font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:.9375rem;letter-spacing:.02em}
.cf-review-wall__avatar img{display:block;inline-size:100%;block-size:100%;object-fit:cover;object-position:center 30%}
.cf-review-wall__who{display:flex;flex-direction:column;min-width:0;padding-top:.1rem}
.cf-review-wall__name{font-weight:700;font-size:1rem;line-height:1.3;color:var(--ink)}
.cf-review-wall__place{font-size:.9375rem;line-height:1.35;color:var(--muted)}
.cf-review-wall__verified{margin-top:.35rem;font-size:.875rem;font-weight:600;line-height:1.35;color:var(--ink)}
.cf-review-wall__tick{display:inline-grid;place-items:center;inline-size:1.15em;block-size:1.15em;margin-inline-end:.4em;vertical-align:-0.2em;border-radius:999px;background:var(--success);color:var(--rw-tick-ink,#fff)}
.cf-review-wall__tick svg{inline-size:.75em;block-size:.75em}
.cf-review-wall__nav{display:none;align-items:center;gap:.875rem;margin-top:.25rem}
.cf-review-wall__navbtn{flex:none;display:inline-grid;place-items:center;inline-size:2.75rem;block-size:2.75rem;padding:0;border-radius:999px;border:1px solid var(--button-2-border,transparent);background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow, var(--shadow-sm));cursor:pointer;transition:background .16s ease,transform .16s ease;-webkit-tap-highlight-color:transparent}
.cf-review-wall__navbtn svg{inline-size:1.25rem;block-size:1.25rem}
.cf-review-wall__navbtn:hover:not(:disabled){background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.04) c h)}
.cf-review-wall__navbtn:active:not(:disabled){transform:translateY(1px)}
.cf-review-wall__navbtn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.cf-review-wall__navbtn:disabled{cursor:default;background:color-mix(in oklch,var(--ink) 5%,var(--surface));color:var(--muted);box-shadow:none}
.cf-review-wall__progress{flex:1;display:grid;gap:.45rem;min-width:0}
.cf-review-wall__bar{display:block;block-size:6px;border-radius:999px;overflow:hidden;background:color-mix(in oklch,var(--ink) 12%,transparent)}
.cf-review-wall__bar-fill{display:block;block-size:100%;border-radius:inherit;background:var(--accent-fill,var(--accent));transition:width .2s ease}
.cf-review-wall__pos{text-align:center;font-size:.9375rem;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.cf-review-wall__list:focus-visible{outline:2px solid var(--field-focus,var(--accent));outline-offset:-2px;border-radius:var(--radius,12px)}
@media (max-width:719.98px){
.cf-review-wall__list{display:flex;align-items:flex-start;gap:.875rem;columns:auto;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--rw-pad);margin-inline:calc(var(--rw-pad) * -1);padding:.25rem var(--rw-pad) 1rem;scrollbar-width:none}
.cf-review-wall__list::-webkit-scrollbar{display:none}
.cf-review-wall__item{flex:0 0 min(86%,22rem);margin:0;scroll-snap-align:start}
.cf-review-wall__nav{display:flex}
.cf-review-wall__card{padding:1.25rem 1.25rem 1.125rem}
.cf-review-wall__card[data-featured]{padding:calc(1.25rem - 1px) calc(1.25rem - 1px) calc(1.125rem - 1px)}
.cf-review-wall__card[data-featured] .cf-review-wall__quote p{font-size:1.125rem}
}
.cf-review-wall__cta{position:relative;background:var(--band);color:var(--band-ink);clip-path:polygon(0 var(--rw-cut),100% 0,100% 100%,0 100%);padding-block:calc(var(--rw-cut) + clamp(2.5rem,5vw,4rem)) clamp(3rem,5vw,4.5rem);text-align:center}
.cf-review-wall[data-empty] .cf-review-wall__cta{clip-path:none;padding-top:clamp(2.75rem,5vw,4.25rem)}
.cf-review-wall__cta-inner{position:relative;max-width:46rem;display:flex;flex-direction:column;align-items:center}
.cf-review-wall__question{margin:0 0 .45em;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.02em);font-size:clamp(1.875rem,4vw,2.875rem);line-height:1.08;color:var(--band-ink);text-wrap:balance}
.cf-review-wall__price{margin:0 0 1.75rem;display:flex;flex-direction:column;align-items:center;gap:.75rem;color:var(--band-ink)}
.cf-review-wall__price-main{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2rem,4vw,2.75rem);line-height:1;letter-spacing:-0.02em;white-space:nowrap;font-variant-numeric:tabular-nums}
.cf-review-wall__price-note{max-width:32rem;font-size:1.0625rem;line-height:1.45;font-weight:500;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));text-wrap:balance}
.cf-review-wall__btn{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;inline-size:100%;max-inline-size:30rem;min-block-size:4.25rem;margin-inline:auto;padding:1rem 1.5rem;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l + 0.04) c h),var(--button-bg-2,var(--cta-2)));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);text-shadow:var(--button-text-shadow,none);text-decoration:none;text-align:center;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / 0.55),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--rw-shadow) calc(l - 0.08) c h / 0.5),0 8px 16px -6px oklch(from var(--rw-shadow) calc(l - 0.08) c h / 0.6));transition:transform .16s ease,background .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}
.cf-review-wall__btn-label{font-size:clamp(1.25rem,2.6vw,1.5rem);line-height:1.15;text-wrap:balance}
.cf-review-wall__btn-sub{font-family:var(--font-body);font-weight:600;font-size:.9375rem;line-height:1.3;text-transform:none;text-wrap:pretty}
.cf-review-wall__btn:hover:not(:disabled),.cf-review-wall[data-state='hover'] .cf-review-wall__btn:not(:disabled){background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - 0.02) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.06) c h));transform:translateY(-2px)}
.cf-review-wall__btn:active:not(:disabled),.cf-review-wall[data-state='active'] .cf-review-wall__btn:not(:disabled){transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.1) c h));box-shadow:inset 0 2px 3px oklch(from var(--button-bg,var(--cta)) calc(l - 0.24) c h / 0.55),0 1px 1px oklch(from var(--rw-shadow) l c h / 0.4)}
.cf-review-wall__btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-review-wall__btn:disabled{cursor:not-allowed;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--button-2-shadow, var(--shadow-sm));transform:none}
.cf-review-wall__recap{--rw-star-empty:oklch(from var(--band-ink) l c h / 0.24);margin:1rem 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:color-mix(in oklch,var(--band-ink) 88%,var(--band));text-wrap:pretty}
.cf-review-wall__stars--recap{--s:1rem;display:inline-flex;vertical-align:-0.15em;margin-inline-end:.5em}
.cf-review-wall__ps{margin:1.75rem 0 0;padding-top:1.5rem;max-width:36rem;font-size:1.0625rem;line-height:1.55;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));border-top:1px solid oklch(from var(--band-ink) l c h / 0.14);text-wrap:pretty}
.cf-review-wall__ps strong{color:var(--band-ink);font-weight:800}
@media (max-width:719.98px){
.cf-review-wall__btn{padding:.95rem 1.125rem}
.cf-review-wall__price-note{font-size:1rem}
}
@media (prefers-reduced-motion:reduce){
.cf-review-wall__stars--big .cf-review-wall__star{animation:none}
.cf-review-wall__card,.cf-review-wall__btn,.cf-review-wall__navbtn,.cf-review-wall__bar-fill{transition:none}
.cf-review-wall__card:hover{transform:none}
.cf-review-wall__btn:hover:not(:disabled),.cf-review-wall[data-state='hover'] .cf-review-wall__btn:not(:disabled){transform:none}
.cf-review-wall__list{scroll-behavior:auto}
}
`;
pieces/proof/review-wall/specimen.tsx 79 lines
import ReviewWall, { type Review, type ReviewWallProps } from '../review-wall';
import defaults from '../../studio-defaults.json';
export const states = ['default', 'hover', 'active', 'disabled'];
const sample = defaults.sample;
const reviews: Review[] = [
{
rating: 5,
featured: true,
verified: true,
title: 'Finally, a place to start',
quote: 'I had a dozen tutorials bookmarked and still no plan. The planning guide put my offer and my pages in an order that made sense in one evening.',
highlight: 'made sense in one evening',
name: 'Maya R.',
place: 'Portland, OR',
},
{
rating: 5,
verified: true,
title: 'No more blank page',
quote: 'The workbook prompts got me to a headline and an offer paragraph I was actually happy to publish.',
highlight: 'actually happy to publish',
name: 'Daniel B.',
place: 'Austin, TX',
},
{
rating: 5,
verified: true,
title: 'Everything in one download',
quote: 'Guide, workbook and checklist side by side. I stopped flipping between ten browser tabs.',
name: 'Nina P.',
place: 'Toronto, ON',
},
{
rating: 5,
title: 'Caught two broken links',
quote: 'I ran the launch checklist the night before going live and found two links that went nowhere. Glad I checked first.',
highlight: 'found two links that went nowhere',
name: 'Owen E.',
place: 'Bristol, UK',
},
{
rating: 4,
verified: true,
title: 'Simple and focused',
quote: 'I wanted a straightforward starting point, not another course. The prompts kept me on track. I’d love a few more examples for service businesses.',
name: 'Leah G.',
place: 'Denver, CO',
},
{
rating: 5,
title: 'Easy to pick back up',
quote: 'I work on it in short sessions after the kids are asleep. Each section makes it obvious where I left off.',
name: 'Sam R.',
place: 'Seattle, WA',
},
];
export default function ReviewWallSpecimen({ state = 'default' }: { state?: ReviewWallProps['state'] }) {
return (
<ReviewWall
headline='Stuck on your first funnel? So were they.'
headlineHighlight='So were they.'
lead={`What people say after planning, writing and checking their first funnel with ${sample.name}.`}
rating={4.8}
reviewCount={reviews.length}
reviews={reviews}
question='Ready to map your first funnel?'
ctaLabel='I’m ready, show me how'
ctaSublabel={sample.sublabel}
price={sample.price}
priceNote='One payment, and the whole kit is yours to keep.'
ps={`Every kit is covered by our ${sample.guarantee}. Work through it on your own funnel before you decide.`}
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalReviewWall |
string |
|
headlineHighlight OptionalReviewWall |
string |
|
lead OptionalReviewWall |
string |
|
rating OptionalReviewWall |
number |
|
reviewCount OptionalReviewWall |
number |
|
reviews OptionalReviewWall |
Review[] |
|
question OptionalReviewWall |
string |
|
ctaLabel OptionalReviewWall |
string |
|
ctaSublabel OptionalReviewWall |
string |
|
pricePrefix OptionalReviewWall |
string |
|
price OptionalReviewWall |
string |
|
priceNote OptionalReviewWall |
string |
|
psLabel OptionalReviewWall |
string |
|
ps OptionalReviewWall |
string |
|
href OptionalReviewWall |
string |
|
onAction OptionalReviewWall |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
disabled OptionalReviewWall |
boolean |
|
state OptionalReviewWall |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalReviewWall |
Partial<ReviewWallCopy> |
|
className OptionalReviewWall |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB