Split Statement Hero 1
Split statement hero: the visitor's problem is a giant muted statement on a dark photo tile (a themed fx Backdrop under a dark scrim). The light side holds the promise, one Add To Cart action with the price on the button, and Spot-illustrated points.
Use it in a prompt
Use hero/split-statement-hero 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/hero/split-statement-hero.tsx. - Import it and pass your copy and images (Props tab):
import { SplitStatementHero } from "@/components/funneldna/hero/split-statement-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/split-statement-hero/component.tsx 469 lines
// layout: bento-grid
// Split statement hero: the visitor's problem is a giant muted statement on a dark photo tile (a themed fx Backdrop under a dark scrim). The light side holds the promise, one Add To Cart action with the price on the button, and Spot-illustrated points.
// Hovering or focusing the promise lets the light side lean into the problem (transforms only, no layout shift).
// The assigned scrawl underline is replaced by one marker stroke behind the key phrase, because hand-drawn pen underlines never ship.
import * as React from "react";
import { AlertCircle, ShoppingCart } from "lucide-react";
import { Backdrop, Divider, FX_HOST, Spot } from "../fx/fx";
import workshop from "../fx/backdrops/workshop";
import book from "../fx/spots/book";
import checklist from "../fx/spots/checklist";
import rocket from "../fx/spots/rocket";
type EdgeTone = React.ComponentProps<typeof Divider>["tone"];
export type SplitStatementHeroField = {
name: string;
label: string;
type?: "text" | "email" | "tel";
autoComplete?: string;
// a realistic example answer; a sensible one is used when omitted
placeholder?: string;
// defaults to true
required?: boolean;
};
export type SplitStatementHeroPoint = {
title: string;
detail?: string;
// an imported fx spot asset (URL string), e.g. import clock from "../fx/spots/clock"
spot?: string;
};
export type SplitStatementHeroCopy = {
// {label} is replaced with the field label in lower case
required: string;
invalidEmail: string;
// accessible name of the points list
pointsLabel: string;
};
export type SplitStatementHeroProps = {
// the problem in one short sentence; empty renders the promise side alone
problem?: string;
// one supporting line under the problem (two-column layout only)
problemDetail?: string;
// photo behind the problem tile: an imported fx backdrop (the page's scene image replaces it); "" for a plain band
problemImage?: string;
headline?: string;
// the phrase inside the headline that gets the marker stroke
highlight?: string;
lead?: string;
label?: string;
price?: string;
// second line of the button; {price} is replaced with the price
buttonNote?: string;
href?: string;
onAction?: () => void;
// optional inline form; when given, the button submits it
fields?: SplitStatementHeroField[];
onSubmit?: (values: Record<string, string>) => void;
// proof renders only when supplied
proofQuote?: string;
proofName?: string;
points?: SplitStatementHeroPoint[];
// curved hand-off into the next section
edge?: boolean;
// the next section's token for the curve
edgeTone?: EdgeTone;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled" | "error";
copy?: Partial<SplitStatementHeroCopy>;
className?: string;
};
export function SplitStatementHero(props: SplitStatementHeroProps) {
const {
problem = "Your funnel is still an idea in your head.",
problemDetail = "Every week it stays there is a week of sales that never happen.",
problemImage = workshop,
headline = "Build your first funnel with a clear plan",
highlight = "a clear plan",
lead = "Plan your funnel, write your page copy, and check every step before you launch.",
label = "Add To Cart",
price = "$47",
buttonNote = "{price} · One payment",
href,
onAction,
fields = NO_FIELDS,
onSubmit,
proofQuote = "",
proofName = "",
points = DEFAULT_POINTS,
edge = true,
edgeTone = "surface" as EdgeTone,
disabled = false,
state = "default",
copy,
className,
} = props;
const c: SplitStatementHeroCopy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const headingId = uid + "-heading";
const [values, setValues] = React.useState<Record<string, string>>({});
const [errors, setErrors] = React.useState<Record<string, string>>({});
const isDisabled = disabled || state === "disabled";
const hasProblem = problem.trim().length > 0;
const firstName = fields[0]?.name;
const firstLabel = fields[0]?.label ?? "";
const requiredMsg = c.required;
React.useEffect(() => {
if (state === "error" && firstName) {
setErrors({ [firstName]: fill(requiredMsg, { label: firstLabel.toLowerCase() }) });
} else {
setErrors({});
}
}, [state, firstName, firstLabel, requiredMsg]);
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (isDisabled) return;
const next: Record<string, string> = {};
for (const f of fields) {
const msg = validateField(f, values[f.name] ?? "", c);
if (msg) next[f.name] = msg;
}
setErrors(next);
const firstBad = fields.find((f) => next[f.name]);
if (firstBad) {
const el = e.currentTarget.elements.namedItem(firstBad.name);
if (el instanceof HTMLInputElement) el.focus();
return;
}
onSubmit?.(Object.fromEntries(fields.map((f) => [f.name, (values[f.name] ?? "").trim()])));
};
const note = price ? fill(buttonNote, { price }) : buttonNote.includes("{price}") ? "" : buttonNote;
const btnClass = ["ssh-btn", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""].filter(Boolean).join(" ");
const btnInner = (
<>
<span className="ssh-btn-label">
<ShoppingCart className="ssh-btn-icon" size={20} strokeWidth={2.5} aria-hidden="true" />
{label}
</span>
{note ? <span className="ssh-btn-note">{note}</span> : null}
</>
);
let action: React.ReactNode;
if (fields.length > 0) {
action = (
<form className="ssh-action" noValidate onSubmit={handleSubmit}>
{fields.map((f) => {
const id = uid + "-" + f.name;
const err = errors[f.name];
return (
<div className="ssh-field" key={f.name}>
<label className="ssh-label" htmlFor={id}>
{f.label}
</label>
<input
id={id}
name={f.name}
type={f.type ?? "text"}
inputMode={f.type === "email" ? "email" : f.type === "tel" ? "tel" : undefined}
autoComplete={f.autoComplete}
placeholder={placeholderFor(f)}
className={"ssh-input" + (err ? " is-invalid" : "")}
value={values[f.name] ?? ""}
disabled={isDisabled}
required={f.required !== false}
aria-invalid={err ? true : undefined}
aria-describedby={err ? id + "-error" : undefined}
onChange={(e) => {
const v = e.target.value;
setValues((prev) => ({ ...prev, [f.name]: v }));
if (errors[f.name]) {
setErrors((prev) => {
const n = { ...prev };
delete n[f.name];
return n;
});
}
}}
/>
{err ? (
<p className="ssh-err" id={id + "-error"}>
<AlertCircle className="ssh-err-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{err}
</p>
) : null}
</div>
);
})}
<button type="submit" className={btnClass} disabled={isDisabled}>
{btnInner}
</button>
</form>
);
} else if (href) {
action = (
<div className="ssh-action">
<a
className={btnClass}
href={isDisabled ? undefined : href}
role="link"
aria-disabled={isDisabled || undefined}
onClick={(e) => {
if (isDisabled) {
e.preventDefault();
return;
}
onAction?.();
}}
>
{btnInner}
</a>
</div>
);
} else {
action = (
<div className="ssh-action">
<button type="button" className={btnClass} disabled={isDisabled} onClick={() => onAction?.()}>
{btnInner}
</button>
</div>
);
}
const rootClass = ["cf-split-statement-hero", state === "hover" ? "is-lean" : "", edge ? "" : "no-edge", className ?? ""]
.filter(Boolean)
.join(" ");
return (
<section className={rootClass} style={FX_HOST} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className={"ssh-grid" + (hasProblem ? "" : " is-solo")}>
{hasProblem ? (
<div className={"ssh-problem" + (problemImage ? " has-photo" : "")} style={FX_HOST}>
{problemImage ? <Backdrop src={problemImage} treatment="scrim-dark" position="center" /> : null}
<div className="ssh-problem-in">
<p className="ssh-statement ssh-rise" style={rise(0)}>
{problem}
</p>
{problemDetail ? (
<p className="ssh-detail ssh-rise" style={rise(1)}>
{problemDetail}
</p>
) : null}
</div>
</div>
) : null}
<div className="ssh-promise">
<div className="ssh-plane" aria-hidden="true">
<span className="ssh-seam">
<span className="ssh-runner" />
</span>
</div>
<div className="ssh-promise-in">
<h1 id={headingId} className="ssh-h1 ssh-rise" style={rise(1)}>
{withMarker(headline, highlight)}
</h1>
{lead ? (
<p className="ssh-lead ssh-rise" style={rise(2)}>
{lead}
</p>
) : null}
<div className="ssh-rise" style={rise(3)}>
{action}
{proofQuote ? (
<p className="ssh-proof">
<span className="ssh-proof-q">“{proofQuote}”</span>
{proofName ? <span className="ssh-proof-n">{proofName}</span> : null}
</p>
) : null}
</div>
{points.length > 0 ? (
<ul className="ssh-points ssh-rise" style={rise(4)} aria-label={c.pointsLabel}>
{points.map((p, i) => (
<li className="ssh-point" key={p.title + i}>
{p.spot ? (
<span className="ssh-spot">
<Spot src={p.spot} size={48} />
</span>
) : null}
<span className="ssh-point-text">
<span className="ssh-point-title">{p.title}</span>
{p.detail ? <span className="ssh-point-detail">{p.detail}</span> : null}
</span>
</li>
))}
</ul>
) : null}
</div>
</div>
</div>
{edge ? (
<div className="ssh-edge" aria-hidden="true">
<Divider shape="curve" tone={edgeTone} height={56} />
</div>
) : null}
</section>
);
}
export default SplitStatementHero;
const NO_FIELDS: SplitStatementHeroField[] = [];
const DEFAULT_COPY: SplitStatementHeroCopy = {
required: "Please enter your {label}.",
invalidEmail: "Please enter a valid email address.",
pointsLabel: "What you get",
};
const DEFAULT_POINTS: SplitStatementHeroPoint[] = [
{ title: "Map every page your funnel needs", spot: checklist },
{ title: "Write copy that asks for the sale", spot: book },
{ title: "Launch with every step checked", spot: rocket },
];
function fill(template: string, vars: Record<string, string>) {
return Object.keys(vars).reduce((s, k) => s.split("{" + k + "}").join(vars[k]), template);
}
function placeholderFor(f: SplitStatementHeroField) {
if (f.placeholder) return f.placeholder;
if (f.type === "email") return "you@example.com";
if (f.type === "tel") return "(555) 123-4567";
if (f.name.toLowerCase().includes("name")) return "Jane Smith";
return "Type your answer";
}
function looksLikeEmail(v: string) {
const at = v.indexOf("@");
const dot = v.lastIndexOf(".");
return at > 0 && at === v.lastIndexOf("@") && dot > at + 1 && dot < v.length - 1 && !v.includes(" ");
}
function validateField(f: SplitStatementHeroField, raw: string, c: SplitStatementHeroCopy) {
const v = raw.trim();
if (f.required !== false && !v) return fill(c.required, { label: f.label.toLowerCase() });
if (f.type === "email" && v && !looksLikeEmail(v)) return c.invalidEmail;
return "";
}
function withMarker(text: string, phrase?: string) {
if (!phrase) return text;
const i = text.indexOf(phrase);
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className="ssh-mark">{phrase}</span>
{text.slice(i + phrase.length)}
</>
);
}
function rise(i: number): React.CSSProperties {
return { ["--i" as string]: Math.min(i, 4) } as React.CSSProperties;
}
const CSS = `
.cf-split-statement-hero{--ssh-edge:56px;--ssh-ease:cubic-bezier(.2,.7,.2,1);--ssh-shadow:var(--shadow, oklch(0.22 0.03 260));container:ssh / inline-size;position:relative;overflow:hidden;overflow:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body);}
.cf-split-statement-hero.no-edge{--ssh-edge:0px;}
.cf-split-statement-hero *,.cf-split-statement-hero *::before,.cf-split-statement-hero *::after{box-sizing:border-box;}
.cf-split-statement-hero .ssh-grid{display:grid;grid-template-columns:minmax(0,1fr);}
.cf-split-statement-hero .ssh-problem{position:relative;display:flex;justify-content:center;min-width:0;background:var(--band);color:var(--band-ink);padding:40px clamp(16px,5vw,48px) 32px;}
.cf-split-statement-hero .ssh-problem-in{container:ssh-q / inline-size;position:relative;z-index:1;inline-size:100%;max-inline-size:560px;min-width:0;display:flex;flex-direction:column;justify-content:flex-start;gap:20px;transform-origin:left top;transition:transform .5s var(--ssh-ease);}
.cf-split-statement-hero .ssh-statement{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(1.875rem,9.5cqi,3rem);line-height:1.04;color:color-mix(in oklch,var(--band-ink) 82%,var(--band));text-wrap:balance;overflow-wrap:break-word;hyphens:manual;}
@container ssh (max-width: 859.98px){
.cf-split-statement-hero .ssh-problem.has-photo{padding-top:64px;padding-bottom:40px;}
}
.cf-split-statement-hero .ssh-detail{display:none;margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:500;color:color-mix(in oklch,var(--band-ink) 88%,var(--band));max-inline-size:42ch;text-wrap:pretty;}
.cf-split-statement-hero .ssh-promise{position:relative;isolation:isolate;display:flex;justify-content:center;min-width:0;padding:40px clamp(16px,5vw,48px) calc(40px + var(--ssh-edge));}
.cf-split-statement-hero .ssh-plane{position:absolute;inset:0;z-index:-1;background:var(--surface);transform-origin:right center;transition:transform .5s var(--ssh-ease);}
.cf-split-statement-hero .ssh-seam{display:none;position:absolute;inset-block:0;inset-inline-start:0;inline-size:2px;overflow:hidden;background:oklch(from var(--accent-fill, var(--accent)) l c h / 0.3);}
.cf-split-statement-hero .ssh-runner{position:absolute;inset-inline:0;inset-block-start:0;block-size:26%;background:linear-gradient(to bottom,oklch(from var(--accent-fill, var(--accent)) l c h / 0),var(--accent-fill, var(--accent)),oklch(from var(--accent-fill, var(--accent)) l c h / 0));transform:translateY(-110%);animation:ssh-seam 3.6s cubic-bezier(.45,0,.25,1) .4s 1 both;}
.cf-split-statement-hero .ssh-promise-in{container:ssh-p / inline-size;inline-size:100%;max-inline-size:560px;min-width:0;transform-origin:right top;transition:transform .5s var(--ssh-ease);}
.cf-split-statement-hero .ssh-h1{margin:0 0 24px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2.125rem,10cqi,3.25rem);line-height:1.06;color:var(--ink);text-wrap:balance;overflow-wrap:break-word;hyphens:manual;}
.cf-split-statement-hero .ssh-mark{--ssh-marker:color-mix(in oklch,var(--marker, #fae37c) 82%,transparent);background-image:linear-gradient(to top,transparent 0.04em,var(--ssh-marker) 0.04em,var(--ssh-marker) 0.44em,transparent 0.44em);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:0.06em;border-radius:0.18em 0.08em 0.22em 0.1em;}
.cf-split-statement-hero .ssh-lead{margin:0 0 28px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);max-inline-size:60ch;text-wrap:pretty;}
.cf-split-statement-hero .ssh-action{display:grid;gap:12px;inline-size:100%;max-inline-size:26rem;margin:0;}
.cf-split-statement-hero .ssh-field{display:grid;gap:8px;min-width:0;}
.cf-split-statement-hero .ssh-label{font-size:1.0625rem;font-weight:700;line-height:1.3;color:var(--label-ink, var(--ink));}
.cf-split-statement-hero .ssh-input{inline-size:100%;min-height:56px;padding:0 16px;font:inherit;font-size:1.0625rem;color:var(--field-ink, #101828);background:var(--field, #ffffff);border:1px solid var(--field-border, color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius, var(--radius, 12px));transition:border-color .16s ease,box-shadow .16s ease;}
.cf-split-statement-hero .ssh-input::placeholder{color:color-mix(in oklch,var(--field-ink, #101828) 65%,var(--field, #ffffff));opacity:1;}
.cf-split-statement-hero .ssh-input:hover:not(:disabled){border-color:color-mix(in oklch,var(--ink) 38%,transparent);}
.cf-split-statement-hero .ssh-input:focus-visible{outline:none;border-color:var(--field-focus, var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus, var(--accent)) l c h / 0.35);}
.cf-split-statement-hero .ssh-input.is-invalid{border-color:var(--danger);}
.cf-split-statement-hero .ssh-input.is-invalid:focus-visible{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3);}
.cf-split-statement-hero .ssh-input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--ink) 5%,var(--field, #ffffff));}
.cf-split-statement-hero .ssh-err{margin:0;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty;}
.cf-split-statement-hero .ssh-err-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em;}
.cf-split-statement-hero .ssh-btn{--b:var(--button-bg, var(--cta));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;inline-size:100%;min-height:72px;padding:12px 28px;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);color:var(--button-ink, var(--cta-ink));text-shadow:var(--button-text-shadow, none);text-decoration:none;text-align:center;cursor:pointer;background:linear-gradient(oklch(from var(--b) 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(--b) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--ssh-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--ssh-shadow) l c h / 0.42));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;}
.cf-split-statement-hero .ssh-btn:hover:not(:disabled):not([aria-disabled="true"]),.cf-split-statement-hero .ssh-btn.is-hover{background:linear-gradient(oklch(from var(--b) 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(--b) calc(l + 0.12) c h / 0.7),inset 0 -3px 0 oklch(from var(--b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--ssh-shadow) l c h / 0.34),0 10px 18px -6px oklch(from var(--ssh-shadow) l c h / 0.5);transform:translateY(-1px);}
.cf-split-statement-hero .ssh-btn:active:not(:disabled):not([aria-disabled="true"]),.cf-split-statement-hero .ssh-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--b) calc(l - 0.05) c h),oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.09) c h));box-shadow:inset 0 2px 4px oklch(from var(--b) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--b) calc(l - 0.18) c h),0 1px 2px oklch(from var(--ssh-shadow) l c h / 0.3);}
.cf-split-statement-hero .ssh-btn:focus-visible{outline:3px solid var(--field-focus, var(--accent));outline-offset:3px;}
.cf-split-statement-hero .ssh-btn:disabled,.cf-split-statement-hero .ssh-btn[aria-disabled="true"]{cursor:not-allowed;transform:none;background:var(--secondary, color-mix(in oklch,var(--ink) 10%,var(--surface)));color:var(--secondary-ink, var(--ink));text-shadow:none;box-shadow:none;}
.cf-split-statement-hero .ssh-btn-label{display:block;max-inline-size:100%;font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-wrap:balance;overflow-wrap:anywhere;}
.cf-split-statement-hero .ssh-btn-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.45em;}
.cf-split-statement-hero .ssh-btn-note{display:block;max-inline-size:100%;font-family:var(--font-body);font-weight:600;font-size:0.9375rem;line-height:1.3;letter-spacing:0;text-transform:none;text-wrap:pretty;}
.cf-split-statement-hero .ssh-proof{margin:16px 0 0;max-inline-size:26rem;font-size:0.9375rem;line-height:1.4;color:var(--muted);text-wrap:pretty;}
.cf-split-statement-hero .ssh-proof-q{display:block;font-weight:600;color:var(--ink);}
.cf-split-statement-hero .ssh-proof-n{display:block;margin-top:4px;font-weight:500;}
.cf-split-statement-hero .ssh-points{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:8px;}
.cf-split-statement-hero .ssh-point{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 16px;border-radius:calc(var(--radius, 12px) - 2px);background:color-mix(in oklch,var(--ink) 4%,var(--surface));}
.cf-split-statement-hero .ssh-spot{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;inline-size:48px;block-size:48px;}
.cf-split-statement-hero .ssh-point-text{display:grid;gap:2px;min-width:0;}
.cf-split-statement-hero .ssh-point-title{font-size:1rem;font-weight:700;line-height:1.3;color:var(--ink);text-wrap:balance;overflow-wrap:anywhere;}
.cf-split-statement-hero .ssh-point-detail{font-size:0.9375rem;line-height:1.4;color:var(--muted);text-wrap:pretty;}
@container ssh-p (min-width: 480px){
.cf-split-statement-hero .ssh-points{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.cf-split-statement-hero .ssh-point{flex-direction:column;align-items:flex-start;padding:16px;}
}
.cf-split-statement-hero .ssh-edge{position:absolute;inset-inline:0;inset-block-end:0;block-size:var(--ssh-edge);z-index:2;pointer-events:none;}
@container ssh (min-width: 860px){
.cf-split-statement-hero .ssh-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.cf-split-statement-hero .ssh-grid.is-solo{grid-template-columns:minmax(0,1fr);}
.cf-split-statement-hero .ssh-problem{justify-content:flex-end;padding:clamp(56px,8vw,112px) clamp(32px,4vw,64px) calc(clamp(64px,8.5vw,120px) + var(--ssh-edge)) clamp(16px,5vw,48px);}
.cf-split-statement-hero .ssh-statement{font-size:clamp(2.25rem,11cqi,5.5rem);}
.cf-split-statement-hero .ssh-detail{display:block;}
.cf-split-statement-hero .ssh-promise{justify-content:flex-start;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) calc(clamp(64px,8.5vw,120px) + var(--ssh-edge)) clamp(32px,4vw,64px);}
.cf-split-statement-hero .ssh-grid.is-solo .ssh-promise{justify-content:center;padding-inline:clamp(16px,5vw,48px);}
.cf-split-statement-hero .ssh-grid:not(.is-solo) .ssh-seam{display:block;}
.cf-split-statement-hero .ssh-h1{font-size:clamp(2.5rem,9.6cqi,4.5rem);}
}
@keyframes ssh-rise{from{opacity:.82;transform:translateY(8px);}to{opacity:1;transform:none;}}
@keyframes ssh-seam{from{transform:translateY(-110%);}to{transform:translateY(400%);}}
.cf-split-statement-hero .ssh-rise{animation:ssh-rise .45s var(--ssh-ease) both;animation-delay:calc(var(--i, 0) * .07s);}
@media (prefers-reduced-motion: no-preference){
@container ssh (min-width: 860px){
.cf-split-statement-hero.is-lean .ssh-grid:not(.is-solo) .ssh-plane,
.cf-split-statement-hero .ssh-grid:not(.is-solo):has(.ssh-promise:focus-within) .ssh-plane{transform:scaleX(1.04);}
.cf-split-statement-hero.is-lean .ssh-grid:not(.is-solo) .ssh-problem-in,
.cf-split-statement-hero .ssh-grid:not(.is-solo):has(.ssh-promise:focus-within) .ssh-problem-in{transform:scale(.97);}
.cf-split-statement-hero.is-lean .ssh-grid:not(.is-solo) .ssh-promise-in,
.cf-split-statement-hero .ssh-grid:not(.is-solo):has(.ssh-promise:focus-within) .ssh-promise-in{transform:scale(1.015);}
}
@media (hover: hover){
@container ssh (min-width: 860px){
.cf-split-statement-hero .ssh-grid:not(.is-solo):has(.ssh-promise:hover) .ssh-plane{transform:scaleX(1.04);}
.cf-split-statement-hero .ssh-grid:not(.is-solo):has(.ssh-promise:hover) .ssh-problem-in{transform:scale(.97);}
.cf-split-statement-hero .ssh-grid:not(.is-solo):has(.ssh-promise:hover) .ssh-promise-in{transform:scale(1.015);}
}
}
}
@media (prefers-reduced-motion: reduce){
.cf-split-statement-hero .ssh-rise,.cf-split-statement-hero .ssh-runner{animation:none;}
.cf-split-statement-hero .ssh-runner{transform:translateY(140%);}
.cf-split-statement-hero .ssh-plane,.cf-split-statement-hero .ssh-problem-in,.cf-split-statement-hero .ssh-promise-in,.cf-split-statement-hero .ssh-btn,.cf-split-statement-hero .ssh-input{transition:none;}
.cf-split-statement-hero .ssh-btn:hover:not(:disabled):not([aria-disabled="true"]),.cf-split-statement-hero .ssh-btn.is-hover{transform:none;}
}
`;
pieces/hero/split-statement-hero/specimen.tsx 41 lines
import { SplitStatementHero } from "../split-statement-hero";
import type { SplitStatementHeroProps } from "../split-statement-hero";
import defaults from "../../studio-defaults.json";
import calendar from "../../fx/spots/calendar";
import clock from "../../fx/spots/clock";
import savings from "../../fx/spots/savings";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function SplitStatementHeroSpecimen({ state = "default" }: { state?: string }) {
return (
<SplitStatementHero
state={state as SplitStatementHeroProps["state"]}
problem="Your calendar is full of no-shows."
problemDetail="Every empty wheel is an hour, a teacher and a firing you already paid for."
headline="Turn every booking into a student who actually shows up"
highlight="actually shows up"
lead="Kiln & Co. takes a deposit the moment a student books, sends every reminder for you and offers cancelled slots to your waitlist."
label="Add To Cart"
price={defaults.sample.price}
buttonNote="{price}/month · 30-day guarantee"
fields={[
{
name: "email",
label: "Studio email",
type: "email",
autoComplete: "email",
placeholder: "you@yourstudio.com",
},
]}
onSubmit={() => {}}
proofQuote="Saturday no-shows on our wheel classes dropped to almost none."
proofName="Mara T., Clayhouse Studio, Portland"
points={[
{ title: "Deposits taken at booking", spot: savings },
{ title: "Reminders that send themselves", spot: clock },
{ title: "Your waitlist fills every gap", spot: calendar },
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
problem OptionalSplitStatementHero |
string |
|
problemDetail OptionalSplitStatementHero |
string |
|
problemImage OptionalSplitStatementHero |
string |
|
headline OptionalSplitStatementHero |
string |
|
highlight OptionalSplitStatementHero |
string |
|
lead OptionalSplitStatementHero |
string |
|
label OptionalSplitStatementHero |
string |
|
price OptionalSplitStatementHero |
string |
|
buttonNote OptionalSplitStatementHero |
string |
|
href OptionalSplitStatementHero |
string |
|
onAction OptionalSplitStatementHero |
() => void |
|
fields OptionalSplitStatementHero |
SplitStatementHeroField[] |
|
onSubmit OptionalSplitStatementHero |
(values: Record<string, string>) => void |
|
proofQuote OptionalSplitStatementHero |
string |
|
proofName OptionalSplitStatementHero |
string |
|
points OptionalSplitStatementHero |
SplitStatementHeroPoint[] |
|
edge OptionalSplitStatementHero |
boolean |
|
edgeTone OptionalSplitStatementHero |
EdgeTone |
|
disabled OptionalSplitStatementHero |
boolean |
|
state OptionalSplitStatementHero |
"default" | "hover" | "active" | "disabled" | "error" |
|
copy OptionalSplitStatementHero |
Partial<SplitStatementHeroCopy> |
|
className OptionalSplitStatementHero |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- 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.
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
87170e25e6a4d825.webp
image/webp · 18.7 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
bc3d360c88eeac0e.webp
image/webp · 23.9 KB
-
c8cba8e5f188490f.webp
image/webp · 35.9 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d7814fce240ddf0e.webp
image/webp · 17.6 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB