Product Window Hero 1
Product-window hero: a dark promise stage angles into the light ground of the product. One oversized headline and a two-line action sell; a framed app screen and a self-ticking detail panel prove it quietly.
Use it in a prompt
Use hero/product-window-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/product-window-hero.tsx. - Import it and pass your copy and images (Props tab):
import { ProductWindowHero } from "@/components/funneldna/hero/product-window-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/product-window-hero/component.tsx 382 lines
// layout: diagonal-split
// Product-window hero: a dark promise stage angles into the light ground of the product. One oversized headline and a two-line action sell; a framed app screen and a self-ticking detail panel prove it quietly.
import React, { useId, useLayoutEffect, useRef, useState } from "react";
import { Bell, Check, Clock, LayoutDashboard, Search, Sparkles } from "lucide-react";
import { FX_HOST, Pattern } from "../fx/fx";
export type ProductWindowHeroRelease = {
label?: string; // short tag before the note, e.g. "New"
text: string; // the release note itself, supplied facts only
href?: string;
};
export type ProductWindowHeroPanel = {
title: string;
tag?: string; // small grey tag beside the title
prompt?: string; // request that types itself in once the panel scrolls into view
result?: string; // line shown when the answer lands
steps?: string[]; // what the product did, always listed; each ticks off with a solid badge in turn
};
export type ProductWindowHeroProps = {
headline?: React.ReactNode;
subline?: React.ReactNode;
aside?: React.ReactNode; // italic aside in the founder's voice, set right after the subline
release?: ProductWindowHeroRelease; // small release link on the right of the subline row
ctaLabel?: string;
ctaSublabel?: string; // benefit line inside the button, under the action
href?: string;
onAction?: () => void;
secondaryLabel?: string;
secondaryHref?: string;
onSecondaryAction?: () => void;
price?: string; // one bold price line, e.g. "Just $12 a month"
priceNote?: string; // the value said in words beside the price
screenImage: string; // product screen inside the window (slot: product)
screenAlt?: string;
windowTitle?: string;
panel?: ProductWindowHeroPanel; // overlapping detail panel; omitted when not supplied
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function ProductWindowHero(props: ProductWindowHeroProps) {
const {
headline = "Everything your business runs on, in one window",
subline = "Plan the work, track the money and see what needs you next, without jumping between five tools.",
aside,
release,
ctaLabel = "Start your free trial",
ctaSublabel = "Explore every feature first",
href,
onAction,
secondaryLabel = "See how it works",
secondaryHref,
onSecondaryAction,
price,
priceNote,
screenImage,
screenAlt = "The product's main dashboard",
windowTitle = "Dashboard",
panel,
disabled = false,
state = "default",
className,
} = props;
const uid = useId();
const headingId = uid + "-title";
const isDisabled = disabled || state === "disabled";
const panelRef = useRef<HTMLElement>(null);
const prompt = panel?.prompt ?? "";
const steps = panel?.steps ?? [];
const { typed, shown } = useTypeOnView(panelRef, prompt, steps.length);
const typing = typed < prompt.length;
const resultOn = steps.length > 0 ? shown > 0 : !typing;
const buttonInner = (
<>
<span className="pwh-btn-label">{ctaLabel}</span>
{ctaSublabel ? <span className="pwh-btn-sub">{ctaSublabel}</span> : null}
</>
);
const primary =
href && !isDisabled ? (
<a className="pwh-btn" href={href} onClick={onAction ? () => onAction() : undefined}>
{buttonInner}
</a>
) : (
<button type="button" className="pwh-btn" disabled={isDisabled} onClick={() => onAction?.()}>
{buttonInner}
</button>
);
const secondary = secondaryLabel ? (
secondaryHref ? (
<a className="pwh-link" href={secondaryHref} onClick={onSecondaryAction ? () => onSecondaryAction() : undefined}>
{secondaryLabel}
</a>
) : (
<button type="button" className="pwh-link" onClick={() => onSecondaryAction?.()}>
{secondaryLabel}
</button>
)
) : null;
const releaseInner = release?.text ? (
<>
{release.label === "" ? null : <span className="pwh-release-tag">{release.label ?? "New"}</span>}
<span className="pwh-release-text">{release.text}</span>
</>
) : null;
const releaseNode = releaseInner ? (
release?.href ? (
<a className="pwh-release" href={release.href}>
{releaseInner}
</a>
) : (
<span className="pwh-release">{releaseInner}</span>
)
) : null;
return (
<section
className={["cf-product-window-hero", className].filter(Boolean).join(" ")}
data-state={state}
aria-labelledby={headingId}
style={FX_HOST}
>
<style>{css}</style>
<div className="pwh-top">
<div className="pwh-copy">
<h1 id={headingId} className="pwh-h1 pwh-in">
{headline}
</h1>
<div className="pwh-subrow pwh-in" style={delay(".07s")}>
<p className="pwh-sub">
{subline}
{aside ? (
<>
{" "}
<em className="pwh-aside">{aside}</em>
</>
) : null}
</p>
{releaseNode}
</div>
<div className="pwh-actions pwh-in" style={delay(".14s")}>
{primary}
{secondary}
</div>
{price ? (
<p className="pwh-price pwh-in" style={delay(".21s")}>
<strong>{price}</strong>
{priceNote ? <> {priceNote}</> : null}
</p>
) : null}
</div>
</div>
<div className="pwh-stage">
<div className="pwh-wedge" aria-hidden="true">
<Pattern name="grid" fade="edges" />
</div>
<div className="pwh-frame">
<div className="pwh-viewport">
<figure className="pwh-window pwh-in" style={delay(".2s")}>
<div className="pwh-bar" aria-hidden="true">
<span className="pwh-dots">
<span />
<span />
<span />
</span>
<span className="pwh-title">
<LayoutDashboard size={16} strokeWidth={2.5} className="pwh-title-icon" />
<span className="pwh-title-text">{windowTitle}</span>
</span>
<span className="pwh-tools">
<Search size={16} strokeWidth={2.5} />
<Bell size={16} strokeWidth={2.5} />
</span>
</div>
<img className="pwh-screen" src={screenImage} alt={screenAlt} width={1536} height={960} loading="eager" />
</figure>
</div>
{panel ? (
<aside ref={panelRef} className="pwh-panel pwh-in" style={delay(".28s")} aria-label={panel.title}>
<div className="pwh-ph">
<span className="pwh-ph-mark" aria-hidden="true">
<Sparkles size={16} strokeWidth={2.5} />
</span>
<span className="pwh-ph-title">{panel.title}</span>
{panel.tag ? <span className="pwh-ph-tag">{panel.tag}</span> : null}
</div>
{prompt ? (
<div className="pwh-ask">
<p className="pwh-bubble">
<span className="pwh-sr">{prompt}</span>
<span className="pwh-ghost" aria-hidden="true">
{prompt}
</span>
<span className="pwh-typed" aria-hidden="true">
{prompt.slice(0, typed)}
{typing ? <span className="pwh-caret" /> : null}
</span>
</p>
</div>
) : null}
{panel.result ? (
<p className="pwh-result" data-on={resultOn ? "true" : "false"}>
<Clock size={16} strokeWidth={2.5} className="pwh-inline-icon" aria-hidden="true" />
{panel.result}
</p>
) : null}
{steps.length ? (
<ul className="pwh-steps">
{steps.map((step, i) => {
const done = i < shown;
return (
<li key={i} className="pwh-step" data-done={done ? "true" : "false"}>
<span className="pwh-badge" aria-hidden="true">
{done ? <Check size={14} strokeWidth={3} /> : null}
</span>
<span>{step}</span>
</li>
);
})}
</ul>
) : null}
</aside>
) : null}
</div>
</div>
</section>
);
}
export default ProductWindowHero;
function delay(value: string): React.CSSProperties {
return { ["--d" as string]: value } as React.CSSProperties;
}
// Types the panel's request once when it scrolls into view, then ticks off each step.
// Steps stay listed throughout (only their badge changes), so the panel never leaves empty space.
// Reduced motion (or no IntersectionObserver) leaves everything settled and static.
function useTypeOnView(ref: React.RefObject<HTMLElement | null>, prompt: string, stepCount: number) {
const [typed, setTyped] = useState(prompt.length);
const [shown, setShown] = useState(stepCount);
useLayoutEffect(() => {
setTyped(prompt.length);
setShown(stepCount);
const el = ref.current;
if (!el || typeof window === "undefined") return;
const reduce =
typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
if (reduce || typeof IntersectionObserver === "undefined") return;
setTyped(0);
setShown(0);
const timers: number[] = [];
const later = (fn: () => void, ms: number) => {
timers.push(window.setTimeout(fn, ms));
};
const revealSteps = (n: number) => {
setShown(n);
if (n < stepCount) later(() => revealSteps(n + 1), 360);
};
const typeTo = (n: number) => {
setTyped(n);
if (n < prompt.length) later(() => typeTo(n + 1), 26);
else if (stepCount > 0) later(() => revealSteps(1), 420);
};
const io = new IntersectionObserver(
(entries) => {
if (!entries.some((e) => e.isIntersecting)) return;
io.disconnect();
later(() => typeTo(Math.min(1, prompt.length)), 280);
},
{ threshold: 0.35 }
);
io.observe(el);
return () => {
io.disconnect();
timers.forEach((t) => window.clearTimeout(t));
};
}, [ref, prompt, stepCount]);
return { typed, shown };
}
const css = `
.cf-product-window-hero{--pwh-gutter:clamp(16px,5vw,48px);--pwh-sub:color-mix(in oklch,var(--band-ink) 80%,var(--band));--pwh-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);overflow-x:clip}
.cf-product-window-hero *{box-sizing:border-box}
.cf-product-window-hero .pwh-top{position:relative;background:var(--band);color:var(--band-ink);padding:clamp(56px,8vw,112px) var(--pwh-gutter) clamp(40px,5vw,64px)}
.cf-product-window-hero .pwh-copy{max-width:1120px;margin:0 auto}
.cf-product-window-hero .pwh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.cf-product-window-hero .pwh-h1{margin:0;font-family:var(--font-display);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);color:var(--band-ink);text-wrap:balance}
.cf-product-window-hero .pwh-subrow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 48px;margin-top:clamp(16px,1.6vw,24px)}
.cf-product-window-hero .pwh-sub{flex:1 1 30rem;max-width:52ch;margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--pwh-sub);text-wrap:pretty}
.cf-product-window-hero .pwh-aside{font-style:italic}
.cf-product-window-hero .pwh-release{flex:0 1 auto;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 2px;border-radius:10px;color:var(--band-ink);font-size:0.9375rem;font-weight:600;line-height:1.4;text-decoration:none}
.cf-product-window-hero .pwh-release-tag{flex:0 0 auto;display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / 0.12);color:var(--band-ink);font-size:0.875rem;font-weight:800;line-height:1.2}
.cf-product-window-hero .pwh-release-text{color:var(--pwh-sub);text-wrap:pretty}
.cf-product-window-hero a.pwh-release .pwh-release-text{text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / 0.4);text-decoration-thickness:1px;text-underline-offset:0.2em;transition:color .16s ease,text-decoration-color .16s ease}
.cf-product-window-hero a.pwh-release:hover .pwh-release-text,.cf-product-window-hero[data-state="hover"] a.pwh-release .pwh-release-text{color:var(--band-ink);text-decoration-color:var(--band-ink)}
.cf-product-window-hero .pwh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:clamp(24px,3vw,32px)}
.cf-product-window-hero .pwh-btn{--pwh-bg:var(--button-bg,var(--cta));--pwh-bg2:var(--button-bg-2,var(--cta-2));appearance:none;border:0;margin:0;cursor:pointer;text-decoration:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:72px;padding:12px 32px;border-radius:var(--button-radius,var(--radius,12px));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));text-transform:var(--button-case,none);text-align:center;text-shadow:var(--button-text-shadow,none);background:linear-gradient(180deg,oklch(from var(--pwh-bg) calc(l + 0.04) c h),oklch(from var(--pwh-bg2) calc(l - 0.02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--pwh-bg) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--pwh-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--pwh-shadow) l c h / 0.35),0 8px 16px -6px oklch(from var(--pwh-shadow) l c h / 0.5));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-product-window-hero .pwh-btn-label{font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15}
.cf-product-window-hero .pwh-btn-sub{font-family:var(--font-body);font-size:0.9375rem;font-weight:600;line-height:1.3;text-transform:none;text-wrap:pretty}
.cf-product-window-hero .pwh-btn:not(:disabled):hover,.cf-product-window-hero[data-state="hover"] .pwh-btn:not(:disabled){transform:translateY(-1px);background:linear-gradient(180deg,oklch(from var(--pwh-bg) calc(l - 0.01) c h),oklch(from var(--pwh-bg2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--pwh-bg) calc(l + 0.12) c h / 0.7),inset 0 -3px 0 oklch(from var(--pwh-bg) calc(l - 0.2) c h),0 1px 2px oklch(from var(--pwh-shadow) l c h / 0.4),0 12px 20px -6px oklch(from var(--pwh-shadow) l c h / 0.55)}
.cf-product-window-hero .pwh-btn:not(:disabled):active,.cf-product-window-hero[data-state="active"] .pwh-btn:not(:disabled){transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--pwh-bg) calc(l - 0.04) c h),oklch(from var(--pwh-bg2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--pwh-bg) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--pwh-bg) calc(l - 0.16) c h),0 1px 1px oklch(from var(--pwh-shadow) l c h / 0.35)}
.cf-product-window-hero .pwh-btn:disabled{cursor:not-allowed;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:none;transform:none}
.cf-product-window-hero .pwh-link{appearance:none;background:none;border:0;margin:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 4px;border-radius:8px;font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.3;color:var(--band-ink);text-decoration:underline;text-decoration-color:oklch(from var(--band-ink) l c h / 0.45);text-decoration-thickness:1.5px;text-underline-offset:0.22em;transition:text-decoration-color .16s ease}
.cf-product-window-hero .pwh-link:hover,.cf-product-window-hero[data-state="hover"] .pwh-link{text-decoration-color:var(--band-ink)}
.cf-product-window-hero .pwh-btn:focus-visible,.cf-product-window-hero .pwh-link:focus-visible,.cf-product-window-hero .pwh-release:focus-visible{outline:3px solid oklch(from var(--band-ink) l c h / 0.8);outline-offset:3px}
.cf-product-window-hero .pwh-price{margin:16px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--pwh-sub);text-wrap:pretty}
.cf-product-window-hero .pwh-price strong{color:var(--band-ink);font-weight:800}
.cf-product-window-hero .pwh-stage{position:relative;padding:0 var(--pwh-gutter) calc(clamp(64px,8.5vw,120px) + 56px)}
.cf-product-window-hero .pwh-wedge{position:absolute;top:-1px;left:0;right:0;height:58%;background:var(--band);color:var(--band-ink);clip-path:polygon(0 0,100% 0,100% 34%,0 100%);isolation:isolate;overflow:hidden;pointer-events:none}
.cf-product-window-hero .pwh-frame{position:relative;z-index:1;max-width:1200px;margin:0 auto}
.cf-product-window-hero .pwh-window{margin:0;background:var(--card);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,0 2px 4px oklch(0.22 0.03 260 / 0.22),0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));overflow:hidden}
.cf-product-window-hero .pwh-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;height:44px;padding:0 16px;background:color-mix(in oklch,var(--ink) 4%,var(--card));border-bottom:1px solid oklch(from var(--ink) l c h / 0.1)}
.cf-product-window-hero .pwh-dots{display:flex;gap:8px}
.cf-product-window-hero .pwh-dots span{width:12px;height:12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 16%,var(--card))}
.cf-product-window-hero .pwh-title{display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted);font-size:0.875rem;font-weight:700;line-height:1.2}
.cf-product-window-hero .pwh-title-icon{flex:0 0 auto}
.cf-product-window-hero .pwh-title-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-product-window-hero .pwh-tools{display:flex;gap:14px;color:var(--muted)}
.cf-product-window-hero .pwh-screen{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:left top;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-product-window-hero .pwh-panel{position:absolute;right:-32px;bottom:-56px;z-index:2;width:clamp(300px,34%,384px);padding:16px 20px 20px;background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch,var(--accent) 35%,var(--card));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / 0.22),0 12px 24px -8px oklch(0.22 0.03 260 / 0.32))}
.cf-product-window-hero .pwh-ph{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid oklch(from var(--ink) l c h / 0.1)}
.cf-product-window-hero .pwh-ph-mark{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-product-window-hero .pwh-ph-title{min-width:0;font-size:0.9375rem;font-weight:800;line-height:1.3}
.cf-product-window-hero .pwh-ph-tag{margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-size:0.875rem;font-weight:800;line-height:1.2}
.cf-product-window-hero .pwh-ask{display:flex;justify-content:flex-end;margin-bottom:12px}
.cf-product-window-hero .pwh-bubble{position:relative;display:grid;grid-template-columns:minmax(0,1fr);max-width:92%;margin:0;padding:10px 14px;border-radius:12px;background:color-mix(in oklch,var(--ink) 5%,var(--card));color:var(--ink);font-size:0.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-product-window-hero .pwh-ghost,.cf-product-window-hero .pwh-typed{grid-area:1 / 1}
.cf-product-window-hero .pwh-ghost{visibility:hidden}
.cf-product-window-hero .pwh-caret{display:inline-block;width:2px;height:1.05em;margin-left:1px;vertical-align:-0.15em;background:var(--accent-fill,var(--accent))}
.cf-product-window-hero .pwh-result{margin:0 0 12px;color:var(--muted);font-size:0.9375rem;font-weight:600;line-height:1.4}
.cf-product-window-hero .pwh-result[data-on="false"]{visibility:hidden}
.cf-product-window-hero .pwh-inline-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
.cf-product-window-hero .pwh-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cf-product-window-hero .pwh-step{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;font-size:0.9375rem;font-weight:500;line-height:1.4;color:var(--ink);text-wrap:pretty;transition:color .16s ease}
.cf-product-window-hero .pwh-step[data-done="false"]{color:var(--muted)}
.cf-product-window-hero .pwh-badge{display:grid;place-items:center;width:22px;height:22px;margin-top:-1px;border-radius:999px;background:color-mix(in oklch,var(--ink) 10%,var(--card));color:var(--pwh-badge-ink,#fff)}
.cf-product-window-hero .pwh-step[data-done="true"] .pwh-badge{background:var(--success)}
.cf-product-window-hero .pwh-step[data-done="true"] .pwh-badge svg{animation:pwh-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-product-window-hero .pwh-result[data-on="true"]{animation:pwh-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-product-window-hero .pwh-in{animation:pwh-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
@keyframes pwh-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pwh-pop{from{transform:scale(.9)}to{transform:none}}
@media (max-width:720px){
.cf-product-window-hero .pwh-actions{flex-direction:column;align-items:stretch;gap:8px}
.cf-product-window-hero .pwh-btn{width:100%;padding:12px 20px}
.cf-product-window-hero .pwh-link{width:100%}
.cf-product-window-hero .pwh-price{margin-top:12px}
.cf-product-window-hero .pwh-stage{padding-bottom:clamp(64px,8.5vw,120px)}
.cf-product-window-hero .pwh-wedge{height:40%;clip-path:polygon(0 0,100% 0,100% 30%,0 100%)}
.cf-product-window-hero .pwh-viewport{overflow:hidden;margin-right:calc(-1 * var(--pwh-gutter));padding-bottom:14px}
.cf-product-window-hero .pwh-window{width:150%;border-top-right-radius:0;border-bottom-right-radius:0}
.cf-product-window-hero .pwh-panel{position:relative;right:auto;bottom:auto;width:100%;margin-top:4px}
}
@media (prefers-reduced-motion:reduce){
.cf-product-window-hero .pwh-in,.cf-product-window-hero .pwh-result[data-on="true"],.cf-product-window-hero .pwh-step[data-done="true"] .pwh-badge svg{animation:none}
.cf-product-window-hero .pwh-btn,.cf-product-window-hero .pwh-link,.cf-product-window-hero .pwh-step,.cf-product-window-hero a.pwh-release .pwh-release-text{transition:none}
.cf-product-window-hero .pwh-btn:not(:disabled):hover,.cf-product-window-hero .pwh-btn:not(:disabled):active{transform:none}
}
`;
pieces/hero/product-window-hero/specimen.tsx 42 lines
import __studioImageab6860a6 from "../assets/2f4be6bb1a4bbc9f.webp";
import { ProductWindowHero } from "../product-window-hero";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
export default function ProductWindowHeroSpecimen({ state = "default" }: { state?: "default" | "hover" | "active" | "disabled" }) {
return (
<ProductWindowHero
state={state}
headline="Your books close themselves while you bill clients"
subline="Ledgerline matches every receipt, chases late invoices and keeps your quarter tax-ready, so Sunday night stays yours."
aside="(Yes, even the crumpled receipts in your camera roll.)"
release={{ label: "New", text: "Bank rules that learn your clients", href: "#release-notes" }}
ctaLabel="Start my free trial"
ctaSublabel="14 days free · no card needed"
href="#start-trial"
secondaryLabel="See how it works"
secondaryHref="#how-it-works"
price="Just $12 a month"
priceNote="after your trial, less than one hour of billable time."
screenImage={slot(
"product",
__studioImageab6860a6
)}
screenAlt="Ledgerline dashboard with matched transactions, an income and expenses chart and unpaid invoices"
windowTitle="Ledgerline · March books"
panel={{
title: "Ledgerline Assistant",
tag: "Auto-close",
prompt: "Get March ready for my accountant",
result: "Finished in 9 seconds",
steps: [
"Matched 142 bank transactions to receipts",
"Flagged 3 expenses missing a receipt",
"Sent a friendly reminder on invoice INV-1048",
"Exported the March report as a PDF",
],
}}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalProductWindowHero |
React.ReactNode |
|
subline OptionalProductWindowHero |
React.ReactNode |
|
aside OptionalProductWindowHero |
React.ReactNode |
|
release OptionalProductWindowHero |
ProductWindowHeroRelease |
|
ctaLabel OptionalProductWindowHero |
string |
|
ctaSublabel OptionalProductWindowHero |
string |
|
href OptionalProductWindowHero |
string |
|
onAction OptionalProductWindowHero |
() => void |
|
secondaryLabel OptionalProductWindowHero |
string |
|
secondaryHref OptionalProductWindowHero |
string |
|
onSecondaryAction OptionalProductWindowHero |
() => void |
|
price OptionalProductWindowHero |
string |
|
priceNote OptionalProductWindowHero |
string |
|
screenImage RequiredProductWindowHero |
string |
|
screenAlt OptionalProductWindowHero |
string |
|
windowTitle OptionalProductWindowHero |
string |
|
panel OptionalProductWindowHero |
ProductWindowHeroPanel |
|
disabled OptionalProductWindowHero |
boolean |
|
state OptionalProductWindowHero |
"default" | "hover" | "active" | "disabled" |
|
className OptionalProductWindowHero |
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.
--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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
2f4be6bb1a4bbc9f.webp
image/webp · 31.8 KB