Trust Triptych 1
Trust triptych: answers the three questions that stall a buyer (refund, privacy, control) beside sculptural, theme-tinted renders. The action is the last answer, so doubt closes right before the click.
Use it in a prompt
Use content/trust-triptych from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/trust-triptych.tsx. - Import it and pass your copy and images (Props tab):
import { TrustTriptych } from "@/components/funneldna/content/trust-triptych"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/trust-triptych/component.tsx 287 lines
// layout: interview-qa
// Trust triptych: answers the three questions that stall a buyer (refund, privacy, control) beside sculptural, theme-tinted renders. The action is the last answer, so doubt closes right before the click.
import * as React from "react";
import { Mesh, Divider, Spot, FX_HOST } from "../fx/fx";
import shield from "../fx/spots/shield";
import lock from "../fx/spots/lock";
import checklist from "../fx/spots/checklist";
export type TrustTriptychItem = {
/** The visitor's question, set as the bold card title. */
title: React.ReactNode;
/** The answer: about two lines, supplied facts only. */
body: React.ReactNode;
/** Monochrome render (glass object, relief, toggles). The band hue tints it. Without one, a themed Spot illustration fills the tile. Token-tinted illustration like fx Spot, so it needs no image slot. */
image?: string;
/** Alt text. Leave empty when the render is decorative. */
imageAlt?: string;
/** Makes the whole card a focusable link. */
href?: string;
};
export type TrustTriptychProps = {
headline?: React.ReactNode;
/** Phrase inside a string headline that gets the marker swipe. */
highlight?: string;
lead?: React.ReactNode;
items?: TrustTriptychItem[];
/** The last question. The button answers it. */
closingQuestion?: React.ReactNode;
actionLabel?: string;
/** Reassurance line inside the button, under the label. */
actionSublabel?: string;
href?: string;
onAction?: () => void;
disabled?: boolean;
/** Optional terms line under the action. */
footnote?: React.ReactNode;
/** Accessible name for the card row (a swipe row on phones). */
regionLabel?: string;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_ITEMS: TrustTriptychItem[] = [
{
title: "What am I really signing up for?",
body: "What you get, what it costs and how to cancel are all spelled out before you pay.",
},
{
title: "Where do my details go?",
body: "We use them to deliver what you ordered and to keep you updated. Nothing more.",
},
{
title: "Who stays in control?",
body: "You do. Change your plan, update your details or stop from your own account.",
},
];
const SPOTS = [shield, lock, checklist];
export function TrustTriptych(props: TrustTriptychProps) {
const {
headline = "Saying yes should feel this safe",
highlight = "feel this safe",
lead,
items = DEFAULT_ITEMS,
closingQuestion = "Ready to see it for yourself?",
actionLabel = "Get started now",
actionSublabel = "See every term before you pay",
href,
onAction,
disabled,
footnote,
regionLabel = "Reasons to feel safe",
state = "default",
className,
} = props;
const canTilt = useCanTilt();
const isDisabled = Boolean(disabled) || state === "disabled";
const handleMove = (e: React.PointerEvent<HTMLElement>) => {
if (e.pointerType !== "mouse") return;
const el = e.currentTarget;
const r = el.getBoundingClientRect();
const x = (e.clientX - r.left) / r.width - 0.5;
const y = (e.clientY - r.top) / r.height - 0.5;
el.style.setProperty("--tt-ry", `${(x * 6).toFixed(2)}deg`);
el.style.setProperty("--tt-rx", `${(y * -6).toFixed(2)}deg`);
el.classList.add("is-tilting");
};
const handleLeave = (e: React.PointerEvent<HTMLElement>) => {
const el = e.currentTarget;
el.style.removeProperty("--tt-ry");
el.style.removeProperty("--tt-rx");
el.classList.remove("is-tilting");
};
const btnClass = `cf-tt-btn${state === "hover" ? " is-hover" : ""}${state === "active" ? " is-active" : ""}`;
const btnInner = (
<>
<span className="cf-tt-btn-label">{actionLabel}</span>
{actionSublabel ? <span className="cf-tt-btn-sub">{actionSublabel}</span> : null}
</>
);
return (
<section
className={`cf-tt${className ? ` ${className}` : ""}`}
data-state={state}
style={FX_HOST as React.CSSProperties}
>
<style>{CSS}</style>
<Mesh variant="dark" />
<Divider shape="angle" tone="surface" height={56} />
<div className="cf-tt-in">
<header className="cf-tt-head">
<h2 className="cf-tt-h">{renderHeadline(headline, highlight)}</h2>
{lead ? <p className="cf-tt-lead">{lead}</p> : null}
</header>
<div className="cf-tt-scroll" role="region" aria-label={regionLabel} tabIndex={0}>
<ul className="cf-tt-row" role="list">
{items.map((item, i) => {
const tile = (
<>
<div className={`cf-tt-tile${item.image ? " has-img" : ""}`}>
{item.image ? (
<img
className="cf-tt-img"
src={item.image}
alt={item.imageAlt ?? ""}
aria-hidden={item.imageAlt ? undefined : true}
loading="lazy"
decoding="async"
/>
) : (
<span className="cf-tt-spot" aria-hidden="true">
<Spot src={SPOTS[i % SPOTS.length]} size={168} shade="band" light="band-ink" />
</span>
)}
</div>
<h3 className="cf-tt-title">{item.title}</h3>
<p className="cf-tt-body">{item.body}</p>
</>
);
const shared = {
style: { "--i": i } as React.CSSProperties,
onPointerMove: canTilt ? handleMove : undefined,
onPointerLeave: canTilt ? handleLeave : undefined,
};
return (
<li key={i} className="cf-tt-item">
{item.href ? (
<a className="cf-tt-card is-link" href={item.href} {...shared}>
{tile}
</a>
) : (
<div className="cf-tt-card" {...shared}>
{tile}
</div>
)}
</li>
);
})}
</ul>
</div>
{actionLabel ? (
<div className={`cf-tt-close${closingQuestion ? "" : " no-q"}`}>
{closingQuestion ? <p className="cf-tt-q">{closingQuestion}</p> : null}
{href && !isDisabled ? (
<a className={btnClass} href={href} onClick={() => onAction?.()}>
{btnInner}
</a>
) : (
<button type="button" className={btnClass} disabled={isDisabled} onClick={() => onAction?.()}>
{btnInner}
</button>
)}
{footnote ? <p className="cf-tt-foot">{footnote}</p> : null}
</div>
) : footnote ? (
<p className="cf-tt-foot">{footnote}</p>
) : null}
</div>
</section>
);
}
export default TrustTriptych;
function renderHeadline(headline: React.ReactNode, phrase?: string) {
if (typeof headline !== "string" || !phrase) return headline;
const at = headline.indexOf(phrase);
if (at < 0) return headline;
return (
<>
{headline.slice(0, at)}
<mark className="cf-tt-mark">{phrase}</mark>
{headline.slice(at + phrase.length)}
</>
);
}
function useCanTilt() {
const [ok, setOk] = React.useState(false);
React.useEffect(() => {
if (typeof window === "undefined" || !window.matchMedia) return;
const fine = window.matchMedia("(hover: hover) and (pointer: fine)");
const calm = window.matchMedia("(prefers-reduced-motion: reduce)");
const update = () => setOk(fine.matches && !calm.matches);
update();
fine.addEventListener?.("change", update);
calm.addEventListener?.("change", update);
return () => {
fine.removeEventListener?.("change", update);
calm.removeEventListener?.("change", update);
};
}, []);
return ok;
}
const SHADOW = "var(--shadow, oklch(0.22 0.03 260))";
const CSS = `
.cf-tt{--tt-gutter:clamp(16px,5vw,48px);position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) 0 calc(clamp(64px,8.5vw,120px) + 56px);}
.cf-tt *,.cf-tt *::before,.cf-tt *::after{box-sizing:border-box;}
.cf-tt-in{position:relative;z-index:1;max-width:calc(1120px + 2 * var(--tt-gutter));margin:0 auto;padding:0 var(--tt-gutter);}
.cf-tt-head{max-width:46rem;}
.cf-tt-h{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;color:var(--band-ink);text-wrap:balance;}
.cf-tt-mark{color:oklch(from var(--band) min(l,0.22) c h);background-color:transparent;background-image:linear-gradient(oklch(from var(--marker,#fae37c) max(l,0.86) c h / 1),oklch(from var(--marker,#fae37c) max(l,0.86) c h / 1));background-repeat:no-repeat;background-size:100% 84%;background-position:0 62%;padding:0 .14em;margin:0 -.02em;border-radius:.12em .32em .18em .28em;-webkit-box-decoration-break:clone;box-decoration-break:clone;}
.cf-tt-lead{margin:16px 0 0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:color-mix(in oklch,var(--band-ink) 84%,var(--band));text-wrap:pretty;}
.cf-tt-scroll{margin-top:clamp(32px,4vw,48px);border-radius:var(--radius,12px);}
.cf-tt-scroll:focus{outline:none;}
.cf-tt-scroll:focus-visible{outline:3px solid var(--band-ink);outline-offset:6px;}
.cf-tt-row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.2vw,28px);}
.cf-tt-item{min-width:0;}
.cf-tt-card{display:block;height:100%;color:inherit;text-decoration:none;border-radius:var(--card-radius,var(--radius,14px));animation:cf-tt-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s);}
.cf-tt-card.is-tilting,.cf-tt-card.is-link:focus-visible{--tt-lift:-4px;}
.cf-tt-card.is-link:focus{outline:none;}
.cf-tt-card.is-link:focus-visible{outline:3px solid var(--band-ink);outline-offset:6px;}
.cf-tt-tile{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:var(--card-radius,var(--radius,14px));background:oklch(from var(--band) calc(l + 0.06) c h);border:1px solid oklch(from var(--band-ink) l c h / .1);box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .08),0 1px 2px oklch(from ${SHADOW} calc(l - 0.08) c h / .45),0 12px 22px -12px oklch(from ${SHADOW} calc(l - 0.08) c h / .6);transform:perspective(900px) rotateX(var(--tt-rx,0deg)) rotateY(var(--tt-ry,0deg)) translateY(var(--tt-lift,0px));transition:transform .16s ease,box-shadow .16s ease;}
.cf-tt-card.is-tilting .cf-tt-tile{transition:transform .08s linear,box-shadow .16s ease;}
.cf-tt-card.is-tilting .cf-tt-tile,.cf-tt-card.is-link:focus-visible .cf-tt-tile,.cf-tt[data-state=hover] .cf-tt-item:first-child .cf-tt-tile{box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .1),0 2px 3px oklch(from ${SHADOW} calc(l - 0.08) c h / .5),0 18px 26px -12px oklch(from ${SHADOW} calc(l - 0.08) c h / .7);}
.cf-tt[data-state=hover] .cf-tt-item:first-child .cf-tt-card{--tt-rx:1.6deg;--tt-ry:-2.4deg;--tt-lift:-4px;}
.cf-tt-img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center;filter:grayscale(1) contrast(1.04);}
.cf-tt-tile.has-img::after{content:"";position:absolute;inset:0;background:var(--band);mix-blend-mode:color;opacity:.6;pointer-events:none;}
.cf-tt-spot{position:absolute;inset:0;display:grid;place-items:center;}
.cf-tt-title{margin:20px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--band-ink);text-wrap:balance;}
.cf-tt-body{margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:color-mix(in oklch,var(--band-ink) 82%,var(--band));text-wrap:pretty;}
.cf-tt-close{margin-top:clamp(40px,5vw,64px);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px clamp(24px,4vw,48px);padding:clamp(20px,3vw,32px);border-radius:var(--card-radius,var(--radius,14px));background:oklch(from var(--band) calc(l + 0.05) c h);border:1px solid oklch(from var(--band-ink) l c h / .12);box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .06),0 1px 2px oklch(from ${SHADOW} calc(l - 0.08) c h / .4),0 12px 22px -12px oklch(from ${SHADOW} calc(l - 0.08) c h / .55);animation:cf-tt-rise .45s cubic-bezier(.2,.7,.2,1) .21s both;}
.cf-tt-close.no-q{grid-template-columns:minmax(0,1fr);justify-items:start;}
.cf-tt-close .cf-tt-btn{justify-self:end;min-width:min(100%,320px);}
.cf-tt-close.no-q .cf-tt-btn{justify-self:start;}
.cf-tt-close .cf-tt-foot{grid-column:1/-1;margin:0;color:color-mix(in oklch,var(--band-ink) 80%,var(--band));}
.cf-tt-q{margin:0;max-width:30rem;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--band-ink);text-wrap:balance;}
.cf-tt-btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:72px;max-width:100%;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));cursor:pointer;text-align:center;text-decoration:none;font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,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 + 0.04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from ${SHADOW} calc(l - 0.08) c h / .45),0 8px 16px -6px oklch(from ${SHADOW} calc(l - 0.08) c h / .6));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;}
.cf-tt-btn-label{font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-wrap:balance;}
.cf-tt-btn-sub{font-family:var(--font-body);font-size:.9375rem;line-height:1.3;font-weight:600;text-transform:none;text-wrap:balance;hyphens:manual;}
.cf-tt-btn:hover:not(:disabled),.cf-tt-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.12) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.2) c h),0 1px 2px oklch(from ${SHADOW} calc(l - 0.08) c h / .5),0 10px 18px -6px oklch(from ${SHADOW} calc(l - 0.08) c h / .7);}
.cf-tt-btn:active:not(:disabled),.cf-tt-btn.is-active:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - 0.22) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 1px oklch(from ${SHADOW} calc(l - 0.08) c h / .45);}
.cf-tt-btn:focus{outline:none;}
.cf-tt-btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px;}
.cf-tt-btn:disabled{cursor:not-allowed;text-shadow:none;color:var(--button-2-ink,var(--secondary-ink));background:var(--button-2-bg,var(--secondary));box-shadow:var(--button-2-shadow,var(--shadow-sm));}
.cf-tt-foot{margin:24px 0 0;max-width:64ch;font-size:.9375rem;line-height:1.4;font-weight:500;color:color-mix(in oklch,var(--band-ink) 76%,var(--band));text-wrap:pretty;}
@keyframes cf-tt-rise{from{opacity:.82;transform:translateY(8px);}}
@media (max-width:900px){
.cf-tt-scroll{margin-left:calc(-1 * var(--tt-gutter));margin-right:calc(-1 * var(--tt-gutter));overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:var(--tt-gutter);overscroll-behavior-x:contain;scrollbar-width:none;border-radius:0;}
.cf-tt-scroll::-webkit-scrollbar{display:none;}
.cf-tt-scroll:focus-visible{outline-offset:-3px;}
.cf-tt-row{display:flex;width:max-content;gap:16px;padding:8px var(--tt-gutter) 12px;}
.cf-tt-item{flex:0 0 auto;width:min(76vw,340px);scroll-snap-align:start;}
}
@media (max-width:640px){
.cf-tt-close{grid-template-columns:minmax(0,1fr);gap:16px;}
.cf-tt-close .cf-tt-btn,.cf-tt-close.no-q .cf-tt-btn{justify-self:stretch;width:100%;min-width:0;padding:12px 16px;}
.cf-tt-btn{width:100%;padding:12px 16px;}
}
@media (prefers-reduced-motion: reduce){
.cf-tt-card,.cf-tt-close{animation:none;}
.cf-tt-card{--tt-rx:0deg !important;--tt-ry:0deg !important;}
.cf-tt-tile,.cf-tt-btn{transition:none;}
.cf-tt-btn:active:not(:disabled),.cf-tt-btn.is-active:not(:disabled){transform:none;}
}
`;
pieces/content/trust-triptych/specimen.tsx 50 lines
import __studioImagecb7ae4e7 from "../assets/2df3834264f7a553.webp";
import __studioImagec2e8a16a from "../assets/3ab142f83acdebb6.webp";
import __studioImagec42e7517 from "../assets/a8b8a547a493adb4.webp";
import { TrustTriptych } from "../trust-triptych";
import defaults from "../../studio-defaults.json";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function TrustTriptychSpecimen({ state = "default" }: { state?: SpecimenState }) {
// Vaultline (fictional): a password manager for families, sold as a subscription with a free trial.
const guarantee = defaults.sample.guarantee; // "30-day money-back guarantee"
// Keep the guarantee phrase on one line so it never splits at "money-/back" on phones.
const keep = (text: string) => <span style={{ whiteSpace: "nowrap" }}>{text}</span>;
return (
<TrustTriptych
state={state}
headline="Every login your family shares, locked down three ways"
highlight="locked down"
lead="Vaultline keeps the streaming, school and banking passwords in one place, with a separate key for each person."
items={[
{
title: "What if it's not right for our family?",
body: <>Start on a free trial. Once you pay, you're backed by a {keep(guarantee)}.</>,
image: __studioImagecb7ae4e7,
imageAlt: "",
},
{
title: "Can anyone else open our vault?",
body: "Each person unlocks their own vault with a master password, plus a fingerprint or face on their phone.",
image: __studioImagec2e8a16a,
imageAlt: "",
},
{
title: "Who decides what the kids can see?",
body: "You do. Share the streaming logins, keep the banking ones private, and change who sees what in one tap.",
image: __studioImagec42e7517,
imageAlt: "",
},
]}
closingQuestion="Ready to give everyone their own key?"
actionLabel="Start my free trial"
actionSublabel={`Includes a ${guarantee}`}
footnote={<>Your free trial becomes a paid family plan unless you cancel before it ends. The {keep(guarantee)} starts from your first payment.</>}
regionLabel="Three ways Vaultline keeps your family safe"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalTrustTriptych |
React.ReactNode |
|
highlight OptionalTrustTriptych |
string |
|
lead OptionalTrustTriptych |
React.ReactNode |
|
items OptionalTrustTriptych |
TrustTriptychItem[] |
|
closingQuestion OptionalTrustTriptych |
React.ReactNode |
|
actionLabel OptionalTrustTriptych |
string |
|
actionSublabel OptionalTrustTriptych |
string |
|
href OptionalTrustTriptych |
string |
|
onAction OptionalTrustTriptych |
() => void |
|
disabled OptionalTrustTriptych |
boolean |
|
footnote OptionalTrustTriptych |
React.ReactNode |
|
regionLabel OptionalTrustTriptych |
string |
|
state OptionalTrustTriptych |
"default" | "hover" | "active" | "disabled" |
|
className OptionalTrustTriptych |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-radius- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--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.
-
2df3834264f7a553.webp
image/webp · 10.3 KB
-
3ab142f83acdebb6.webp
image/webp · 96.7 KB
-
4788bc008c79471c.webp
image/webp · 13.9 KB
-
7d6f1c81c93d8f71.webp
image/webp · 18.2 KB
-
a8b8a547a493adb4.webp
image/webp · 14.7 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB