Screenshot Wall 1
Screenshot wall: real customer messages fanned like a hand of cards, names hidden, so the visitor reads the proof and moves straight to the offer and its send-it button.
Use it in a prompt
Use proof/screenshot-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/screenshot-wall.tsx. - Import it and pass your copy and images (Props tab):
import { ScreenshotWall } from "@/components/funneldna/proof/screenshot-wall"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/screenshot-wall/component.tsx 537 lines
// layout: card-fan
// Screenshot wall: real customer messages fanned like a hand of cards, names hidden, so the visitor reads the proof and moves straight to the offer and its send-it button.
import * as React from "react"
import { ChevronLeft, ChevronRight, EyeOff, ImagePlus, Mail, Maximize2, MessageCircle, MessageSquareText, X } from "lucide-react"
import { Mark } from "../marks/marks"
/** Where a screenshot came from; sets the chip icon and label on its card. */
export type ScreenshotSource = "dm" | "email" | "comment"
export type ScreenshotWallShot = {
/** URL of a real, unedited customer screenshot. Leave empty to show an add-a-screenshot slot. */
image?: string
/** Describes what the screenshot says, for screen readers. */
alt?: string
source?: ScreenshotSource
/** Initials shown instead of the customer's name, e.g. "JM". */
initials?: string
/** Percent of the screenshot's top edge to blur (where a DM or email shows the sender's name). */
redactTop?: number
}
export type ScreenshotWallCopy = {
/** Short chip labels shown on each card. */
sources: Record<ScreenshotSource, string>
/** Full names read by screen readers. */
sourceNames: Record<ScreenshotSource, string>
/** Title inside an empty add-a-screenshot slot. */
emptyTitle: string
/** Note under the empty slot title. */
emptyNote: string
/** Shown beside the initials in the full-size viewer. */
nameHidden: string
/** Accessible name of the card fan. */
groupLabel: string
/** Placeholders: {n}, {total}, {source}. */
cardLabel: string
/** Placeholders: {n}, {total}. */
counter: string
prev: string
next: string
/** Text of the view-full-size button. */
open: string
close: string
/** Placeholder: {source}. */
shotAlt: string
/** Placeholder: {price}. */
regularLabel: string
/** Placeholder: {price}. */
todayLabel: string
}
export type ScreenshotWallProps = {
/** Headline text before the highlighted phrase. */
headline?: string
/** Phrase after the headline, set with the marker highlight. */
highlight?: string
/** Supporting line under the headline. Empty hides it. */
lead?: string
/** Real screenshots only. Empty entries render as add-a-screenshot slots. */
shots?: ScreenshotWallShot[]
/** Struck-through regular price. Empty shows today's price alone. */
regularPrice?: string
/** Today's price. */
price?: string
/** Small line under the price. */
priceNote?: string
/** Main button text. */
label?: string
/** Smaller second line inside the button. */
sublabel?: string
/** Bold lead-in before the P.S. text. */
psLabel?: string
/** P.S. under the offer. Empty hides it. */
ps?: string
/** Hide the price, button and P.S. when the wall sits inside a bigger offer section. */
showOffer?: boolean
/** Checkout destination; renders the button as a link. */
href?: string
/** Called on button click (also with href, before navigation). */
onAction?: () => void
/** Button preview state; disabled also locks the cards and controls. */
state?: "default" | "hover" | "active" | "disabled"
/** Overrides for labels, accessible names and templates. */
copy?: Partial<Omit<ScreenshotWallCopy, "sources" | "sourceNames">> & {
sources?: Partial<Record<ScreenshotSource, string>>
sourceNames?: Partial<Record<ScreenshotSource, string>>
}
className?: string
}
export function ScreenshotWall(props: ScreenshotWallProps) {
const {
headline = "Don't take our word for it.",
highlight = "Read theirs.",
lead = "Unedited DMs, emails and comments, shown as they arrived. Names are hidden for privacy.",
shots = DEFAULT_SHOTS,
regularPrice = "$97",
price = "$47",
priceNote = "One payment · Lifetime access",
label = "Send me the kit",
sublabel = "Secure checkout · Instant download",
psLabel = "P.S.",
ps = "Try the whole kit for 30 days. If it doesn't help you build your first funnel, ask and you get every cent back.",
showOffer = true,
href,
onAction,
state = "default",
className,
} = props
const copy: ScreenshotWallCopy = {
...DEFAULT_COPY,
...props.copy,
sources: { ...DEFAULT_COPY.sources, ...props.copy?.sources },
sourceNames: { ...DEFAULT_COPY.sourceNames, ...props.copy?.sourceNames },
}
const n = shots.length
const disabled = state === "disabled"
const uid = React.useId()
const [active, setActive] = React.useState(() => Math.max(0, Math.floor((n - 1) / 2)))
const [viewing, setViewing] = React.useState(false)
const cardRefs = React.useRef<(HTMLButtonElement | null)[]>([])
const dialogRef = React.useRef<HTMLDialogElement>(null)
const current = Math.min(active, Math.max(n - 1, 0))
const shot = shots[current]
const curSrc: ScreenshotSource = shot?.source ?? "email"
const CurIcon = ICONS[curSrc]
const imageCount = shots.filter((s) => s.image).length
React.useEffect(() => {
const d = dialogRef.current
if (!d) return
if (viewing && !d.open && typeof d.showModal === "function") d.showModal()
if (!viewing && d.open) d.close()
}, [viewing])
const go = (i: number, focus = false) => {
if (!n) return
const next = ((i % n) + n) % n
setActive(next)
if (focus) cardRefs.current[next]?.focus()
}
const step = (dir: 1 | -1) => {
for (let k = 1; k <= n; k++) {
const i = (((current + dir * k) % n) + n) % n
if (shots[i]?.image) {
setActive(i)
return
}
}
}
const openViewer = () => {
if (!disabled && shot?.image) setViewing(true)
}
const onKey = (e: React.KeyboardEvent) => {
if (disabled) return
const map: Record<string, number> = {
ArrowRight: current + 1,
ArrowDown: current + 1,
ArrowLeft: current - 1,
ArrowUp: current - 1,
Home: 0,
End: n - 1,
}
if (!(e.key in map)) return
e.preventDefault()
go(map[e.key], true)
}
const ctaClass = ["sw-cta", state === "hover" && "is-hover", state === "active" && "is-press"].filter(Boolean).join(" ")
const ctaBody = (
<>
<span className="sw-cta-main">{label}</span>
{sublabel ? <span className="sw-cta-sub">{sublabel}</span> : null}
</>
)
const cta = href ? (
<a
className={ctaClass}
href={disabled ? undefined : href}
aria-disabled={disabled || undefined}
onClick={(e) => {
if (disabled) {
e.preventDefault()
return
}
onAction?.()
}}
>
{ctaBody}
</a>
) : (
<button type="button" className={ctaClass} disabled={disabled} onClick={() => onAction?.()}>
{ctaBody}
</button>
)
return (
<div className={["cf-screenshot-wall", className].filter(Boolean).join(" ")} data-state={state}>
<style>{CSS}</style>
<header className="sw-head">
<h2 className="sw-h">
{headline}
{highlight ? (
<>
{" "}
<span className="sw-mark">{highlight}</span>
</>
) : null}
</h2>
{lead ? <p className="sw-lead">{lead}</p> : null}
</header>
{n > 0 ? (
<>
<div
className="sw-stage"
role="group"
aria-label={copy.groupLabel}
onKeyDown={onKey}
style={{ "--sw-steps": Math.max(n - 1, 1), "--sw-maxa": (n - 1) / 2 } as React.CSSProperties}
>
{shots.map((s, i) => {
const o = i - (n - 1) / 2
const on = i === current
const src: ScreenshotSource = s.source ?? "email"
const Icon = ICONS[src]
const z = on ? 60 : 40 - Math.round(Math.abs(i - current) * 4)
const name =
fill(copy.cardLabel, { n: i + 1, total: n, source: copy.sourceNames[src] }) +
(s.image ? (s.alt ? `: ${s.alt}` : "") : `. ${copy.emptyTitle}`)
return (
<button
key={i}
ref={(el) => {
cardRefs.current[i] = el
}}
type="button"
className={`sw-card${on ? " is-on" : ""}${s.image ? "" : " is-empty"}`}
style={{ "--o": o, "--a": Math.abs(o), "--z": z, "--i": Math.min(i, 7) } as React.CSSProperties}
tabIndex={on ? 0 : -1}
aria-pressed={on}
aria-label={name}
disabled={disabled}
onClick={() => (on ? openViewer() : setActive(i))}
>
<span className="sw-face">
<span className="sw-top">
<span className="sw-src">
<Icon aria-hidden />
{copy.sources[src]}
</span>
<span className="sw-who" aria-hidden>
<span className="sw-mono">{s.initials ? s.initials : <EyeOff />}</span>
<span className="sw-blur" />
</span>
</span>
<span className="sw-shot">
{s.image ? (
<>
<img src={s.image} alt="" loading="lazy" decoding="async" />
{s.redactTop ? (
<span
className="sw-redact"
style={{ "--rt": `${clampPct(s.redactTop)}%` } as React.CSSProperties}
aria-hidden
/>
) : null}
</>
) : (
<span className="sw-empty" aria-hidden>
<ImagePlus className="sw-empty-i" />
<span className="sw-empty-t">{copy.emptyTitle}</span>
<span className="sw-empty-n">{copy.emptyNote}</span>
</span>
)}
</span>
</span>
</button>
)
})}
</div>
<div className="sw-controls">
<div className="sw-nav">
<button type="button" className="sw-round" aria-label={copy.prev} onClick={() => go(current - 1)} disabled={disabled || n < 2}>
<ChevronLeft aria-hidden />
</button>
<span className="sw-count" aria-live="polite">
{fill(copy.counter, { n: current + 1, total: n })}
</span>
<button type="button" className="sw-round" aria-label={copy.next} onClick={() => go(current + 1)} disabled={disabled || n < 2}>
<ChevronRight aria-hidden />
</button>
</div>
<button type="button" className="sw-open" onClick={openViewer} disabled={disabled || !shot?.image}>
<Maximize2 aria-hidden />
{copy.open}
</button>
</div>
</>
) : null}
{showOffer ? (
<div className="sw-offer">
<div className="sw-deal">
<div className="sw-price">
<p className="sw-sr">
{regularPrice ? `${fill(copy.regularLabel, { price: regularPrice })}. ` : ""}
{fill(copy.todayLabel, { price })}
</p>
<div className="sw-price-row" aria-hidden>
{regularPrice ? (
<span className="sw-was">
{regularPrice}
<span className="sw-was-mark">
<Mark name="cross" width={84} height={56} />
</span>
</span>
) : null}
<span className="sw-now">{price}</span>
</div>
{priceNote ? <p className="sw-note">{priceNote}</p> : null}
</div>
{cta}
</div>
{ps ? (
<p className="sw-ps">
<b>{psLabel}</b> {ps}
</p>
) : null}
</div>
) : null}
<dialog
ref={dialogRef}
className="sw-lightbox"
aria-labelledby={`${uid}-lb`}
onClose={() => setViewing(false)}
onClick={(e) => {
if (e.target === e.currentTarget) setViewing(false)
}}
>
{viewing && shot?.image ? (
<>
<div className="sw-lb-top">
<div className="sw-lb-meta">
<h3 id={`${uid}-lb`} className="sw-sr">
{fill(copy.cardLabel, { n: current + 1, total: n, source: copy.sourceNames[curSrc] })}
</h3>
<span className="sw-src">
<CurIcon aria-hidden />
{copy.sources[curSrc]}
</span>
<span className="sw-who">
<span className="sw-mono" aria-hidden>
{shot.initials ? shot.initials : <EyeOff />}
</span>
<span className="sw-who-t">{copy.nameHidden}</span>
</span>
</div>
<button type="button" className="sw-round" aria-label={copy.close} onClick={() => setViewing(false)} autoFocus>
<X aria-hidden />
</button>
</div>
<div className="sw-lb-body">
<span className="sw-lb-frame">
<img src={shot.image} alt={shot.alt || fill(copy.shotAlt, { source: copy.sourceNames[curSrc] })} />
{shot.redactTop ? (
<span className="sw-redact" style={{ "--rt": `${clampPct(shot.redactTop)}%` } as React.CSSProperties} aria-hidden />
) : null}
</span>
</div>
{imageCount > 1 ? (
<div className="sw-lb-nav">
<button type="button" className="sw-round" aria-label={copy.prev} onClick={() => step(-1)}>
<ChevronLeft aria-hidden />
</button>
<span className="sw-count">{fill(copy.counter, { n: current + 1, total: n })}</span>
<button type="button" className="sw-round" aria-label={copy.next} onClick={() => step(1)}>
<ChevronRight aria-hidden />
</button>
</div>
) : null}
</>
) : null}
</dialog>
</div>
)
}
export default ScreenshotWall
const DEFAULT_COPY: ScreenshotWallCopy = {
sources: { dm: "DM", email: "Email", comment: "Comment" },
sourceNames: { dm: "direct message", email: "email", comment: "comment" },
emptyTitle: "Add a real screenshot",
emptyNote: "Names stay hidden",
nameHidden: "Name hidden",
groupLabel: "Customer message screenshots",
cardLabel: "Message {n} of {total}, {source}",
counter: "{n} of {total}",
prev: "Previous message",
next: "Next message",
open: "View full size",
close: "Close",
shotAlt: "Customer {source} screenshot",
regularLabel: "Regular price {price}",
todayLabel: "Today {price}",
}
// Empty slots by default: real customer screenshots are supplied by the caller, never invented.
const DEFAULT_SHOTS: ScreenshotWallShot[] = [
{ source: "dm" },
{ source: "email" },
{ source: "comment" },
{ source: "email" },
{ source: "comment" },
{ source: "dm" },
]
const ICONS = { dm: MessageCircle, email: Mail, comment: MessageSquareText }
/** Replaces named {placeholders} in a copy template; unknown keys stay as written. */
function fill(template: string, values: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in values ? String(values[key]) : match))
}
function clampPct(value: number) {
return Math.min(100, Math.max(0, value))
}
// Theme: every colour is a token or an OKLCH recipe on a token; hex appears only as the last var() fallback.
// No documented exceptions in this piece (customer screenshots are caller images, not theme slots).
// The card trigger (.sw-card) is a ghost button around a card face: its corners read --card-radius and its
// zero-width reset border reads --button-2-border, so card and button roles both reach the trigger itself.
// Reduced-motion block keeps !important so it beats the per-element animation and transition declarations.
const CSS = `
.cf-screenshot-wall{--sw-line:oklch(from var(--ink, #101828) l c h / 0.14);--sw-well:color-mix(in oklch, var(--ink, #101828) 4%, var(--card, #ffffff));--sw-focus:var(--field-focus, var(--accent, #1f5fd1));--sw-sh:var(--shadow, oklch(0.22 0.03 260));--sw-r:var(--card-radius, var(--radius, 14px));--sw-btn:var(--button-bg, var(--cta, #d4372c));--sw-btn2:var(--button-2-bg, var(--secondary, #eef1f6));container:sw / inline-size;display:block;width:100%;max-width:1120px;margin-inline:auto;color:var(--ink, #101828);font-family:var(--font-body, system-ui, sans-serif);-webkit-font-smoothing:antialiased}
.cf-screenshot-wall *{box-sizing:border-box}
.cf-screenshot-wall .sw-sr{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cf-screenshot-wall .sw-head{max-width:780px;margin:0 auto;text-align:center}
.cf-screenshot-wall .sw-h{margin:0;font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800);font-size:clamp(2rem, 1.15rem + 3.3vw, 3.5rem);line-height:1.05;letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);text-wrap:balance;color:var(--ink, #101828)}
.cf-screenshot-wall .sw-mark{padding:0 .14em;margin:0 -.04em;border-radius:.18em .42em .3em .5em / .5em .3em .45em .3em;background:linear-gradient(transparent 0 40%, color-mix(in oklch, var(--marker, #fae37c) 82%, transparent) 40% 93%, transparent 93%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-screenshot-wall .sw-lead{margin:18px auto 0;max-width:60ch;font-size:clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);font-weight:500;line-height:1.5;color:var(--muted, #475467);text-wrap:pretty}
.cf-screenshot-wall .sw-stage{--sw-cw:272px;--sw-ch:352px;--sw-tilt:3.5deg;--sw-arc:11px;--sw-lift:30px;--sw-gut:150px;--sw-spread:min(150px, max(0px, calc((100cqi - var(--sw-cw) - var(--sw-gut)) / var(--sw-steps, 5))));position:relative;margin-top:clamp(26px, 4vw, 44px);height:calc(var(--sw-ch) + var(--sw-lift) + var(--sw-arc) * var(--sw-maxa, 2.5) + 34px);overflow-x:clip}
.cf-screenshot-wall .sw-card{position:absolute;left:50%;top:calc(var(--sw-lift) + 8px);z-index:var(--z);width:var(--sw-cw);height:var(--sw-ch);margin:0 0 0 calc(var(--sw-cw) / -2);padding:0;border:0 solid var(--button-2-border, transparent);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:var(--card-radius, var(--radius, 14px));transform-origin:50% 100%;transform:translate(calc(var(--o) * var(--sw-spread)), calc(var(--a) * var(--sw-arc))) rotate(calc(var(--o) * var(--sw-tilt)));transition:transform .5s cubic-bezier(.2,.8,.2,1);-webkit-tap-highlight-color:transparent}
.cf-screenshot-wall .sw-card.is-on{transform:translate(calc(var(--o) * var(--sw-spread)), calc(var(--a) * var(--sw-arc) - var(--sw-lift))) rotate(calc(var(--o) * var(--sw-tilt) * 0.35)) scale(1.03)}
@media (hover:hover){.cf-screenshot-wall .sw-card:not(.is-on):not(:disabled):hover{transform:translate(calc(var(--o) * var(--sw-spread)), calc(var(--a) * var(--sw-arc) - 12px)) rotate(calc(var(--o) * var(--sw-tilt)))}}
.cf-screenshot-wall .sw-card:focus-visible{outline:none}
.cf-screenshot-wall .sw-card:focus-visible .sw-face{outline:3px solid var(--sw-focus);outline-offset:3px}
.cf-screenshot-wall .sw-card:disabled{cursor:not-allowed}
.cf-screenshot-wall .sw-card:disabled .sw-face{filter:saturate(.5);opacity:.7}
.cf-screenshot-wall .sw-face{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;background:var(--card, #ffffff);border:1px solid var(--card-border, color-mix(in oklch, var(--ink, #101828) 12%, transparent));border-radius:var(--sw-r);box-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--sw-sh) l c h / 0.22), 0 4px 10px -2px oklch(from var(--sw-sh) l c h / 0.2)));transition:box-shadow .3s ease, border-color .3s ease, transform .15s ease;animation:sw-deal .55s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(var(--i) * 60ms)}
.cf-screenshot-wall .sw-card.is-on .sw-face{border-color:color-mix(in oklch, var(--accent-fill, var(--accent, #1f5fd1)) 55%, var(--card, #ffffff));box-shadow:var(--shadow-lg, 0 2px 4px oklch(from var(--sw-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--sw-sh) l c h / 0.32))}
.cf-screenshot-wall .sw-card:active:not(:disabled) .sw-face{transform:scale(.985)}
@keyframes sw-deal{from{opacity:.4;transform:translateY(24px)}to{opacity:1;transform:none}}
.cf-screenshot-wall .sw-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:10px 12px}
.cf-screenshot-wall .sw-src{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:4px 11px 4px 9px;border-radius:999px;background:var(--sw-well);color:var(--ink, #101828);font-size:14px;font-weight:700;line-height:1.3;white-space:nowrap}
.cf-screenshot-wall .sw-src svg{flex:none;width:16px;height:16px;color:var(--accent, #1f5fd1)}
.cf-screenshot-wall .sw-who{display:inline-flex;align-items:center;gap:7px;flex:none}
.cf-screenshot-wall .sw-mono{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:color-mix(in oklch, var(--ink, #101828) 9%, var(--card, #ffffff));color:var(--ink, #101828);font-family:var(--font-display, inherit);font-size:14px;font-weight:var(--display-weight, 800);letter-spacing:.02em;line-height:1}
.cf-screenshot-wall .sw-mono svg{width:15px;height:15px;color:var(--muted, #475467)}
.cf-screenshot-wall .sw-blur{display:block;width:46px;height:11px;border-radius:6px;background:color-mix(in oklch, var(--ink, #101828) 26%, var(--card, #ffffff));filter:blur(2.4px)}
.cf-screenshot-wall .sw-who-t{font-size:14px;font-weight:600;color:var(--muted, #475467)}
.cf-screenshot-wall .sw-shot{position:relative;flex:1;display:grid;place-items:center;margin:0 10px 10px;overflow:hidden;border-radius:calc(var(--sw-r) * 0.65);background:var(--sw-well)}
.cf-screenshot-wall .sw-shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.cf-screenshot-wall .sw-redact{position:absolute;inset:0 0 auto 0;height:var(--rt, 0%);background:oklch(from var(--card, #ffffff) l c h / 0.35);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.cf-screenshot-wall .sw-empty{display:grid;justify-items:center;gap:6px;padding:14px;text-align:center}
.cf-screenshot-wall .sw-empty-i{width:40px;height:40px;margin-bottom:6px;color:var(--accent, #1f5fd1);stroke-width:1.75}
.cf-screenshot-wall .sw-empty-t{font-family:var(--font-display, inherit);font-size:17px;font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);line-height:1.2;color:var(--ink, #101828);text-wrap:balance}
.cf-screenshot-wall .sw-empty-n{font-size:14px;font-weight:500;line-height:1.35;color:var(--muted, #475467)}
.cf-screenshot-wall .sw-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 18px;margin-top:20px}
.cf-screenshot-wall .sw-nav{display:inline-flex;align-items:center;gap:10px}
.cf-screenshot-wall .sw-round,.cf-screenshot-wall .sw-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--button-2-border, transparent);background:var(--sw-btn2);color:var(--button-2-ink, var(--secondary-ink, #101828));box-shadow:var(--button-2-shadow, var(--shadow-sm));font:inherit;cursor:pointer;transition:background .15s ease, transform .1s ease}
.cf-screenshot-wall .sw-round{flex:none;width:44px;height:44px;padding:0;border-radius:50%}
.cf-screenshot-wall .sw-round svg{width:20px;height:20px}
.cf-screenshot-wall .sw-open{min-height:44px;padding:0 18px;border-radius:var(--button-radius, var(--radius, 12px));font-family:var(--button-font, var(--font-display, inherit));font-size:15px;font-weight:var(--button-weight, 700);text-transform:var(--button-case, none)}
.cf-screenshot-wall .sw-open svg{width:17px;height:17px}
.cf-screenshot-wall :is(.sw-round,.sw-open):hover:not(:disabled){background:oklch(from var(--sw-btn2) calc(l - 0.04) c h)}
.cf-screenshot-wall :is(.sw-round,.sw-open):active:not(:disabled){transform:translateY(1px);box-shadow:var(--button-2-shadow, var(--shadow-sm))}
.cf-screenshot-wall :is(.sw-round,.sw-open,.sw-cta):focus-visible{outline:3px solid var(--sw-focus);outline-offset:3px}
.cf-screenshot-wall :is(.sw-round,.sw-open):disabled{opacity:.5;cursor:not-allowed}
.cf-screenshot-wall .sw-count{min-width:6ch;text-align:center;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink, #101828)}
.cf-screenshot-wall .sw-offer{display:flex;flex-direction:column;align-items:center;margin-top:clamp(34px, 5vw, 52px);text-align:center}
.cf-screenshot-wall .sw-deal{display:flex;align-items:center;justify-content:center;gap:clamp(20px, 3.5vw, 40px)}
.cf-screenshot-wall .sw-price{display:flex;flex-direction:column;align-items:center}
.cf-screenshot-wall .sw-price-row{display:flex;align-items:center;gap:18px}
.cf-screenshot-wall .sw-was{position:relative;font-family:var(--font-display, inherit);font-size:clamp(1.875rem, 1.5rem + 1vw, 2.375rem);font-weight:700;line-height:1;color:var(--muted, #475467);font-variant-numeric:tabular-nums}
.cf-screenshot-wall .sw-was-mark{position:absolute;left:50%;top:50%;display:block;line-height:0;color:var(--danger, #c0362c);transform:translate(-50%, -50%);pointer-events:none}
.cf-screenshot-wall .sw-now{display:inline-block;font-family:var(--font-display, inherit);font-size:clamp(3rem, 2.4rem + 2vw, 4rem);font-weight:var(--display-weight, 800);line-height:1;letter-spacing:-0.03em;color:var(--ink, #101828);transform:rotate(-4deg)}
.cf-screenshot-wall .sw-note{margin:14px 0 0;font-size:14px;font-weight:600;color:var(--muted, #475467)}
.cf-screenshot-wall .sw-cta{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:320px;min-height:74px;padding:14px 32px 16px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from var(--sw-btn) calc(l + 0.04) c h), oklch(from var(--button-bg-2, var(--sw-btn)) calc(l - 0.05) c h));color:var(--button-ink, var(--cta-ink, #ffffff));text-shadow:var(--button-text-shadow, none);text-decoration:none;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--sw-btn) calc(l + 0.14) c h / 0.6), inset 0 -3px 0 oklch(from var(--sw-btn) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--sw-sh) l c h / 0.35), 0 6px 14px -4px oklch(from var(--sw-sh) l c h / 0.45));font-family:var(--button-font, var(--font-display, inherit));cursor:pointer;transition:transform .12s ease, box-shadow .12s ease, filter .15s ease}
.cf-screenshot-wall .sw-cta:hover:not(:disabled):not([aria-disabled]),.cf-screenshot-wall .sw-cta.is-hover{background:linear-gradient(oklch(from var(--sw-btn) calc(l - 0.02) c h), oklch(from var(--sw-btn) calc(l - 0.11) c h));transform:translateY(-1px)}
.cf-screenshot-wall .sw-cta:active:not(:disabled):not([aria-disabled]),.cf-screenshot-wall .sw-cta.is-press{background:linear-gradient(oklch(from var(--sw-btn) calc(l - 0.07) c h), oklch(from var(--sw-btn) calc(l - 0.12) c h));transform:translateY(2px);box-shadow:inset 0 2px 3px oklch(from var(--sw-btn) calc(l - 0.2) c h / 0.5), 0 1px 1px oklch(from var(--sw-sh) l c h / 0.3)}
.cf-screenshot-wall .sw-cta:disabled,.cf-screenshot-wall .sw-cta[aria-disabled]{cursor:not-allowed;filter:saturate(.35);opacity:.6;transform:none}
.cf-screenshot-wall .sw-cta-main{font-size:clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);line-height:1.15;letter-spacing:-0.01em}
.cf-screenshot-wall .sw-cta-sub{font-family:var(--font-body, inherit);font-size:14px;font-weight:600;line-height:1.3;text-wrap:pretty}
.cf-screenshot-wall .sw-ps{margin:22px auto 0;max-width:54ch;font-size:17px;line-height:1.55;color:var(--ink, #101828);text-wrap:pretty}
.cf-screenshot-wall .sw-ps b{font-family:var(--font-display, inherit);font-weight:var(--display-weight, 800)}
.cf-screenshot-wall .sw-lightbox{width:min(92vw, 760px);max-width:none;max-height:92dvh;margin:auto;padding:0;border:1px solid var(--card-border, color-mix(in oklch, var(--ink, #101828) 12%, transparent));border-radius:var(--sw-r);background:var(--card, #ffffff);color:var(--ink, #101828);box-shadow:var(--shadow-lg, 0 2px 4px oklch(from var(--sw-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--sw-sh) l c h / 0.32));overflow:auto}
.cf-screenshot-wall .sw-lightbox[open]{animation:sw-pop .28s cubic-bezier(.2,.8,.2,1)}
.cf-screenshot-wall .sw-lightbox::backdrop{background:oklch(from var(--band, oklch(0.27 0.07 256)) l c h / 0.72)}
@keyframes sw-pop{from{opacity:0;transform:translateY(12px) scale(.98)}}
.cf-screenshot-wall .sw-lb-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px 16px}
.cf-screenshot-wall .sw-lb-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;min-width:0}
.cf-screenshot-wall .sw-lb-body{display:grid;place-items:center;padding:0 16px 16px}
.cf-screenshot-wall .sw-lb-frame{position:relative;display:inline-block;max-width:100%;overflow:hidden;border-radius:calc(var(--sw-r) * 0.65);background:var(--sw-well)}
.cf-screenshot-wall .sw-lb-frame img{display:block;max-width:100%;max-height:70dvh;width:auto;height:auto}
.cf-screenshot-wall .sw-lb-nav{display:flex;align-items:center;justify-content:center;gap:14px;padding:0 16px 16px}
@container sw (max-width: 600px){
.cf-screenshot-wall .sw-stage{--sw-cw:176px;--sw-ch:236px;--sw-tilt:2.2deg;--sw-arc:6px;--sw-lift:16px;--sw-gut:70px}
.cf-screenshot-wall .sw-top{min-height:42px;padding:8px 9px}
.cf-screenshot-wall .sw-src{padding:3px 9px 3px 7px}
.cf-screenshot-wall .sw-blur{display:none}
.cf-screenshot-wall .sw-shot{margin:0 8px 8px}
.cf-screenshot-wall .sw-empty{padding:10px}
.cf-screenshot-wall .sw-empty-i{width:32px;height:32px;margin-bottom:2px}
.cf-screenshot-wall .sw-empty-t{font-size:15px}
.cf-screenshot-wall .sw-deal{flex-direction:column;gap:18px;width:100%}
.cf-screenshot-wall .sw-price-row{gap:14px}
.cf-screenshot-wall .sw-cta{width:100%;max-width:400px;min-width:0;padding-inline:20px}
}
@media (prefers-reduced-motion: reduce){
.cf-screenshot-wall *,.cf-screenshot-wall *::backdrop{animation:none !important;transition:none !important}
}
`
pieces/proof/screenshot-wall/specimen.tsx 32 lines
import { ScreenshotWall, type ScreenshotWallProps } from "../screenshot-wall"
import defaults from "../../studio-defaults.json"
export const states = ["default", "hover", "active", "disabled"]
// No theme tokens or fonts set here: the host theme drives every colour and face.
// Shots stay empty (add-a-screenshot slots): real customer screenshots are never invented.
export default function ScreenshotWallSpecimen({ state = "default" }: { state?: ScreenshotWallProps["state"] }) {
const sample = defaults.sample
return (
<ScreenshotWall
state={state}
headline="Don't take our word for it."
highlight="Read theirs."
lead={`Unedited DMs, emails and comments about ${sample.name}, shown as they arrived. Names are hidden for privacy.`}
shots={[
{ source: "dm" },
{ source: "email" },
{ source: "comment" },
{ source: "email" },
{ source: "comment" },
{ source: "dm" },
]}
regularPrice={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
label="Send me the kit"
sublabel={sample.sublabel}
ps={`Try the whole kit risk-free. Every order is covered by our ${sample.guarantee}.`}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalScreenshotWall |
string |
|
highlight OptionalScreenshotWall |
string |
|
lead OptionalScreenshotWall |
string |
|
shots OptionalScreenshotWall |
ScreenshotWallShot[] |
|
regularPrice OptionalScreenshotWall |
string |
|
price OptionalScreenshotWall |
string |
|
priceNote OptionalScreenshotWall |
string |
|
label OptionalScreenshotWall |
string |
|
sublabel OptionalScreenshotWall |
string |
|
psLabel OptionalScreenshotWall |
string |
|
ps OptionalScreenshotWall |
string |
|
showOffer OptionalScreenshotWall |
boolean |
|
href OptionalScreenshotWall |
string |
|
onAction OptionalScreenshotWall |
() => void |
|
state OptionalScreenshotWall |
"default" | "hover" | "active" | "disabled" |
|
copy OptionalScreenshotWall |
Partial<Omit<ScreenshotWallCopy, "sources" | "sourceNames">> & {
sources?: Partial<Record<ScreenshotSource, string>>
sourceNames?: Partial<Record<ScreenshotSource, string>>
} |
|
className OptionalScreenshotWall |
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