Saas Trial Hero 3
Software trial hero on a dark stage. A huge outcome headline and the inline email + trial button sit above a window-framed product demo, and its tabs show how little work the trial takes.
Use it in a prompt
Use hero/saas-trial-hero-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { SaasTrialHero3 } from "@/components/funneldna/hero/saas-trial-hero-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/saas-trial-hero-3/component.tsx 697 lines
// layout: classic-centred-stack
// Software trial hero on a dark stage. A huge outcome headline and the inline email + trial button sit above a window-framed product demo, and its tabs show how little work the trial takes.
import * as React from 'react';
import { AlertCircle, Lock } from 'lucide-react';
import { Backdrop, FX_HOST } from '../fx/fx';
import studio from '../fx/backdrops/studio';
export type SaasTrialHero3Step = {
/** Tab label, one or two words (e.g. 'Clip'). */
label: string;
/** One-line caption shown under the window while this tab is selected. */
caption: string;
/** Screenshot for this step (slots 'screenshot-1' to 'screenshot-3'). Steps without one are left out of the demo. */
image?: string;
/** Alt text for the screenshot. */
imageAlt?: string;
};
export type SaasTrialHero3Props = {
/** Outcome headline (the page's h1). */
headline?: string;
/** Phrase inside the headline, set in a light accent tone. */
highlight?: string;
/** One-line deck under the headline. */
deck?: string;
/** Italic aside in the founder's voice, after the deck. Hidden when empty. */
aside?: string;
/** Visible label above the email field. */
emailLabel?: string;
/** Example answer shown in the empty email field. */
emailPlaceholder?: string;
/** Trial button label: name the outcome. */
buttonLabel?: string;
/** Trial terms line under the form. Shown only when supplied. */
terms?: string;
/** Privacy line under the form. Hidden when empty. */
note?: string;
/** Short line above the demo window. It also names the tab list. */
demoLabel?: string;
/** Demo steps, one tab each. */
steps?: SaasTrialHero3Step[];
/** Text at the right of the window bar (e.g. the app address). Hidden when empty and on phones. */
frameLabel?: string;
/** Stage photo (an fx backdrop module). A page scene image replaces it. Set it empty for a flat band. */
backdrop?: string;
/** Generated copy. stepOf uses the placeholders {n} and {total}. */
copy?: { required?: string; invalid?: string; stepOf?: string; tabsLabel?: string };
/** Called with the validated email. */
onSubmit?: (values: { email: string }) => void;
/** Called after a valid submit. */
onAction?: () => void;
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error';
className?: string;
};
const DEFAULT_STEPS: SaasTrialHero3Step[] = [
{ label: 'Plan', caption: 'Map your offer and the pages your funnel needs.' },
{ label: 'Write', caption: 'Draft your headline, offer and call to action.' },
{ label: 'Check', caption: 'Review the links, forms and next steps before launch.' },
];
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
export function SaasTrialHero3(props: SaasTrialHero3Props) {
const {
headline = 'Build your first funnel with a clear plan',
highlight = 'a clear plan',
deck = 'Start your trial and plan your funnel, write your page copy and check every step before you launch.',
aside = '',
emailLabel = 'Your email address',
emailPlaceholder = 'you@example.com',
buttonLabel = 'Start my trial',
terms = '',
note = '',
demoLabel = 'See the whole job, step by step',
steps = DEFAULT_STEPS,
frameLabel = '',
backdrop = studio,
copy,
onSubmit,
onAction,
state = 'default',
className,
} = props;
const msgRequired = copy?.required ?? 'Enter your email so we can set up your trial.';
const msgInvalid = copy?.invalid ?? 'That email looks off. Check it and try again.';
const stepOf = copy?.stepOf ?? 'Step {n} of {total}.';
const tabsLabel = copy?.tabsLabel ?? 'Product demo steps';
const disabled = state === 'disabled';
const forced = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-active' : '';
const base = `sth3-${React.useId().replace(/[^a-zA-Z0-9_-]/g, '')}`;
const ids = {
title: `${base}-title`,
email: `${base}-email`,
error: `${base}-error`,
label: `${base}-label`,
caption: `${base}-caption`,
};
const [email, setEmail] = React.useState('');
const [touched, setTouched] = React.useState(false);
const [error, setError] = React.useState(state === 'error' ? msgRequired : '');
React.useEffect(() => {
setError(state === 'error' ? msgRequired : '');
}, [state, msgRequired]);
const inputRef = React.useRef<HTMLInputElement>(null);
const validate = (value: string) => {
const v = value.trim();
if (!v) return msgRequired;
if (!EMAIL.test(v)) return msgInvalid;
return '';
};
const demo = steps.filter((s) => !!s.image);
const [active, setActive] = React.useState(0);
const current = Math.min(active, Math.max(demo.length - 1, 0));
const tabRefs = React.useRef<Array<HTMLButtonElement | null>>([]);
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const value = event.target.value;
setEmail(value);
setTouched(true);
if (error) setError(validate(value));
};
const handleBlur = () => {
if (touched) setError(validate(email));
};
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
if (disabled) return;
const message = validate(email);
setTouched(true);
setError(message);
if (message) {
inputRef.current?.focus();
return;
}
onSubmit?.({ email: email.trim() });
onAction?.();
};
const onTabKey = (event: React.KeyboardEvent<HTMLDivElement>) => {
const n = demo.length;
if (!n) return;
let next = -1;
if (event.key === 'ArrowRight') next = (current + 1) % n;
else if (event.key === 'ArrowLeft') next = (current - 1 + n) % n;
else if (event.key === 'Home') next = 0;
else if (event.key === 'End') next = n - 1;
if (next < 0) return;
event.preventDefault();
setActive(next);
tabRefs.current[next]?.focus();
};
const stepText = stepOf.replace('{n}', String(current + 1)).replace('{total}', String(demo.length));
return (
<section
className={`cf-saas-trial-hero-3${className ? ` ${className}` : ''}`}
style={FX_HOST}
aria-labelledby={ids.title}
>
{backdrop ? <Backdrop src={backdrop} treatment='scrim-dark' /> : null}
<style>{CSS}</style>
<div className='sth3-inner'>
<div className='sth3-copy'>
<h1 id={ids.title} className='sth3-h1 sth3-rise'>
{renderHeadline(headline, highlight)}
</h1>
{deck || aside ? (
<p className='sth3-lead sth3-rise' style={{ '--d': '.07s' } as React.CSSProperties}>
{deck}
{deck && aside ? ' ' : ''}
{aside ? <em className='sth3-aside'>{aside}</em> : null}
</p>
) : null}
</div>
<form
className='sth3-form sth3-rise'
style={{ '--d': '.14s' } as React.CSSProperties}
noValidate
onSubmit={handleSubmit}
>
<label htmlFor={ids.email} className='sth3-label'>
{emailLabel}
</label>
<div className='sth3-row'>
<input
ref={inputRef}
id={ids.email}
className='sth3-input'
type='email'
name='email'
inputMode='email'
autoComplete='email'
placeholder={emailPlaceholder}
value={email}
onChange={handleChange}
onBlur={handleBlur}
disabled={disabled}
aria-invalid={error ? true : undefined}
aria-describedby={error ? ids.error : undefined}
/>
<button type='submit' className={`sth3-btn${forced}`} disabled={disabled}>
{buttonLabel}
</button>
</div>
{error ? (
<p id={ids.error} className='sth3-error' role='alert'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden className='sth3-ico' />
{error}
</p>
) : null}
{terms ? <p className='sth3-terms'>{terms}</p> : null}
{note ? (
<p className='sth3-note'>
<Lock size={16} strokeWidth={2.5} aria-hidden className='sth3-ico' />
{note}
</p>
) : null}
</form>
{demo.length ? (
<div className='sth3-demo sth3-rise' style={{ '--d': '.21s' } as React.CSSProperties}>
{demoLabel ? (
<p id={ids.label} className='sth3-demo-label'>
{demoLabel}
</p>
) : null}
<div className='sth3-window'>
<div className='sth3-chrome'>
<span className='sth3-dots' aria-hidden>
<span />
<span />
<span />
</span>
<div
role='tablist'
className='sth3-tabs'
aria-labelledby={demoLabel ? ids.label : undefined}
aria-label={demoLabel ? undefined : tabsLabel}
onKeyDown={onTabKey}
>
{demo.map((s, i) => (
<button
key={`${s.label}-${i}`}
ref={(el) => {
tabRefs.current[i] = el;
}}
type='button'
role='tab'
id={`${base}-tab-${i}`}
aria-selected={i === current}
aria-controls={`${base}-panel-${i}`}
tabIndex={i === current ? 0 : -1}
className='sth3-tab'
onClick={() => setActive(i)}
>
<span className='sth3-tab-num'>{i + 1}</span>
<span>{s.label}</span>
</button>
))}
</div>
{frameLabel ? <span className='sth3-url'>{frameLabel}</span> : null}
</div>
<div className='sth3-screen'>
{demo.map((s, i) => (
<div
key={`${s.label}-panel-${i}`}
role='tabpanel'
id={`${base}-panel-${i}`}
aria-labelledby={`${base}-tab-${i}`}
aria-describedby={i === current ? ids.caption : undefined}
tabIndex={i === current ? 0 : -1}
className='sth3-panel'
data-active={i === current ? 'true' : 'false'}
>
<img src={s.image} alt={s.imageAlt ?? s.label} width={1600} height={1000} decoding='async' />
</div>
))}
</div>
</div>
<p id={ids.caption} className='sth3-caption' aria-live='polite'>
<strong>{stepText}</strong> {demo[current].caption}
</p>
</div>
) : null}
</div>
</section>
);
}
export default SaasTrialHero3;
function renderHeadline(text: string, phrase: string) {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className='sth3-em'>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-saas-trial-hero-3{
--sth3-soft: color-mix(in oklch, var(--band-ink, #fff) 84%, var(--band, #17284a));
--sth3-em: color-mix(in oklab, var(--band-ink, #fff) 66%, var(--accent-fill, var(--accent, #2563c9)));
--sth3-ring: color-mix(in oklab, var(--accent-fill, var(--accent, #2563c9)) 55%, var(--band-ink, #fff));
--sth3-btn: var(--button-bg, var(--cta, #d4382c));
--sth3-btn-2: var(--button-bg-2, var(--cta-2, #b22a20));
--sth3-shadow: var(--shadow, oklch(0.22 0.03 260));
position: relative;
isolation: isolate;
overflow: hidden;
background: var(--band, #17284a);
color: var(--band-ink, #fff);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
.cf-saas-trial-hero-3 *{ box-sizing: border-box; }
.cf-saas-trial-hero-3 .sth3-inner{
position: relative;
z-index: 1;
max-width: 1120px;
margin-inline: auto;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.cf-saas-trial-hero-3 .sth3-copy{ width: 100%; max-width: 60rem; }
.cf-saas-trial-hero-3 .sth3-h1{
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(--band-ink, #fff);
text-wrap: balance;
}
.cf-saas-trial-hero-3 .sth3-em{ color: var(--sth3-em); }
.cf-saas-trial-hero-3 .sth3-lead{
margin: 24px auto 0;
max-width: 46rem;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--sth3-soft);
text-wrap: pretty;
}
.cf-saas-trial-hero-3 .sth3-aside{ font-style: italic; color: var(--band-ink, #fff); }
.cf-saas-trial-hero-3 .sth3-form{ width: 100%; max-width: 680px; margin-top: 40px; text-align: left; }
.cf-saas-trial-hero-3 .sth3-label{
display: block;
margin-bottom: 8px;
font-size: 16px;
font-weight: 700;
line-height: 1.3;
color: var(--band-ink, #fff);
}
.cf-saas-trial-hero-3 .sth3-row{
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
}
.cf-saas-trial-hero-3 .sth3-input{
width: 100%;
min-width: 0;
height: 64px;
padding: 0 20px;
font-family: var(--font-body);
font-size: 17px;
color: var(--field-ink, #101828);
background: var(--field, #fff);
border: 1px solid var(--field-border, color-mix(in oklch, var(--ink, #101828) 22%, transparent));
border-radius: var(--field-radius, var(--radius, 12px));
box-shadow: inset 0 1px 2px oklch(from var(--sth3-shadow) l c h / 0.14);
transition: border-color .16s ease, outline-color .16s ease;
}
.cf-saas-trial-hero-3 .sth3-input::placeholder{
color: color-mix(in oklch, var(--field-ink, #101828) 65%, var(--field, #fff));
opacity: 1;
}
.cf-saas-trial-hero-3 .sth3-input:focus{ outline: none; }
.cf-saas-trial-hero-3 .sth3-input:focus-visible{
outline: 3px solid var(--sth3-ring);
outline-offset: 2px;
border-color: var(--field-focus, var(--accent, #2563c9));
}
.cf-saas-trial-hero-3 .sth3-input[aria-invalid='true']{ border-color: var(--danger, #c0362c); border-width: 2px; padding-inline: 19px; }
.cf-saas-trial-hero-3 .sth3-input[aria-invalid='true']:focus-visible{
outline-color: color-mix(in oklab, var(--danger, #c0362c) 60%, var(--band-ink, #fff));
}
.cf-saas-trial-hero-3 .sth3-input:disabled{
cursor: not-allowed;
background: color-mix(in oklch, var(--ink, #101828) 6%, var(--field, #fff));
}
.cf-saas-trial-hero-3 .sth3-btn{
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 64px;
padding: 0 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);
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
line-height: 1.15;
white-space: nowrap;
color: var(--button-ink, var(--cta-ink, #fff));
text-shadow: var(--button-text-shadow, none);
background: linear-gradient(oklch(from var(--sth3-btn) calc(l + 0.04) c h), oklch(from var(--sth3-btn-2) calc(l - 0.02) c h));
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--sth3-btn) calc(l + 0.14) c h / 0.7),
inset 0 -3px 0 oklch(from var(--sth3-btn) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--sth3-shadow) l c h / 0.4),
0 8px 16px -6px oklch(from var(--sth3-shadow) l c h / 0.55));
cursor: pointer;
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-saas-trial-hero-3 .sth3-btn:hover:not(:disabled),
.cf-saas-trial-hero-3 .sth3-btn.is-hover{
background: linear-gradient(oklch(from var(--sth3-btn) calc(l - 0.01) c h), oklch(from var(--sth3-btn-2) calc(l - 0.07) c h));
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--sth3-btn) calc(l + 0.12) c h / 0.7),
inset 0 -3px 0 oklch(from var(--sth3-btn) calc(l - 0.2) c h),
0 1px 2px oklch(from var(--sth3-shadow) l c h / 0.45),
0 10px 18px -6px oklch(from var(--sth3-shadow) l c h / 0.65));
}
.cf-saas-trial-hero-3 .sth3-btn:active:not(:disabled),
.cf-saas-trial-hero-3 .sth3-btn.is-active{
transform: translateY(1px);
background: linear-gradient(oklch(from var(--sth3-btn) calc(l - 0.06) c h), oklch(from var(--sth3-btn-2) calc(l - 0.1) c h));
box-shadow:
inset 0 2px 4px oklch(from var(--sth3-btn) calc(l - 0.24) c h / 0.55),
inset 0 -2px 0 oklch(from var(--sth3-btn) calc(l - 0.18) c h),
0 1px 1px oklch(from var(--sth3-shadow) l c h / 0.4);
}
.cf-saas-trial-hero-3 .sth3-btn:focus-visible{ outline: 3px solid var(--sth3-ring); outline-offset: 3px; }
.cf-saas-trial-hero-3 .sth3-btn:disabled{
cursor: not-allowed;
background: var(--button-2-bg, var(--secondary, #e6e9ef));
color: var(--button-2-ink, var(--secondary-ink, #101828));
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 2px oklch(from var(--sth3-shadow) l c h / 0.25)));
}
.cf-saas-trial-hero-3 .sth3-ico{ display: inline-block; vertical-align: -0.15em; margin-inline-end: .4em; }
.cf-saas-trial-hero-3 .sth3-error{
display: block;
width: fit-content;
max-width: 100%;
margin: 12px 0 0;
padding: 8px 12px;
border-radius: 10px;
background: var(--danger-soft, #fbe9e7);
color: var(--danger, #c0362c);
font-size: 15px;
font-weight: 600;
line-height: 1.4;
text-wrap: pretty;
}
.cf-saas-trial-hero-3 .sth3-terms,
.cf-saas-trial-hero-3 .sth3-note{
margin: 16px 0 0;
text-align: center;
font-size: 15px;
line-height: 1.4;
font-weight: 500;
color: var(--sth3-soft);
text-wrap: pretty;
}
.cf-saas-trial-hero-3 .sth3-terms{ font-weight: 700; color: var(--band-ink, #fff); }
.cf-saas-trial-hero-3 .sth3-terms + .sth3-note{ margin-top: 4px; }
.cf-saas-trial-hero-3 .sth3-demo{ width: 100%; max-width: 1040px; margin-top: clamp(48px, 6vw, 72px); }
.cf-saas-trial-hero-3 .sth3-demo-label{
margin: 0 0 16px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 700;
line-height: 1.3;
color: var(--band-ink, #fff);
text-wrap: balance;
}
.cf-saas-trial-hero-3 .sth3-window{
text-align: left;
background: var(--card, #fff);
border: 1px solid var(--card-border, oklch(from var(--ink, #101828) l c h / 0.12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg,
0 2px 4px oklch(from var(--sth3-shadow) l c h / 0.3),
0 16px 32px -10px oklch(from var(--sth3-shadow) l c h / 0.5)));
overflow: hidden;
}
.cf-saas-trial-hero-3 .sth3-chrome{
display: flex;
align-items: flex-end;
gap: 16px;
padding: 10px 12px 0;
background: color-mix(in oklch, var(--ink, #101828) 4%, var(--card, #fff));
border-bottom: 1px solid oklch(from var(--ink, #101828) l c h / 0.12);
}
.cf-saas-trial-hero-3 .sth3-dots{ display: flex; gap: 6px; align-self: center; padding: 0 4px 10px; }
.cf-saas-trial-hero-3 .sth3-dots span{
width: 10px;
height: 10px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink, #101828) 20%, var(--card, #fff));
}
.cf-saas-trial-hero-3 .sth3-tabs{ display: flex; gap: 4px; flex: 1; min-width: 0; }
.cf-saas-trial-hero-3 .sth3-tab{
appearance: none;
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 48px;
margin: 0 0 -1px;
padding: 0 20px;
border: 1px solid transparent;
border-bottom: 0;
border-radius: 10px 10px 0 0;
background: transparent;
color: var(--ink, #101828);
font-family: var(--font-body);
font-weight: 700;
font-size: 17px;
line-height: 1.15;
cursor: pointer;
transition: background .16s ease, color .16s ease;
}
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='false']:active{
background: color-mix(in oklch, var(--ink, #101828) 8%, var(--card, #fff));
}
.cf-saas-trial-hero-3 .sth3-tab-num{ font-variant-numeric: tabular-nums; font-size: 15px; color: var(--muted, #4b5563); }
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='true']{
z-index: 1;
background: var(--card, #fff);
border-color: oklch(from var(--ink, #101828) l c h / 0.12);
}
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='true'] .sth3-tab-num{ color: var(--accent, #2563c9); }
.cf-saas-trial-hero-3 .sth3-tab:focus{ outline: none; }
.cf-saas-trial-hero-3 .sth3-tab:focus-visible{ outline: 3px solid var(--field-focus, var(--accent, #2563c9)); outline-offset: -3px; }
.cf-saas-trial-hero-3 .sth3-url{
align-self: center;
padding: 0 4px 10px;
font-size: 14px;
font-weight: 600;
color: var(--ink, #101828);
white-space: nowrap;
}
.cf-saas-trial-hero-3 .sth3-screen{
position: relative;
aspect-ratio: 16 / 10;
background: color-mix(in oklch, var(--ink, #101828) 4%, var(--card, #fff));
}
.cf-saas-trial-hero-3 .sth3-panel{
position: absolute;
inset: 0;
opacity: 0;
visibility: hidden;
transition: opacity .35s ease, visibility 0s linear .35s;
}
.cf-saas-trial-hero-3 .sth3-panel[data-active='true']{
opacity: 1;
visibility: visible;
transition: opacity .35s ease, visibility 0s;
}
.cf-saas-trial-hero-3 .sth3-panel:focus{ outline: none; }
.cf-saas-trial-hero-3 .sth3-panel:focus-visible{ outline: 3px solid var(--field-focus, var(--accent, #2563c9)); outline-offset: -3px; }
.cf-saas-trial-hero-3 .sth3-panel img{
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: top center;
}
.cf-saas-trial-hero-3 .sth3-caption{
margin: 16px auto 0;
max-width: 46rem;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--sth3-soft);
text-wrap: pretty;
}
.cf-saas-trial-hero-3 .sth3-caption strong{ color: var(--band-ink, #fff); font-weight: 800; }
.cf-saas-trial-hero-3 .sth3-rise{
animation: sth3-rise .45s cubic-bezier(.2,.7,.2,1) both;
animation-delay: var(--d, 0s);
}
@keyframes sth3-rise{
from{ opacity: .82; transform: translateY(8px); }
to{ opacity: 1; transform: none; }
}
@media (hover: hover) and (min-width: 641px){
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='false']:hover{
background: color-mix(in oklch, var(--ink, #101828) 2%, var(--card, #fff));
}
}
@media (max-width: 640px){
.cf-saas-trial-hero-3 .sth3-lead{ margin-top: 16px; }
.cf-saas-trial-hero-3 .sth3-form{ margin-top: 24px; }
.cf-saas-trial-hero-3 .sth3-row{ grid-template-columns: minmax(0, 1fr); }
.cf-saas-trial-hero-3 .sth3-btn{ width: 100%; white-space: normal; text-wrap: balance; text-align: center; }
.cf-saas-trial-hero-3 .sth3-window{
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
overflow: visible;
}
.cf-saas-trial-hero-3 .sth3-chrome{
display: block;
margin: 0 0 12px;
padding: 0;
background: transparent;
border: 0;
}
.cf-saas-trial-hero-3 .sth3-dots,
.cf-saas-trial-hero-3 .sth3-url{ display: none; }
.cf-saas-trial-hero-3 .sth3-tabs{
display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(0, 1fr);
gap: 4px;
padding: 4px;
border-radius: calc(var(--radius, 12px) + 4px);
background: oklch(from var(--band-ink, #fff) l c h / 0.12);
}
.cf-saas-trial-hero-3 .sth3-tab{
min-height: 44px;
min-width: 0;
margin: 0;
padding: 0 8px;
gap: 6px;
border: 0;
border-radius: var(--radius, 12px);
color: var(--band-ink, #fff);
font-size: 16px;
}
.cf-saas-trial-hero-3 .sth3-tab .sth3-tab-num{ color: var(--sth3-soft); }
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='true']{
background: var(--card, #fff);
color: var(--ink, #101828);
box-shadow: var(--shadow-sm, 0 1px 2px oklch(from var(--sth3-shadow) l c h / 0.25));
}
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='true'] .sth3-tab-num{ color: var(--accent, #2563c9); }
.cf-saas-trial-hero-3 .sth3-tab:focus-visible{ outline: 3px solid var(--sth3-ring); outline-offset: 2px; }
.cf-saas-trial-hero-3 .sth3-screen{
overflow: hidden;
border: 1px solid var(--card-border, oklch(from var(--ink, #101828) l c h / 0.12));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg,
0 2px 4px oklch(from var(--sth3-shadow) l c h / 0.3),
0 16px 32px -10px oklch(from var(--sth3-shadow) l c h / 0.5)));
}
}
@media (hover: hover) and (max-width: 640px){
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='false']:hover{ background: oklch(from var(--band-ink, #fff) l c h / 0.08); }
}
@media (max-width: 640px){
.cf-saas-trial-hero-3 .sth3-tab[aria-selected='false']:active{ background: oklch(from var(--band-ink, #fff) l c h / 0.16); }
}
@media (prefers-reduced-motion: reduce){
.cf-saas-trial-hero-3 .sth3-rise{ animation: none; }
.cf-saas-trial-hero-3 .sth3-panel,
.cf-saas-trial-hero-3 .sth3-panel[data-active='true'],
.cf-saas-trial-hero-3 .sth3-btn,
.cf-saas-trial-hero-3 .sth3-tab,
.cf-saas-trial-hero-3 .sth3-input{ transition: none; }
.cf-saas-trial-hero-3 .sth3-btn:active:not(:disabled),
.cf-saas-trial-hero-3 .sth3-btn.is-active{ transform: none; }
}
`;
pieces/hero/saas-trial-hero-3/specimen.tsx 57 lines
import __studioImage07f6f098 from "../assets/e141d4c486db9a0d.webp";
import __studioImagef21e3bad from "../assets/cbf4dbb4cb889e95.webp";
import __studioImagee194f785 from "../assets/d55330f320095255.webp";
// Specimen: Clipdeck, a fictional video-repurposing app for creators, shown in the dark-stage trial hero.
import { SaasTrialHero3 } from '../saas-trial-hero-3';
import type { SaasTrialHero3Props } from '../saas-trial-hero-3';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled', 'error'];
export default function SaasTrialHero3Specimen({ state = 'default' }: { state?: SaasTrialHero3Props['state'] }) {
return (
<SaasTrialHero3
state={state}
headline='Turn one long video into a week of clips'
highlight='a week of clips'
deck='Drop in your podcast or stream. Clipdeck cuts it, captions it and lines it up to post.'
aside='(Three clicks. I timed it.)'
emailLabel='Your email'
emailPlaceholder='you@example.com'
buttonLabel='Start clipping my videos'
note={defaults.sample.registration.privacy}
demoLabel='Here’s the whole job, start to posted'
frameLabel='clipdeck.app'
steps={[
{
label: 'Clip',
caption: 'Paste a link. Clipdeck marks every moment worth posting.',
image: slot(
'screenshot-1',
__studioImage07f6f098
),
imageAlt: 'Clipdeck clip step: a long podcast timeline with highlighted moments ready to cut',
},
{
label: 'Caption',
caption: 'Pick a style. Every clip gets bold captions people can read on mute.',
image: slot(
'screenshot-2',
__studioImagef21e3bad
),
imageAlt: 'Clipdeck caption step: a vertical clip with bold captions and a panel of caption styles',
},
{
label: 'Publish',
caption: 'Choose your channels. Your clips are lined up for the week.',
image: slot(
'screenshot-3',
__studioImagee194f785
),
imageAlt: 'Clipdeck publish step: finished clips scheduled across a weekly calendar',
},
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalSaasTrialHero3 |
string |
|
highlight OptionalSaasTrialHero3 |
string |
|
deck OptionalSaasTrialHero3 |
string |
|
aside OptionalSaasTrialHero3 |
string |
|
emailLabel OptionalSaasTrialHero3 |
string |
|
emailPlaceholder OptionalSaasTrialHero3 |
string |
|
buttonLabel OptionalSaasTrialHero3 |
string |
|
terms OptionalSaasTrialHero3 |
string |
|
note OptionalSaasTrialHero3 |
string |
|
demoLabel OptionalSaasTrialHero3 |
string |
|
steps OptionalSaasTrialHero3 |
SaasTrialHero3Step[] |
|
frameLabel OptionalSaasTrialHero3 |
string |
|
backdrop OptionalSaasTrialHero3 |
string |
|
copy OptionalSaasTrialHero3 |
{ required?: string; invalid?: string; stepOf?: string; tabsLabel?: string } |
|
onSubmit OptionalSaasTrialHero3 |
(values: { email: string }) => void |
|
onAction OptionalSaasTrialHero3 |
() => void |
|
state OptionalSaasTrialHero3 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
className OptionalSaasTrialHero3 |
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-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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
screenshot-1- An image this piece places.
screenshot-2- An image this piece places.
screenshot-3- An image this piece places.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c18141ad9dda999d.webp
image/webp · 14.4 KB
-
cbf4dbb4cb889e95.webp
image/webp · 32.9 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d55330f320095255.webp
image/webp · 23.2 KB
-
e141d4c486db9a0d.webp
image/webp · 36.6 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB