Saas Trial Hero 4
Founder-led software trial hero: one huge line in the founder's own words beside their cut-out on a colour block,
Use it in a prompt
Use hero/saas-trial-hero-4 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/saas-trial-hero-4.tsx. - Import it and pass your copy and images (Props tab):
import { SaasTrialHero4 } from "@/components/funneldna/hero/saas-trial-hero-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/saas-trial-hero-4/component.tsx 424 lines
// layout: quote-led
// Founder-led software trial hero: one huge line in the founder's own words beside their cut-out on a colour block,
// the wall they hit doing the job, then a trial form that opens from email to email + first name on focus.
import * as React from "react";
import { AlertCircle, Check } from "lucide-react";
export type SaasTrialHero4Props = {
/** The founder's one line, set as the page's h1 inside quote marks. */
quote?: string;
/** Phrase inside the quote swiped with the marker highlight. */
highlight?: string;
/** Founder name shown with the portrait (or under the quote without one). Hidden when empty. */
founderName?: string;
/** Short role line under the name, e.g. "Therapist · Founder of Calmnote". Hidden when empty. */
founderRole?: string;
/** Two-sentence story under the quote: the wall the founder hit before building it. */
story?: React.ReactNode;
/** Founder cut-out on a transparent background (slot "presenter-cutout"). Without it the quote runs full width. */
presenterCutoutImage?: string;
/** Alt text for the portrait; defaults to the founder name. */
presenterAlt?: string;
/** Label over the email field (step one). */
emailLabel?: string;
emailPlaceholder?: string;
/** Label over the first-name field that opens once the email field is focused. */
nameLabel?: string;
namePlaceholder?: string;
/** One-line trial button label. */
buttonLabel?: string;
/** Bold price line under the button, e.g. "Free for 14 days, then $29 a month". Hidden when empty. */
priceLine?: string;
/** Supplied per-day breakdown under the price line. Hidden when empty. */
priceBreakdown?: string;
/** Optional product screenshot under the form (slot "product"). */
productImage?: string;
/** Alt text for the product screenshot. */
productAlt?: string;
/** Caption beside the screenshot. Hidden when empty. */
productCaption?: string;
/** Validation messages and the screen-reader hint for the waiting button. */
copy?: {
emailRequired?: string;
emailInvalid?: string;
nameRequired?: string;
incomplete?: string;
};
/** Called with the validated values. */
onSubmit?: (values: { email: string; name: string }) => void;
/** Called after a valid submit. */
onAction?: () => void;
state?: "default" | "hover" | "active" | "disabled" | "error";
className?: string;
};
export function SaasTrialHero4(props: SaasTrialHero4Props) {
const {
quote = DEFAULT_QUOTE,
highlight = "a clear plan",
founderName = "",
founderRole = "",
story = DEFAULT_STORY,
presenterCutoutImage = "",
presenterAlt = "",
emailLabel = "Your best email",
emailPlaceholder = "you@example.com",
nameLabel = "Your first name",
namePlaceholder = "Jordan",
buttonLabel = "Yes! Start my free trial",
priceLine = "",
priceBreakdown = "",
productImage = "",
productAlt = "Product screenshot",
productCaption = "",
copy,
onSubmit,
onAction,
state = "default",
className,
} = props;
const msg = {
emailRequired: copy?.emailRequired ?? "Enter your email so we can set up your trial.",
emailInvalid: copy?.emailInvalid ?? "That email looks off. Check it and try again.",
nameRequired: copy?.nameRequired ?? "Add your first name to finish setting up your trial.",
incomplete: copy?.incomplete ?? "Add your email and first name to start your trial.",
};
const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, "");
const id = (part: string) => `sth4-${uid}-${part}`;
const hasArt = Boolean(presenterCutoutImage);
const hardDisabled = state === "disabled";
const [email, setEmail] = React.useState("");
const [firstName, setFirstName] = React.useState("");
const [open, setOpen] = React.useState(state === "error" || state === "disabled");
const [submitted, setSubmitted] = React.useState(state === "error");
const [touched, setTouched] = React.useState({ email: false, name: false });
const dirty = React.useRef({ email: false, name: false });
const emailRef = React.useRef<HTMLInputElement>(null);
const nameRef = React.useRef<HTMLInputElement>(null);
React.useEffect(() => {
setOpen(state === "error" || state === "disabled");
setSubmitted(state === "error");
setTouched({ email: false, name: false });
dirty.current = { email: false, name: false };
}, [state]);
const emailValue = email.trim();
const nameValue = firstName.trim();
const emailProblem = !emailValue ? msg.emailRequired : EMAIL_RE.test(emailValue) ? "" : msg.emailInvalid;
const nameProblem = nameValue ? "" : msg.nameRequired;
const emailError = touched.email || submitted ? emailProblem : "";
const nameError = open && (touched.name || submitted) ? nameProblem : "";
const ready = !emailProblem && !nameProblem;
const waiting = hardDisabled || (open && !ready);
const forced = state === "hover" ? "is-hover" : state === "active" ? "is-active" : "";
const focusSoon = (ref: { current: HTMLInputElement | null }) => {
if (typeof window === "undefined") return;
window.requestAnimationFrame(() => ref.current?.focus());
};
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
if (hardDisabled) return;
if (!open) {
setOpen(true);
if (!emailProblem) {
focusSoon(nameRef);
return;
}
}
if (!ready) {
setSubmitted(true);
focusSoon(emailProblem ? emailRef : nameRef);
return;
}
onSubmit?.({ email: emailValue, name: nameValue });
onAction?.();
};
// Enter in the email field moves on to the first-name field instead of submitting a half-filled form.
const handleEmailKey = (event: React.KeyboardEvent<HTMLInputElement>) => {
if (event.key !== "Enter" || nameValue) return;
event.preventDefault();
setOpen(true);
if (emailProblem) {
setTouched((t) => ({ ...t, email: true }));
return;
}
focusSoon(nameRef);
};
const byline =
founderName || founderRole ? (
<>
{founderName ? <span className="sth4-name">{founderName}</span> : null}
{founderRole ? <span className="sth4-role">{founderRole}</span> : null}
</>
) : null;
return (
<section
className={["cf-saas-trial-hero-4", hasArt ? "has-art" : "", className].filter(Boolean).join(" ")}
aria-labelledby={id("title")}
>
<style>{CSS}</style>
<div className="sth4-wrap">
{hasArt ? (
<figure className="sth4-art">
{byline ? <figcaption className="sth4-byline">{byline}</figcaption> : null}
<img
className="sth4-portrait"
src={presenterCutoutImage}
alt={presenterAlt || founderName || "Founder portrait"}
width={600}
height={600}
decoding="async"
/>
</figure>
) : null}
<div className="sth4-copy">
<h1 id={id("title")} className="sth4-quote">
<QuoteText quote={quote} highlight={highlight} />
</h1>
{!hasArt && byline ? (
<p className="sth4-attrib">
{founderName ? <strong>{founderName}</strong> : null}
{founderName && founderRole ? " · " : null}
{founderRole}
</p>
) : null}
{story ? <p className="sth4-story">{story}</p> : null}
<form className="sth4-form" noValidate onSubmit={handleSubmit}>
<div className="sth4-field">
<label className="sth4-label" htmlFor={id("email")}>
{emailLabel}
</label>
<div className="sth4-control">
<input
ref={emailRef}
id={id("email")}
className="sth4-input"
type="email"
name="email"
inputMode="email"
autoComplete="email"
placeholder={emailPlaceholder}
value={email}
required
aria-required="true"
aria-invalid={emailError ? true : undefined}
aria-describedby={emailError ? id("email-error") : undefined}
onFocus={() => setOpen(true)}
onChange={(event) => {
dirty.current.email = true;
setEmail(event.target.value);
if (!open) setOpen(true);
}}
onBlur={() => {
if (dirty.current.email) setTouched((t) => (t.email ? t : { ...t, email: true }));
}}
onKeyDown={handleEmailKey}
/>
{!emailProblem ? (
<span className="sth4-ok" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
) : null}
</div>
{emailError ? (
<p id={id("email-error")} className="sth4-err" role="alert">
<AlertCircle size={16} strokeWidth={2.5} aria-hidden="true" />
{emailError}
</p>
) : null}
</div>
<div className="sth4-reveal" data-open={open ? "true" : "false"}>
<div className="sth4-reveal-clip">
<div className="sth4-reveal-pad">
<label className="sth4-label" htmlFor={id("name")}>
{nameLabel}
</label>
<div className="sth4-control">
<input
ref={nameRef}
id={id("name")}
className="sth4-input"
type="text"
name="name"
autoComplete="given-name"
placeholder={namePlaceholder}
value={firstName}
required
aria-required="true"
aria-invalid={nameError ? true : undefined}
aria-describedby={nameError ? id("name-error") : undefined}
onChange={(event) => {
dirty.current.name = true;
setFirstName(event.target.value);
}}
onBlur={() => {
if (dirty.current.name) setTouched((t) => (t.name ? t : { ...t, name: true }));
}}
/>
{open && !nameProblem ? (
<span className="sth4-ok" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
) : null}
</div>
{nameError ? (
<p id={id("name-error")} className="sth4-err" role="alert">
<AlertCircle size={16} strokeWidth={2.5} aria-hidden="true" />
{nameError}
</p>
) : null}
</div>
</div>
</div>
<button
type="submit"
className={["sth4-btn", forced, waiting ? "is-waiting" : ""].filter(Boolean).join(" ")}
disabled={hardDisabled}
aria-disabled={waiting && !hardDisabled ? true : undefined}
aria-describedby={waiting ? id("hint") : undefined}
>
{buttonLabel}
</button>
<span id={id("hint")} className="sth4-sr">
{msg.incomplete}
</span>
{priceLine || priceBreakdown ? (
<p className="sth4-terms">
{priceLine ? <span className="sth4-price">{priceLine}</span> : null}
{priceBreakdown ? <span className="sth4-per">{priceBreakdown}</span> : null}
</p>
) : null}
</form>
{productImage ? (
<figure className={productCaption ? "sth4-peek" : "sth4-peek is-solo"}>
<img src={productImage} alt={productAlt} width={640} height={400} loading="lazy" decoding="async" />
{productCaption ? <figcaption>{productCaption}</figcaption> : null}
</figure>
) : null}
</div>
</div>
</section>
);
}
export default SaasTrialHero4;
const DEFAULT_QUOTE = "I built this so your first funnel starts with a clear plan.";
const DEFAULT_STORY =
"Every funnel I built started with the same blank page. So I put the plan, the page copy and the launch checks in one place for you.";
const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
function QuoteText({ quote, highlight }: { quote: string; highlight?: string }) {
const hl = highlight ?? "";
const at = hl ? quote.indexOf(hl) : -1;
const body =
at < 0 ? (
quote
) : (
<>
{quote.slice(0, at)}
<mark className="sth4-mark">{hl}</mark>
{quote.slice(at + hl.length)}
</>
);
return (
<>
<span className="sth4-q sth4-q-open" aria-hidden="true">
“
</span>
{body}
<span className="sth4-q" aria-hidden="true">
”
</span>
</>
);
}
const R = ".cf-saas-trial-hero-4";
const CSS = `
${R}{--sth4-pad-t:clamp(56px,8vw,112px);--sth4-pad-b:clamp(64px,8.5vw,120px);--sth4-gutter:clamp(16px,5vw,48px);--sth4-block-in:clamp(20px,3vw,40px);--sth4-marker:var(--marker,#fae37c);--sth4-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;isolation:isolate;overflow:hidden;background:var(--surface);color:var(--ink);font-family:var(--font-body)}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} .sth4-wrap{max-width:1280px;margin-inline:auto;padding-inline:var(--sth4-gutter);display:grid;grid-template-columns:minmax(0,1fr)}
${R}.has-art .sth4-wrap{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);column-gap:clamp(32px,5vw,72px)}
${R} .sth4-copy{grid-column:1;grid-row:1;min-width:0;position:relative;z-index:2;padding-block:var(--sth4-pad-t) var(--sth4-pad-b)}
${R} .sth4-art{grid-column:2;grid-row:1;position:relative;z-index:1;margin:0 0 0 var(--sth4-block-in);min-width:0;container-type:inline-size;display:flex;flex-direction:column;justify-content:flex-start;gap:24px;padding-top:var(--sth4-pad-t);background:var(--band);color:var(--band-ink);overflow-y:clip}
${R} .sth4-art::after{content:'';position:absolute;top:0;bottom:0;left:100%;width:100vw;background:var(--band);pointer-events:none}
${R} .sth4-byline{position:relative;z-index:1;margin:0;padding-inline:clamp(20px,2.5vw,32px) 16px;color:var(--band-ink)}
${R} .sth4-name{display:block;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;text-wrap:balance}
${R} .sth4-role{display:block;margin-top:4px;font-size:0.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
${R} .sth4-portrait{position:relative;z-index:1;display:block;flex:none;width:min(160cqw,720px);max-width:none;height:auto;aspect-ratio:1/1;object-fit:contain;object-position:50% 100%;margin-top:auto;margin-inline-start:calc(50cqw - min(160cqw,720px) * 0.44);filter:drop-shadow(0 2px 3px oklch(from var(--sth4-shadow) l c h / 0.3)) drop-shadow(0 14px 18px oklch(from var(--sth4-shadow) l c h / 0.22));animation:sth4-rise .45s cubic-bezier(.2,.7,.2,1) .14s both}
${R} .sth4-quote{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(2.5rem,5.4vw,4.875rem);line-height:1.04;color:var(--ink);text-wrap:balance}
${R} .sth4-q{color:var(--accent)}
${R} .sth4-mark{color:inherit;background:linear-gradient(to bottom,transparent 38%,var(--sth4-marker) 38%,var(--sth4-marker) 94%,transparent 94%);border-radius:0.18em 0.5em 0.3em 0.55em / 0.5em 0.3em 0.55em 0.35em;padding:0 0.06em;margin:0 -0.03em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
${R} .sth4-attrib{margin:16px 0 0;font-size:0.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
${R} .sth4-attrib strong{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;color:var(--ink)}
${R} .sth4-story{margin:24px 0 0;max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;color:var(--ink);text-wrap:pretty}
${R} .sth4-story strong{font-weight:700}
${R} .sth4-form{margin:32px 0 0;max-width:34rem;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg));padding:clamp(20px,2.4vw,28px);transition:border-color .16s ease}
${R} .sth4-form:focus-within{border-color:color-mix(in oklch,var(--accent) 45%,var(--card))}
${R} .sth4-label{display:block;margin:0 0 8px;font-size:1rem;font-weight:700;line-height:1.25;color:var(--label-ink,var(--ink))}
${R} .sth4-control{position:relative}
${R} .sth4-input{display:block;width:100%;height:56px;margin:0;padding:0 52px 0 16px;font-family:var(--font-body);font-size:1.0625rem;font-weight:500;line-height:1.2;color:var(--field-ink);background:var(--field);border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));box-shadow:inset 0 1px 2px oklch(from var(--sth4-shadow) l c h / 0.08);-webkit-appearance:none;appearance:none;transition:border-color .16s ease,box-shadow .16s ease}
${R} .sth4-input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
${R} .sth4-input:hover{border-color:color-mix(in oklch,var(--ink) 40%,transparent)}
${R} .sth4-input:focus{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)}
${R} .sth4-input[aria-invalid='true']{border-color:var(--danger)}
${R} .sth4-input[aria-invalid='true']:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3)}
${R} .sth4-ok{position:absolute;top:50%;right:16px;width:24px;height:24px;margin-top:-12px;display:grid;place-items:center;border-radius:999px;background:var(--success);color:var(--success-ink,#fff);pointer-events:none;animation:sth4-pop .3s cubic-bezier(.2,.7,.2,1) both}
${R} .sth4-err{margin:8px 0 0;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--danger);text-wrap:pretty}
${R} .sth4-err svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
${R} .sth4-reveal{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .34s cubic-bezier(.2,.7,.2,1),visibility 0s linear .34s}
${R} .sth4-reveal[data-open='true']{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .34s cubic-bezier(.2,.7,.2,1),visibility 0s linear 0s}
${R} .sth4-reveal-clip{min-height:0;overflow:hidden;margin-inline:-4px}
${R} .sth4-reveal-pad{padding:16px 4px 4px;opacity:0;transform:translateY(-6px);transition:opacity .24s ease,transform .34s cubic-bezier(.2,.7,.2,1)}
${R} .sth4-reveal[data-open='true'] .sth4-reveal-pad{opacity:1;transform:none}
${R} .sth4-btn{--sth4-bg:var(--button-bg,var(--cta));--sth4-bg2:var(--button-bg-2,var(--cta-2));display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;margin:20px 0 0;padding:12px 28px;border:1px solid transparent;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15;text-transform:var(--button-case,none);text-align:center;text-wrap:balance;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--sth4-bg) calc(l + 0.04) c h),oklch(from var(--sth4-bg2) calc(l - 0.02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--sth4-bg) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--sth4-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--sth4-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--sth4-shadow) l c h / 0.45));cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease}
${R} .sth4-btn:not(.is-waiting):hover,${R} .sth4-btn.is-hover{background:linear-gradient(oklch(from var(--sth4-bg) calc(l - 0.01) c h),oklch(from var(--sth4-bg2) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--sth4-bg) calc(l + 0.12) c h / 0.6),inset 0 -3px 0 oklch(from var(--sth4-bg) calc(l - 0.2) c h),0 2px 3px oklch(from var(--sth4-shadow) l c h / 0.32),0 12px 20px -8px oklch(from var(--sth4-shadow) l c h / 0.5)}
${R} .sth4-btn:not(.is-waiting):active,${R} .sth4-btn.is-active{background:linear-gradient(oklch(from var(--sth4-bg) calc(l - 0.04) c h),oklch(from var(--sth4-bg2) calc(l - 0.08) c h));transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--sth4-bg) calc(l - 0.22) c h / 0.45),inset 0 -2px 0 oklch(from var(--sth4-bg) calc(l - 0.16) c h),0 1px 1px oklch(from var(--sth4-shadow) l c h / 0.3)}
${R} .sth4-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
${R} .sth4-btn.is-waiting,${R} .sth4-btn:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));border-color:var(--button-2-border,transparent);text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));transform:none;cursor:not-allowed}
${R} .sth4-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
${R} .sth4-terms{margin:14px 0 0;text-align:center}
${R} .sth4-price{display:block;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.4;color:var(--ink);text-wrap:balance}
${R} .sth4-per{display:block;margin-top:2px;font-size:0.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:balance}
${R} .sth4-peek{margin:32px 0 0;max-width:34rem;display:grid;grid-template-columns:clamp(140px,16vw,216px) minmax(0,1fr);gap:16px;align-items:start}
${R} .sth4-peek.is-solo{grid-template-columns:minmax(0,22rem)}
${R} .sth4-peek img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:50% 0;border-radius:8px;filter:drop-shadow(0 1px 2px oklch(from var(--sth4-shadow) l c h / 0.28)) drop-shadow(0 8px 12px oklch(from var(--sth4-shadow) l c h / 0.18))}
${R} .sth4-peek figcaption{padding-top:2px;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--ink);text-wrap:pretty}
${R} .sth4-copy>*{animation:sth4-rise .45s cubic-bezier(.2,.7,.2,1) both}
${R} .sth4-copy>:nth-child(2){animation-delay:.07s}
${R} .sth4-copy>:nth-child(3){animation-delay:.14s}
${R} .sth4-copy>:nth-child(4){animation-delay:.21s}
${R} .sth4-copy>:nth-child(5){animation-delay:.28s}
@keyframes sth4-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes sth4-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@media (min-width:861px){${R} .sth4-q-open{margin-inline-start:-0.42em}}
@media (max-width:860px){
${R}.has-art .sth4-wrap{grid-template-columns:minmax(0,1fr)}
${R} .sth4-art{grid-column:1;grid-row:1;container-type:normal;flex-direction:row;align-items:flex-end;justify-content:flex-start;gap:16px;margin:0 calc(-1 * var(--sth4-gutter));padding:20px var(--sth4-gutter) 0}
${R} .sth4-art::after{display:none}
${R} .sth4-portrait{order:-1;width:clamp(128px,38vw,168px);margin:0}
${R} .sth4-byline{flex:1 1 auto;min-width:0;padding:0 0 20px}
${R}.has-art .sth4-copy{grid-row:2;padding-top:32px}
}
@media (max-width:480px){${R} .sth4-btn{padding-inline:16px}${R} .sth4-peek{grid-template-columns:112px minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){${R} *,${R} *::before,${R} *::after{animation:none!important;transition:none!important}}
`;
pieces/hero/saas-trial-hero-4/specimen.tsx 43 lines
import __studioImage95f092b8 from "../assets/c295089ab597a46a.webp";
import __studioImage3afa657c from "../assets/ae9a98dab7102bd3.webp";
import * as React from "react";
import { SaasTrialHero4 } from "../saas-trial-hero-4";
import { slot } from "../../slots";
const founderCutout = __studioImage95f092b8;
const notesScreen = __studioImage3afa657c;
export const states = ["default", "hover", "active", "disabled", "error"];
type SpecimenState = "default" | "hover" | "active" | "disabled" | "error";
export default function SaasTrialHero4Specimen({ state = "default" }: { state?: SpecimenState }) {
return (
<SaasTrialHero4
state={state}
quote="No therapist should be finishing session notes at midnight."
highlight="at midnight"
founderName="Dr. Maya Okafor"
founderRole="Licensed therapist · Founder of Calmnote"
story={
<>
<strong>For nine years I finished my notes in the car, then again after my kids were asleep.</strong> Calmnote
drafts the full progress note from the few lines you jot after each session.
</>
}
presenterCutoutImage={slot("presenter-cutout", founderCutout)}
presenterAlt="Dr. Maya Okafor, founder of Calmnote"
emailLabel="Your practice email"
emailPlaceholder="you@yourpractice.com"
nameLabel="Your first name"
namePlaceholder="Jordan"
buttonLabel="Yes! Try Calmnote free"
priceLine="Free for 14 days, then $29 a month"
priceBreakdown="That's less than $1 a day. Cancel anytime before day 14."
productImage={slot("product", notesScreen)}
productAlt="Calmnote session notes screen with a drafted progress note"
productCaption="Jot three lines after a session. Calmnote turns them into a finished progress note."
/>
);
}
| Name | Type | Details |
|---|---|---|
quote OptionalSaasTrialHero4 |
string |
|
highlight OptionalSaasTrialHero4 |
string |
|
founderName OptionalSaasTrialHero4 |
string |
|
founderRole OptionalSaasTrialHero4 |
string |
|
story OptionalSaasTrialHero4 |
React.ReactNode |
|
presenterCutoutImage OptionalSaasTrialHero4 |
string |
|
presenterAlt OptionalSaasTrialHero4 |
string |
|
emailLabel OptionalSaasTrialHero4 |
string |
|
emailPlaceholder OptionalSaasTrialHero4 |
string |
|
nameLabel OptionalSaasTrialHero4 |
string |
|
namePlaceholder OptionalSaasTrialHero4 |
string |
|
buttonLabel OptionalSaasTrialHero4 |
string |
|
priceLine OptionalSaasTrialHero4 |
string |
|
priceBreakdown OptionalSaasTrialHero4 |
string |
|
productImage OptionalSaasTrialHero4 |
string |
|
productAlt OptionalSaasTrialHero4 |
string |
|
productCaption OptionalSaasTrialHero4 |
string |
|
copy OptionalSaasTrialHero4 |
{
emailRequired?: string;
emailInvalid?: string;
nameRequired?: string;
incomplete?: string;
} |
|
onSubmit OptionalSaasTrialHero4 |
(values: { email: string; name: string }) => void |
|
onAction OptionalSaasTrialHero4 |
() => void |
|
state OptionalSaasTrialHero4 |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalSaasTrialHero4 |
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--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.
presenter-cutout- The presenter on a transparent background.
product- The main product shot or cover (ebook, kit, bottle).
-
ae9a98dab7102bd3.webp
image/webp · 42.6 KB
-
c295089ab597a46a.webp
image/webp · 122 KB