Love Wall 1
Love wall: visitors pick the outcome they came for on a dark scene band. The light wall of supplied testimonials below reflows to match, and one action closes the section.
Use it in a prompt
Use proof/love-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/love-wall.tsx. - Import it and pass your copy and images (Props tab):
import { LoveWall } from "@/components/funneldna/proof/love-wall"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/love-wall/component.tsx 479 lines
// layout: split-contrast
// Love wall: visitors pick the outcome they came for on a dark scene band. The light wall of supplied testimonials below reflows to match, and one action closes the section.
import * as React from "react";
import { Quote } from "lucide-react";
import { motion, useReducedMotion } from "motion/react";
import { Backdrop, Divider, FX_HOST } from "../fx/fx";
import studio from "../fx/backdrops/studio";
export type LoveWallTestimonial = {
// The customer's words, exactly as supplied.
quote: React.ReactNode;
name: string;
// Who they are, e.g. "Yoga teacher, Leeds".
role?: string;
// Their outcome in a few words; becomes the card headline.
result?: string;
// Their photo; turns the card into a tall photo quote (4:3 on phones).
image?: string;
imageAlt?: string;
// Outcome tags; the filter chips and their counts come only from these.
tags?: string[];
// Large pull-quote card in the accent role (about one per row).
featured?: boolean;
};
export type LoveWallCopy = {
all: string;
filterLabel: string;
// "{tag}" and "{count}" are replaced.
chipLabel: string;
chipLabelOne: string;
// "{count}", "{total}" and "{tag}" are replaced.
status: string;
// "{total}" is replaced.
statusAll: string;
};
export type LoveWallProps = {
// Supplied testimonials only; an empty list renders nothing.
testimonials?: LoveWallTestimonial[];
headline?: string;
// Phrase inside the headline that gets the marker stroke.
highlight?: string;
// One-sentence lines under the headline.
lead?: string[];
// Scene behind the headline band (the theme's scene slot replaces it).
sceneImage?: string;
// One-sentence closing lines; the last one is set as the punch word.
closeLines?: string[];
// Supplied price; the investment line shows only when it is set.
price?: string;
investmentLabel?: string;
// Words after the price in the investment line.
investmentNote?: string;
ctaLabel?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
// Quiet line under the button.
secondaryLabel?: string;
secondaryHref?: string;
// URL hash key that remembers the filter, e.g. #stories=first-sale.
hashKey?: string;
copy?: Partial<LoveWallCopy>;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_COPY: LoveWallCopy = {
all: "All stories",
filterLabel: "Show stories by outcome",
chipLabel: "{tag}, {count} stories",
chipLabelOne: "{tag}, {count} story",
status: "Showing {count} of {total} stories tagged {tag}",
statusAll: "Showing all {total} stories",
};
export function LoveWall(props: LoveWallProps) {
const {
testimonials = [],
headline = "Pick a result. Read the people who already got it.",
highlight = "already got it",
lead = ["Choose the result you came for.", "Read the people who got there first."],
sceneImage,
closeLines = ["Every story above started with one decision.", "Yours can start the same way.", "Today."],
price,
investmentLabel = "Your investment:",
investmentNote,
ctaLabel = "Start today",
href,
onAction,
secondaryLabel = "or keep reading to see what's inside",
secondaryHref,
hashKey = "stories",
copy: copyProp,
state = "default",
className,
} = props;
const copy: LoveWallCopy = { ...DEFAULT_COPY, ...copyProp };
const headId = React.useId();
const reduce = useReducedMotion();
const [active, setActive] = React.useState<string | null>(null);
const items = React.useMemo(
() => (testimonials ?? []).filter((t) => t && hasContent(t.quote) && Boolean(t.name && t.name.trim())),
[testimonials],
);
const itemSlugs = React.useMemo(
() => items.map((t) => new Set((t.tags ?? []).map(slugify).filter(Boolean))),
[items],
);
const tags = React.useMemo(() => {
const map = new Map<string, TagInfo>();
items.forEach((t, i) => {
const seen = new Set<string>();
(t.tags ?? []).forEach((raw) => {
const label = raw.trim();
const slug = slugify(label);
if (!slug || seen.has(slug)) return;
seen.add(slug);
const entry = map.get(slug);
if (entry) entry.count += 1;
else map.set(slug, { slug, label, count: 1, first: i });
});
});
return Array.from(map.values()).sort((a, b) => b.count - a.count || a.first - b.first);
}, [items]);
const tagKey = tags.map((t) => t.slug).join("|");
React.useEffect(() => {
if (typeof window === "undefined") return;
const valid = new Set(tagKey ? tagKey.split("|") : []);
const prefix = hashKey + "=";
const read = () => {
let hash = window.location.hash;
if (hash.startsWith("#")) hash = hash.slice(1);
try {
hash = decodeURIComponent(hash);
} catch {
return;
}
if (hash.startsWith(prefix)) {
const slug = hash.slice(prefix.length);
setActive(valid.has(slug) ? slug : null);
} else if (!hash) {
setActive(null);
}
};
read();
window.addEventListener("hashchange", read);
return () => window.removeEventListener("hashchange", read);
}, [hashKey, tagKey]);
if (!items.length) return null;
const choose = (slug: string | null) => {
setActive(slug);
if (typeof window === "undefined") return;
try {
const url = new URL(window.location.href);
url.hash = slug ? hashKey + "=" + encodeURIComponent(slug) : "";
window.history.replaceState(window.history.state, "", url.href);
} catch {
// Sandboxed previews may block history updates; the filter still works.
}
};
const total = items.length;
const activeTag = active ? tags.find((t) => t.slug === active) : undefined;
const entries = items.map((t, i) => ({ t, i, match: !activeTag || itemSlugs[i].has(activeTag.slug) }));
const ordered = activeTag ? [...entries.filter((e) => e.match), ...entries.filter((e) => !e.match)] : entries;
const matchCount = entries.filter((e) => e.match).length;
const status = activeTag
? fill(copy.status, { count: matchCount, total, tag: activeTag.label })
: fill(copy.statusAll, { total });
const chipName = (tag: string, count: number) =>
fill(count === 1 ? copy.chipLabelOne : copy.chipLabel, { tag, count });
const leadLines = (lead ?? []).filter((l) => l && l.trim());
const close = (closeLines ?? []).filter((l) => l && l.trim());
const disabled = state === "disabled";
const btnClass = ["lw-btn", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""]
.filter(Boolean)
.join(" ");
const layoutEase = [0.2, 0.7, 0.2, 1] as const;
const transition = reduce
? { duration: 0 }
: {
layout: { duration: 0.45, ease: layoutEase },
opacity: { duration: 0.3, ease: layoutEase },
scale: { duration: 0.3, ease: layoutEase },
};
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (disabled) {
event.preventDefault();
return;
}
onAction?.(event);
};
const button = ctaLabel ? (
href ? (
<a className={btnClass} href={disabled ? undefined : href} aria-disabled={disabled || undefined} onClick={handleAction}>
{ctaLabel}
</a>
) : (
<button type="button" className={btnClass} disabled={disabled} onClick={handleAction}>
{ctaLabel}
</button>
)
) : null;
const hasClose = close.length > 0 || Boolean(price) || Boolean(button) || Boolean(secondaryLabel && button);
return (
<section
className={["cf-love-wall", className].filter(Boolean).join(" ")}
aria-labelledby={headline ? headId : undefined}
>
<style>{CSS}</style>
<div className="lw-top" style={FX_HOST}>
<Backdrop src={sceneImage || studio} treatment="scrim-dark" side="left" position="center" />
<div className="lw-veil" aria-hidden="true" />
<div className="lw-top-inner">
<div className="lw-head">
{headline ? (
<h2 id={headId} className="lw-h">
{renderHeadline(headline, highlight)}
</h2>
) : null}
{leadLines.length ? (
<div className="lw-lead">
{leadLines.map((line, i) => (
<p key={i}>{line}</p>
))}
</div>
) : null}
</div>
{tags.length ? (
<div className="lw-chips" role="group" aria-label={copy.filterLabel}>
<button
type="button"
className="lw-chip"
aria-pressed={!activeTag}
aria-label={chipName(copy.all, total)}
onClick={() => choose(null)}
>
<span>{copy.all}</span>
<span className="lw-count" aria-hidden="true">
{total}
</span>
</button>
{tags.map((tag) => (
<button
key={tag.slug}
type="button"
className="lw-chip"
aria-pressed={activeTag?.slug === tag.slug}
aria-label={chipName(tag.label, tag.count)}
onClick={() => choose(activeTag?.slug === tag.slug ? null : tag.slug)}
>
<span>{tag.label}</span>
<span className="lw-count" aria-hidden="true">
{tag.count}
</span>
</button>
))}
</div>
) : null}
{tags.length ? (
<p className="lw-sr" aria-live="polite">
{status}
</p>
) : null}
</div>
<div className="lw-edge" aria-hidden="true">
<Divider shape="wave" tone="surface" height={56} />
</div>
</div>
<div className="lw-wall">
<div className="lw-grid">
{ordered.map(({ t, i, match }) => {
const kind = t.featured ? "feature" : t.image ? "photo" : "text";
const cardTags = Array.from(new Set((t.tags ?? []).map((x) => x.trim()).filter(Boolean)));
const ini = initials(t.name);
return (
<motion.article
key={"lw-" + i}
layout={reduce ? false : "position"}
initial={false}
animate={{ opacity: match ? 1 : 0.3, scale: match ? 1 : 0.97 }}
transition={transition}
className={"lw-card lw-card--" + kind + (match ? "" : " is-dim")}
aria-hidden={match ? undefined : true}
>
{kind === "photo" && t.image ? (
<div className="lw-photo">
<img src={t.image} alt={t.imageAlt || t.name} loading="lazy" decoding="async" />
</div>
) : null}
{kind === "feature" ? (
<div className="lw-feature-top">
<Quote className="lw-qicon" size={24} strokeWidth={2.5} aria-hidden="true" />
{t.result ? <h3 className="lw-outcome">{t.result}</h3> : null}
</div>
) : t.result ? (
<h3 className="lw-result">{t.result}</h3>
) : null}
<blockquote className="lw-quote">
<p>{t.quote}</p>
</blockquote>
<footer className="lw-by">
{kind === "feature" && t.image ? (
<img className="lw-avatar" src={t.image} alt="" loading="lazy" decoding="async" />
) : kind !== "photo" && ini ? (
<span className="lw-initials" aria-hidden="true">
{ini}
</span>
) : null}
<span className="lw-who">
<span className="lw-name">{t.name}</span>
{t.role ? <span className="lw-role">{t.role}</span> : null}
</span>
</footer>
{cardTags.length ? <p className="lw-tags">{cardTags.join(" \u00b7 ")}</p> : null}
</motion.article>
);
})}
</div>
{hasClose ? (
<div className="lw-close">
{close.map((line, i) => (
<p key={i} className={i === close.length - 1 && close.length > 1 ? "lw-punch lw-punch-word" : "lw-punch"}>
{line}
</p>
))}
{price ? (
<p className="lw-invest">
<span className="lw-invest-label">{investmentLabel}</span> <strong>{price}</strong>
{investmentNote ? <> {investmentNote}</> : null}
</p>
) : null}
{button}
{secondaryLabel && button ? (
secondaryHref ? (
<a className="lw-quiet lw-quiet-link" href={secondaryHref}>
{secondaryLabel}
</a>
) : (
<p className="lw-quiet">{secondaryLabel}</p>
)
) : null}
</div>
) : null}
</div>
</section>
);
}
export default LoveWall;
type TagInfo = { slug: string; label: string; count: number; first: number };
function hasContent(node: React.ReactNode): boolean {
if (node === null || node === undefined || node === false || node === true) return false;
if (typeof node === "string") return node.trim().length > 0;
return true;
}
function slugify(value: string): string {
return value
.trim()
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/^-+|-+$/g, "");
}
function initials(name: string): string {
return name
.split(" ")
.map((w) => w.replace(/[^A-Za-z]/g, ""))
.filter(Boolean)
.slice(0, 2)
.map((w) => w.charAt(0).toUpperCase())
.join("");
}
function fill(template: string, vars: Record<string, string | number>): string {
return Object.keys(vars).reduce((out, key) => out.split("{" + key + "}").join(String(vars[key])), template);
}
function renderHeadline(text: string, mark?: string): React.ReactNode {
if (!mark) return text;
const at = text.indexOf(mark);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="lw-mark">{mark}</span>
{text.slice(at + mark.length)}
</>
);
}
const CSS = `
.cf-love-wall{--lw-gutter:clamp(16px,5vw,48px);position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);overflow-x:clip}
.cf-love-wall *,.cf-love-wall *::before,.cf-love-wall *::after{box-sizing:border-box}
.cf-love-wall .lw-top{position:relative;overflow:hidden;background:var(--band);color:var(--band-ink);padding:clamp(56px,8vw,112px) var(--lw-gutter) calc(clamp(40px,5vw,72px) + 56px)}
.cf-love-wall .lw-veil{position:absolute;inset:0;z-index:1;pointer-events:none;background:oklch(from var(--band) l c h / .42)}
.cf-love-wall .lw-edge{position:absolute;left:0;right:0;bottom:0;height:56px;z-index:3;pointer-events:none}
.cf-love-wall .lw-top-inner{position:relative;z-index:2;max-width:1120px;margin:0 auto}
.cf-love-wall .lw-head{max-width:46rem}
.cf-love-wall .lw-h{margin:0 0 24px;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.08;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--band-ink)}
.cf-love-wall .lw-mark{background:linear-gradient(transparent 60%,oklch(from var(--accent-fill,var(--accent)) l c h / .55) 60%,oklch(from var(--accent-fill,var(--accent)) l c h / .55) 88%,transparent 88%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em;margin:0 -.02em;border-radius:.14em .3em .2em .26em}
.cf-love-wall .lw-lead{display:grid;gap:4px;max-width:40rem}
.cf-love-wall .lw-lead p{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;color:var(--band-ink)}
.cf-love-wall .lw-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px}
.cf-love-wall .lw-chip{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;min-height:44px;padding:0 6px 0 16px;border-radius:999px;border:1px solid oklch(from var(--band-ink) l c h / .3);background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-family:var(--font-body);font-size:.9375rem;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.cf-love-wall .lw-chip:hover{background:oklch(from var(--band-ink) l c h / .2)}
.cf-love-wall .lw-chip:active{transform:scale(.97)}
.cf-love-wall .lw-chip:focus-visible{outline:3px solid var(--band-ink);outline-offset:2px}
.cf-love-wall .lw-chip[aria-pressed="true"]{background:var(--card);border-color:var(--card);color:var(--ink)}
.cf-love-wall .lw-count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 10px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .16);font-size:.875rem;font-weight:800;font-variant-numeric:tabular-nums}
.cf-love-wall .lw-chip[aria-pressed="true"] .lw-count{background:color-mix(in oklch,var(--ink) 8%,var(--card))}
.cf-love-wall .lw-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-love-wall .lw-wall{position:relative;padding:clamp(24px,3vw,48px) var(--lw-gutter) clamp(64px,8.5vw,120px)}
.cf-love-wall .lw-grid{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row dense;gap:clamp(16px,2vw,24px)}
.cf-love-wall .lw-card{position:relative;display:flex;flex-direction:column;gap:16px;min-width:0;margin:0;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md));transition:translate .16s ease,box-shadow .16s ease}
.cf-love-wall .lw-card:not(.is-dim):hover{translate:0 -2px;box-shadow:var(--shadow-lg)}
.cf-love-wall .lw-card.is-dim{pointer-events:none;box-shadow:var(--shadow-sm)}
.cf-love-wall .lw-card.is-dim img{filter:saturate(.4)}
.cf-love-wall .lw-photo{position:relative;flex:1 1 auto;min-height:240px;border-radius:12px;overflow:hidden;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-love-wall .lw-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.cf-love-wall .lw-result{margin:0;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-wrap:balance;color:var(--ink)}
.cf-love-wall .lw-quote{margin:0}
.cf-love-wall .lw-quote p{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;quotes:"“" "”"}
.cf-love-wall .lw-card--text .lw-quote p::before,.cf-love-wall .lw-card--photo .lw-quote p::before{content:open-quote}
.cf-love-wall .lw-card--text .lw-quote p::after,.cf-love-wall .lw-card--photo .lw-quote p::after{content:close-quote}
.cf-love-wall .lw-by{margin-top:auto;display:flex;align-items:center;gap:12px;min-width:0}
.cf-love-wall .lw-initials,.cf-love-wall .lw-avatar{flex:0 0 auto;width:40px;height:40px;border-radius:999px}
.cf-love-wall .lw-initials{display:inline-flex;align-items:center;justify-content:center;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:.875rem;font-weight:800;letter-spacing:.02em}
.cf-love-wall .lw-avatar{display:block;object-fit:cover}
.cf-love-wall .lw-who{display:flex;flex-direction:column;min-width:0}
.cf-love-wall .lw-name{font-size:1rem;font-weight:800;line-height:1.3}
.cf-love-wall .lw-role{font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
.cf-love-wall .lw-tags{margin:0;font-size:.875rem;font-weight:700;line-height:1.4;color:var(--muted)}
.cf-love-wall .lw-card--feature{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));border-color:transparent;padding:clamp(24px,3.4vw,40px);gap:20px}
.cf-love-wall .lw-card--feature .lw-quote p{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.32;font-weight:700;letter-spacing:-0.01em}
.cf-love-wall .lw-feature-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cf-love-wall .lw-qicon{flex:0 0 auto}
.cf-love-wall .lw-outcome{margin:0;display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:999px;border:1px solid oklch(from var(--accent-fill-ink,var(--card)) l c h / .45);font-family:var(--font-body);font-size:.875rem;font-weight:800;line-height:1.2;color:var(--accent-fill-ink,var(--card))}
.cf-love-wall .lw-card--feature .lw-role,.cf-love-wall .lw-card--feature .lw-tags{color:var(--accent-fill-ink,var(--card))}
.cf-love-wall .lw-card--feature .lw-initials{background:transparent;border:1px solid oklch(from var(--accent-fill-ink,var(--card)) l c h / .45);color:var(--accent-fill-ink,var(--card))}
.cf-love-wall .lw-close{max-width:46rem;margin:clamp(48px,6vw,80px) auto 0;display:flex;flex-direction:column;align-items:center;text-align:center}
.cf-love-wall .lw-punch{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:balance;color:var(--ink)}
.cf-love-wall .lw-punch + .lw-punch{margin-top:4px}
.cf-love-wall .lw-punch + .lw-punch-word{margin-top:12px}
.cf-love-wall .lw-punch-word{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)}
.cf-love-wall .lw-invest{margin:24px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;color:var(--ink)}
.cf-love-wall .lw-invest-label{font-variant-caps:all-small-caps;letter-spacing:.06em;font-weight:800;color:var(--accent)}
.cf-love-wall .lw-invest strong{font-family:var(--font-display);font-size:1.3em;line-height:1;font-weight:var(--display-weight,800);letter-spacing:-0.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-love-wall .lw-btn{margin-top:24px;display:inline-flex;align-items:center;justify-content:center;min-height:72px;min-width:min(100%,20rem);max-width:30rem;padding:0 32px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;text-decoration:none;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-love-wall .lw-btn:hover:not(:disabled):not([aria-disabled="true"]),.cf-love-wall .lw-btn.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .34),0 10px 18px -6px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .55))}
.cf-love-wall .lw-btn:active:not(:disabled):not([aria-disabled="true"]),.cf-love-wall .lw-btn.is-active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .2) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / .3)}
.cf-love-wall .lw-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-love-wall .lw-btn:disabled,.cf-love-wall .lw-btn[aria-disabled="true"]{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed;transform:none}
.cf-love-wall .lw-quiet{margin:12px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-love-wall .lw-quiet-link{text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / .45);text-underline-offset:.18em}
.cf-love-wall .lw-quiet-link:hover{color:var(--ink);text-decoration-color:currentColor}
.cf-love-wall .lw-quiet-link:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px;border-radius:4px}
@media (min-width:640px){.cf-love-wall .lw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cf-love-wall .lw-card--photo{grid-row:span 2}.cf-love-wall .lw-card--feature{grid-column:span 2}}
@media (min-width:960px){.cf-love-wall .lw-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:639px){.cf-love-wall .lw-h{margin-bottom:20px}.cf-love-wall .lw-chips{flex-wrap:nowrap;overflow-x:auto;margin-inline:calc(var(--lw-gutter) * -1);padding:4px var(--lw-gutter);scroll-padding-inline:var(--lw-gutter);scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(to right,black calc(100% - 48px),transparent);mask-image:linear-gradient(to right,black calc(100% - 48px),transparent)}.cf-love-wall .lw-chips > .lw-chip:last-child{margin-inline-end:40px}.cf-love-wall .lw-chips::-webkit-scrollbar{display:none}.cf-love-wall .lw-chip{scroll-snap-align:start}.cf-love-wall .lw-photo{flex:none;min-height:0;aspect-ratio:4/3}.cf-love-wall .lw-btn{width:100%;max-width:none}}
@media (prefers-reduced-motion:reduce){.cf-love-wall .lw-card,.cf-love-wall .lw-chip,.cf-love-wall .lw-btn{transition:none}.cf-love-wall .lw-card:not(.is-dim):hover{translate:none}.cf-love-wall .lw-chip:active,.cf-love-wall .lw-btn:active,.cf-love-wall .lw-btn.is-active{transform:none}}
`;
pieces/proof/love-wall/specimen.tsx 141 lines
import __studioImage0376e4ff from "../assets/5be38cf244752723.webp";
import __studioImage6d30ce5b from "../assets/b2f14160805315f6.webp";
import __studioImagea202276f from "../assets/c006cbd8b9675db9.webp";
// Specimen: Copy Cohort Studio's wall of love, with twelve fictional students tagged by outcome.
import * as React from "react";
import { LoveWall, type LoveWallTestimonial } from "../love-wall";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function LoveWallSpecimen({ state = "default" }: { state?: SpecimenState }) {
const testimonials: LoveWallTestimonial[] = [
{
name: "Priya S.",
role: "Yoga teacher, Leeds",
result: "My first sale came from one email",
quote:
"I'd never written a sales email in my life. In week two I sent one to my 140 subscribers and sold three retreat spots before lunch.",
image: __studioImage0376e4ff,
imageAlt: "Priya smiling by the window of her yoga studio",
tags: ["First sale", "Beginner"],
},
{
name: "Marcus T.",
role: "Freelance web designer",
result: "Drafts in 20 minutes",
quote:
"I used to lose whole mornings to a blank page. Now I open the Cohort brief, answer five questions, and the first draft is done before my coffee's cold.",
tags: ["Saved time"],
featured: true,
},
{
name: "Elena V.",
role: "Ceramics shop owner",
result: "Product pages that finally sell",
quote:
"My descriptions were lists of measurements. I rewrote six with the before-and-after drill, and two of those pieces sold the same weekend.",
tags: ["First sale"],
},
{
name: "Jordan K.",
role: "Career coach",
result: "Signed a six-month client",
quote:
"The feedback round on my About page was brutal in the best way. The rewrite is the page my newest client read right before booking a call.",
tags: ["New client"],
},
{
name: "Rosa L.",
role: "Pilates studio owner",
result: "From empty classes to a waitlist",
quote:
"I wrote one honest email about why I started teaching. Eleven people replied, my Tuesday class filled, and for the first time I have a waitlist.",
tags: ["First sale", "Beginner"],
featured: true,
},
{
name: "Sam W.",
role: "Nurse, writes on weekends",
result: "Published my first newsletter",
quote:
"I joined thinking I wasn't a real writer. Three weeks later I'd sent four issues, and my sister asked who wrote them for me.",
tags: ["Beginner"],
},
{
name: "Tom H.",
role: "Agency founder",
result: "Client briefs in half the time",
quote:
"We turned the cohort's headline checklist into our team template. A landing page brief went from a full afternoon to about two hours.",
tags: ["Saved time"],
},
{
name: "Ben C.",
role: "Bookkeeper",
result: "Finally hit publish",
quote:
"I had nine half-written blog posts. The 15-minute draft method got all nine out the door in a fortnight. Done is my new favourite word.",
tags: ["Beginner", "Saved time"],
},
{
name: "Aisha M.",
role: "Bakery owner, Bristol",
result: "Sold out the holiday box",
quote:
"One short email, written in the Thursday workshop. Our holiday pastry box sold out in a day, and I didn't have to post about it once.",
image: __studioImage6d30ce5b,
imageAlt: "Aisha in her bakery kitchen",
tags: ["First sale", "Beginner"],
},
{
name: "Grace P.",
role: "Course creator",
result: "Launch emails in one afternoon",
quote:
"Last launch, the emails took me two weeks of dread. This time I wrote the whole five-email sequence in one afternoon, and it sounded like me.",
tags: ["Saved time"],
featured: true,
},
{
name: "Lena F.",
role: "Career switcher, now a copywriter",
result: "Two clients in my first month",
quote:
"My portfolio was the three assignments from the course. I sent them with a short pitch email, and two small businesses said yes.",
tags: ["New client", "Beginner"],
},
{
name: "Omar D.",
role: "Wedding photographer",
result: "My email list started paying",
quote:
"I'd collected emails for years and never sent a thing. The welcome sequence I wrote in class booked my first session straight from the list.",
tags: ["First sale", "New client"],
},
];
return (
<LoveWall
state={state}
testimonials={testimonials}
headline="Pick a result. Read the writers who already got it."
highlight="already got it"
lead={["Every story below comes from a Copy Cohort Studio student.", "Choose the result you came for."]}
sceneImage={slot(
"scene",
__studioImagea202276f,
)}
closeLines={["Every writer on this wall started with a blank page.", "Your first draft starts the same way.", "Today."]}
price={defaults.sample.price}
investmentNote="for the full Copy Cohort Studio course. One payment, lifetime access."
ctaLabel="Join Copy Cohort Studio"
href="#enroll"
secondaryLabel="or keep reading to see what's inside"
hashKey="stories"
/>
);
}
| Name | Type | Details |
|---|---|---|
testimonials OptionalLoveWall |
LoveWallTestimonial[] |
|
headline OptionalLoveWall |
string |
|
highlight OptionalLoveWall |
string |
|
lead OptionalLoveWall |
string[] |
|
sceneImage OptionalLoveWall |
string |
|
closeLines OptionalLoveWall |
string[] |
|
price OptionalLoveWall |
string |
|
investmentLabel OptionalLoveWall |
string |
|
investmentNote OptionalLoveWall |
string |
|
ctaLabel OptionalLoveWall |
string |
|
href OptionalLoveWall |
string |
|
onAction OptionalLoveWall |
(event: React.MouseEvent<HTMLElement>) => void |
|
secondaryLabel OptionalLoveWall |
string |
|
secondaryHref OptionalLoveWall |
string |
|
hashKey OptionalLoveWall |
string |
|
copy OptionalLoveWall |
Partial<LoveWallCopy> |
|
state OptionalLoveWall |
"default" | "hover" | "active" | "disabled" |
|
className OptionalLoveWall |
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-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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
5be38cf244752723.webp
image/webp · 62.1 KB
-
b2f14160805315f6.webp
image/webp · 73.8 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c006cbd8b9675db9.webp
image/webp · 46.4 KB
-
c18141ad9dda999d.webp
image/webp · 14.4 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB