Launch Teaser 2
Launch teaser block: the reader follows the build stop by stop on a route-map, with the live milestone lit and a build photo plus a two-line update per stop, then joins the opening-week invite list.
Use it in a prompt
Use content/launch-teaser-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/launch-teaser-2.tsx. - Import it and pass your copy and images (Props tab):
import { LaunchTeaser2 } from "@/components/funneldna/content/launch-teaser-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/launch-teaser-2/component.tsx 570 lines
// layout: route-map
// Launch teaser block: the reader follows the build stop by stop on a route-map, with the live milestone lit and a build photo plus a two-line update per stop, then joins the opening-week invite list.
import * as React from "react";
import { AlertCircle, Check, Clock, DoorOpen, Gift, HardHat } from "lucide-react";
import { FX_HOST, Spot, Texture } from "../fx/fx";
import topo from "../fx/textures/topo";
import calendar from "../fx/spots/calendar";
export type LaunchMilestone = {
/** Bold stop name on the route, e.g. "Lease signed". */
label: string;
/** Supplied date or window ("March", "Spring"). Leave it out rather than invent one. */
date?: string;
/** The two-line update shown when the stop is selected. */
update: string;
/** Build photo for this stop (scene slot). A stop without one shows a "not built yet" panel. */
image?: string;
imageAlt?: string;
};
export type LaunchTeaser2Copy = {
/** Accessible name of the milestone group. */
routeLabel: string;
done: string;
live: string;
upcoming: string;
/** Screen-reader count. Placeholders: {n}, {total}. */
stopOf: string;
/** Visible count beside the big numeral. Placeholder: {total}. */
ofTotal: string;
noPhotoUpcoming: string;
noPhotoUpcomingNote: string;
noPhoto: string;
noPhotoNote: string;
required: string;
invalid: string;
/** Sample value shown in the "error" state. */
errorExample: string;
};
export type LaunchTeaser2Props = {
headline?: React.ReactNode;
lead?: React.ReactNode;
/** Milestones in order, from where the build started to doors open. */
milestones?: LaunchMilestone[];
/** Index of the live milestone: earlier stops are done, later stops are upcoming. */
current?: number;
inviteTitle?: React.ReactNode;
/** Bold lead-in for the optional perk, e.g. "Founding-member perk:". */
perkLabel?: string;
/** Optional founding-member perk, shown only when supplied. */
perk?: React.ReactNode;
emailLabel?: string;
emailPlaceholder?: string;
/** Button label. */
label?: string;
/** One plain line under the button. */
secondaryLine?: React.ReactNode;
psLabel?: string;
/** P.S. under the action restating the main benefit. */
ps?: React.ReactNode;
copy?: Partial<LaunchTeaser2Copy>;
state?: "default" | "hover" | "active" | "disabled" | "error";
disabled?: boolean;
/** Called with the validated email. The page wires what happens next. */
onSubmit?: (values: { email: string }) => void;
/** Called when a stop on the route is selected. */
onSelect?: (index: number) => void;
className?: string;
};
type Status = "done" | "live" | "upcoming";
export function LaunchTeaser2(props: LaunchTeaser2Props) {
const {
headline = "Follow the build. Be first through the doors.",
lead = "Watch every stop from signed lease to open doors, then get your invite to opening week.",
milestones,
current = 0,
inviteTitle = "Be there the week the doors open",
perkLabel = "Founding-member perk:",
perk,
emailLabel = "Email address",
emailPlaceholder = "you@example.com",
label = "Get the opening-week invite",
secondaryLine = "or tap a stop to keep following the build",
psLabel = "P.S.",
ps = "Get the invite now and you’ll hear the opening date before anyone else.",
copy,
state = "default",
disabled = false,
onSubmit,
onSelect,
className,
} = props;
const c: LaunchTeaser2Copy = { ...DEFAULT_COPY, ...copy };
const stops = milestones && milestones.length > 0 ? milestones : DEFAULT_MILESTONES;
const total = stops.length;
const live = clamp(Math.round(current), 0, total - 1);
const [picked, setPicked] = React.useState(live);
React.useEffect(() => {
setPicked(live);
}, [live]);
const view = clamp(picked, 0, total - 1);
const active = stops[view];
const viewStatus = statusOf(view, live);
const ViewIcon = iconFor(viewStatus, view === total - 1);
const locked = disabled || state === "disabled";
const [email, setEmail] = React.useState(state === "error" ? c.errorExample : "");
const [error, setError] = React.useState(state === "error" ? c.invalid : "");
React.useEffect(() => {
if (state === "error") {
setEmail(c.errorExample);
setError(c.invalid);
}
}, [state, c.errorExample, c.invalid]);
const uid = React.useId();
const ids = {
title: `${uid}-title`,
photo: `${uid}-photo`,
update: `${uid}-update`,
invite: `${uid}-invite`,
email: `${uid}-email`,
error: `${uid}-error`,
};
const photoRef = React.useRef<HTMLDivElement>(null);
const inputRef = React.useRef<HTMLInputElement>(null);
const rootRef = React.useRef<HTMLElement>(null);
// Reveals and the route fill play once, when the block scrolls into view. A block already
// on screen at mount plays straight away; without IntersectionObserver nothing is held back.
const [waiting, setWaiting] = React.useState(false);
React.useEffect(() => {
const node = rootRef.current;
if (!node || typeof window === "undefined" || typeof IntersectionObserver === "undefined") return;
if (node.getBoundingClientRect().top < window.innerHeight * 0.85) return;
setWaiting(true);
const io = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setWaiting(false);
io.disconnect();
}
},
{ rootMargin: "0px 0px -12% 0px" },
);
io.observe(node);
return () => io.disconnect();
}, []);
const statusText: Record<Status, string> = { done: c.done, live: c.live, upcoming: c.upcoming };
const buttonClass = ["lt-btn", state === "hover" && "is-hover", state === "active" && "is-active"]
.filter(Boolean)
.join(" ");
const validate = (value: string) => {
const trimmed = value.trim();
if (!trimmed) return c.required;
return EMAIL_PATTERN.test(trimmed) ? "" : c.invalid;
};
function choose(index: number, event: React.MouseEvent<HTMLButtonElement>) {
setPicked(index);
onSelect?.(index);
// On phones the photo sits above the list: bring it back into view after a tap.
if (event.detail === 0 || typeof window === "undefined") return;
const frame = photoRef.current;
if (!frame || !window.matchMedia("(max-width: 759px)").matches) return;
if (frame.getBoundingClientRect().top >= 0) return;
const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
frame.scrollIntoView({ block: "start", behavior: still ? "auto" : "smooth" });
}
function handleChange(event: React.ChangeEvent<HTMLInputElement>) {
const next = event.target.value;
setEmail(next);
if (error && !validate(next)) setError("");
}
function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault();
if (locked) return;
const message = validate(email);
setError(message);
if (message) {
inputRef.current?.focus();
return;
}
onSubmit?.({ email: email.trim() });
}
return (
<section
ref={rootRef}
className={["cf-launch-teaser-2", waiting && "is-waiting", className].filter(Boolean).join(" ")}
style={{ ...FX_HOST, "--lt-n": total } as React.CSSProperties}
aria-labelledby={ids.title}
>
<style>{CSS}</style>
<Texture src={topo} tone="band-ink" />
<div className="lt-wrap">
<header className="lt-head lt-reveal">
<h2 id={ids.title} className="lt-title">
{headline}
</h2>
{lead ? <p className="lt-lead">{lead}</p> : null}
</header>
<div className="lt-main">
<div
className="lt-route lt-reveal"
role="group"
aria-label={c.routeLabel}
style={{ "--d": "0.07s" } as React.CSSProperties}
>
<ol className="lt-stops">
{stops.map((stop, index) => {
const status = statusOf(index, live);
const Icon = iconFor(status, index === total - 1);
return (
<li
key={index}
className={`lt-stop is-${status}`}
style={{ "--i": index } as React.CSSProperties}
>
<button
type="button"
className="lt-stop-btn"
aria-pressed={index === view}
aria-current={index === live ? "step" : undefined}
aria-controls={`${ids.photo} ${ids.update}`}
onClick={(event) => choose(index, event)}
>
<span className="lt-slot" aria-hidden="true">
<span className="lt-disc">
<Icon size={status === "live" ? 24 : 20} strokeWidth={status === "done" ? 3 : 2.5} />
</span>
</span>
<span className="lt-stop-text">
<span className="lt-stop-label">{stop.label}</span>
{stop.date ? <span className="lt-stop-date">{stop.date}</span> : null}
<span className="lt-sr">{`, ${statusText[status]}`}</span>
</span>
</button>
</li>
);
})}
</ol>
</div>
<div
ref={photoRef}
id={ids.photo}
className="lt-photo lt-reveal"
style={{ "--d": "0.14s" } as React.CSSProperties}
>
<div className="lt-clip">
{stops.map((stop, index) =>
stop.image ? (
<img
key={index}
className={index === view ? "lt-shot is-on" : "lt-shot"}
src={stop.image}
alt={index === view ? (stop.imageAlt ?? stop.label) : ""}
aria-hidden={index === view ? undefined : true}
loading={index === view || index === live ? "eager" : "lazy"}
decoding="async"
/>
) : null,
)}
{active.image ? null : (
<div key={view} className="lt-nophoto lt-swap">
<Spot src={calendar} size={88} shade="band" light="band-ink" />
<p className="lt-nophoto-title">
{viewStatus === "upcoming" ? c.noPhotoUpcoming : c.noPhoto}
</p>
<p className="lt-nophoto-note">
{viewStatus === "upcoming" ? c.noPhotoUpcomingNote : c.noPhotoNote}
</p>
</div>
)}
</div>
</div>
<div
id={ids.update}
className="lt-update lt-reveal"
aria-live="polite"
style={{ "--d": "0.14s" } as React.CSSProperties}
>
<div key={view} className="lt-swap">
<div className="lt-update-top">
<p className="lt-count">
<span className="lt-sr">{fill(c.stopOf, view + 1, total)}</span>
<span className="lt-num" aria-hidden="true">
{view + 1}
</span>
<span className="lt-of" aria-hidden="true">
{fill(c.ofTotal, view + 1, total)}
</span>
</p>
<span className={`lt-pill is-${viewStatus}`}>
<ViewIcon size={16} strokeWidth={2.5} aria-hidden="true" />
{statusText[viewStatus]}
</span>
</div>
<div className="lt-update-head">
<h3 className="lt-update-title">{active.label}</h3>
{active.date ? <span className="lt-update-date">{active.date}</span> : null}
</div>
<p className="lt-update-text">{active.update}</p>
</div>
</div>
<form
className="lt-invite lt-reveal"
style={{ "--d": "0.21s" } as React.CSSProperties}
noValidate
onSubmit={handleSubmit}
aria-labelledby={ids.invite}
>
<h3 id={ids.invite} className="lt-invite-title">
{inviteTitle}
</h3>
{perk ? (
<p className="lt-perk">
<Gift className="lt-inline-icon" size={18} strokeWidth={2.5} aria-hidden="true" />
<strong>{perkLabel}</strong> {perk}
</p>
) : null}
<div className="lt-field">
<label className="lt-label" htmlFor={ids.email}>
{emailLabel}
</label>
<input
ref={inputRef}
id={ids.email}
className="lt-input"
type="email"
name="email"
autoComplete="email"
inputMode="email"
placeholder={emailPlaceholder}
value={email}
onChange={handleChange}
disabled={locked}
aria-invalid={error ? true : undefined}
aria-describedby={error ? ids.error : undefined}
/>
{error ? (
<p id={ids.error} className="lt-error" role="alert">
<AlertCircle className="lt-inline-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{error}
</p>
) : null}
</div>
<button type="submit" className={buttonClass} disabled={locked}>
{keepHyphenated(label)}
</button>
{secondaryLine ? <p className="lt-secondary">{secondaryLine}</p> : null}
{ps ? (
<p className="lt-ps">
<strong>{psLabel}</strong> {ps}
</p>
) : null}
</form>
</div>
</div>
</section>
);
}
export default LaunchTeaser2;
const DEFAULT_COPY: LaunchTeaser2Copy = {
routeLabel: "Build milestones",
done: "Done",
live: "Happening now",
upcoming: "Coming up",
stopOf: "Stop {n} of {total}",
ofTotal: "of {total}",
noPhotoUpcoming: "Not built yet",
noPhotoUpcomingNote: "Get the invite and you’ll see this stop first.",
noPhoto: "Photos on the way",
noPhotoNote: "We’ll share this stop with the invite list.",
required: "Enter your email to get the invite.",
invalid: "That email looks incomplete. Check it and try again.",
errorExample: "jamie@example",
};
const DEFAULT_MILESTONES: LaunchMilestone[] = [
{ label: "Lease signed", update: "The space is signed and the plans are drawn. This is where the build starts." },
{ label: "Build-out", update: "Crews are framing the space and the big pieces are going in." },
{ label: "Final fit-out", update: "The finishing work is underway and every detail is being tested." },
{ label: "Doors open", update: "Opening week goes to the invite list first. Get on it and be there." },
];
const EMAIL_PATTERN = /^[^ @]+@[^ @]+[.][^ @]{2,}$/;
function clamp(value: number, min: number, max: number) {
return Math.min(Math.max(value, min), max);
}
function statusOf(index: number, live: number): Status {
if (index < live) return "done";
return index === live ? "live" : "upcoming";
}
function iconFor(status: Status, isLast: boolean) {
if (status === "done") return Check;
if (status === "live") return HardHat;
return isLast ? DoorOpen : Clock;
}
function fill(template: string, n: number, total: number) {
return template.split("{n}").join(String(n)).split("{total}").join(String(total));
}
// A hyphenated word ("opening-week") never splits across button lines, so a long or
// uppercase label wraps between words on phones instead of after the hyphen.
function keepHyphenated(text: React.ReactNode) {
if (typeof text !== "string" || !text.includes("-")) return text;
const words = text.split(" ");
return words.map((word, index) => (
<React.Fragment key={index}>
{word.includes("-") ? <span className="lt-nobr">{word}</span> : word}
{index < words.length - 1 ? " " : null}
</React.Fragment>
));
}
// Done stops are solid status badges: --success fill with a white glyph (theme contract, status icon badges).
const CSS = `
.cf-launch-teaser-2{
--lt-ink:var(--band-ink,#ffffff);
--lt-bg:var(--band,#1b2a44);
--lt-soft:color-mix(in oklch,var(--lt-ink) 86%,var(--lt-bg));
--lt-quiet:color-mix(in oklch,var(--lt-ink) 74%,var(--lt-bg));
--lt-fill:var(--accent-fill,var(--accent,#2563eb));
--lt-fill-ink:var(--accent-fill-ink,var(--card,#ffffff));
--lt-shadow:var(--shadow,oklch(0.22 0.03 256));
--lt-slot:56px;
position:relative;isolation:isolate;overflow:clip;
background:var(--lt-bg);color:var(--lt-ink);
font-family:var(--font-body,system-ui,sans-serif);
font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
}
.cf-launch-teaser-2 *,.cf-launch-teaser-2 *::before,.cf-launch-teaser-2 *::after{box-sizing:border-box}
.cf-launch-teaser-2 :is(h2,h3,p,ol){margin:0}
.cf-launch-teaser-2 .lt-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-launch-teaser-2 .lt-head{display:flex;flex-direction:column;gap:16px;max-width:46rem;margin-bottom:clamp(32px,4.5vw,56px)}
.cf-launch-teaser-2 .lt-title{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance}
.cf-launch-teaser-2 .lt-lead{max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--lt-soft);text-wrap:pretty}
.cf-launch-teaser-2 .lt-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'route' 'photo' 'update' 'invite';row-gap:32px}
.cf-launch-teaser-2 .lt-route{grid-area:route;min-width:0}
.cf-launch-teaser-2 .lt-stops{list-style:none;padding:0;display:grid;grid-template-columns:repeat(var(--lt-n),minmax(0,1fr))}
.cf-launch-teaser-2 .lt-stop{position:relative;display:flex;min-width:0}
.cf-launch-teaser-2 .lt-stop:not(:last-child)::before,.cf-launch-teaser-2 .lt-stop.is-done::after{content:'';position:absolute;z-index:0;top:calc(10px + var(--lt-slot) / 2 - 2px);left:50%;width:100%;height:4px;border-radius:2px;pointer-events:none}
.cf-launch-teaser-2 .lt-stop:not(:last-child)::before{background:oklch(from var(--lt-ink) l c h / 0.24)}
.cf-launch-teaser-2 .lt-stop.is-done::after{background:var(--success,#15803d);transform-origin:left center;animation:cf-lt2-fill .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(0.2s + var(--i,0) * 0.12s)}
.cf-launch-teaser-2 .lt-stop-btn{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;margin:0;padding:10px 8px 18px;border:0;border-radius:var(--radius,12px);background:transparent;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .16s ease}
.cf-launch-teaser-2 .lt-stop-btn:focus-visible{outline:3px solid var(--lt-ink);outline-offset:2px}
@media (hover:hover){.cf-launch-teaser-2 .lt-stop-btn:hover{background:oklch(from var(--lt-ink) l c h / 0.06)}}
.cf-launch-teaser-2 .lt-slot{flex:none;display:grid;place-items:center;width:var(--lt-slot);height:var(--lt-slot)}
.cf-launch-teaser-2 .lt-disc{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;transition:transform .16s ease,box-shadow .16s ease}
.cf-launch-teaser-2 .is-done .lt-disc{background:var(--success,#15803d);color:var(--badge-glyph,#ffffff)}
.cf-launch-teaser-2 .is-live .lt-disc{width:48px;height:48px;background:var(--lt-fill);color:var(--lt-fill-ink);box-shadow:0 0 0 4px var(--lt-bg),0 0 0 7px oklch(from var(--lt-fill) l c h / 0.5)}
.cf-launch-teaser-2 .is-upcoming .lt-disc{background:var(--lt-bg);color:var(--lt-quiet);box-shadow:inset 0 0 0 2px oklch(from var(--lt-ink) l c h / 0.4)}
.cf-launch-teaser-2 .is-done .lt-stop-btn[aria-pressed='true'] .lt-disc{box-shadow:0 0 0 4px var(--lt-bg),0 0 0 6px var(--lt-ink)}
.cf-launch-teaser-2 .is-live .lt-stop-btn[aria-pressed='true'] .lt-disc{box-shadow:0 0 0 4px var(--lt-bg),0 0 0 7px var(--lt-fill)}
.cf-launch-teaser-2 .is-upcoming .lt-stop-btn[aria-pressed='true'] .lt-disc{color:var(--lt-ink);box-shadow:inset 0 0 0 2px var(--lt-ink),0 0 0 4px var(--lt-bg),0 0 0 6px var(--lt-ink)}
.cf-launch-teaser-2 .lt-stop-btn:hover .lt-disc{transform:translateY(-2px)}
.cf-launch-teaser-2 .lt-stop-btn:active .lt-disc{transform:scale(0.94)}
.cf-launch-teaser-2 .lt-stop-text{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;margin-top:12px}
.cf-launch-teaser-2 .lt-stop-label{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.125rem,1.6vw,1.375rem);line-height:1.15;color:var(--lt-soft);text-wrap:balance;overflow-wrap:break-word;transition:color .16s ease}
.cf-launch-teaser-2 .lt-stop-date{font-size:0.875rem;line-height:1.2;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;color:var(--lt-quiet)}
.cf-launch-teaser-2 .lt-stop-btn:hover .lt-stop-label,.cf-launch-teaser-2 .lt-stop-btn[aria-pressed='true'] .lt-stop-label{color:var(--lt-ink)}
.cf-launch-teaser-2 .lt-stop-btn::after{content:'';position:absolute;left:50%;bottom:4px;width:32px;height:3px;border-radius:2px;background:var(--lt-ink);transform:translateX(-50%) scaleX(0);transition:transform .2s ease}
.cf-launch-teaser-2 .lt-stop-btn[aria-pressed='true']::after{transform:translateX(-50%) scaleX(1)}
.cf-launch-teaser-2 .lt-photo{grid-area:photo;position:relative;isolation:isolate;min-width:0;aspect-ratio:3 / 2;scroll-margin-top:16px}
.cf-launch-teaser-2 .lt-photo::before{content:'';position:absolute;z-index:-1;inset:18px -18px -18px 18px;border-radius:12px;background:var(--lt-fill)}
.cf-launch-teaser-2 .lt-clip{position:absolute;inset:0;overflow:hidden;border-radius:12px;background:color-mix(in oklch,var(--lt-ink) 8%,var(--lt-bg))}
.cf-launch-teaser-2 .lt-shot{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transform:scale(1.03);transition:opacity .4s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.cf-launch-teaser-2 .lt-shot.is-on{opacity:1;transform:none}
.cf-launch-teaser-2 .lt-nophoto{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center}
.cf-launch-teaser-2 .lt-nophoto-title{margin-top:8px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-launch-teaser-2 .lt-nophoto-note{max-width:34ch;font-size:0.9375rem;line-height:1.4;font-weight:500;color:var(--lt-soft);text-wrap:pretty}
.cf-launch-teaser-2 .lt-update{grid-area:update;min-width:0}
.cf-launch-teaser-2 .lt-update-top{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-bottom:16px}
.cf-launch-teaser-2 .lt-count{display:inline-flex;align-items:baseline;gap:8px;margin-right:4px}
.cf-launch-teaser-2 .lt-num{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-launch-teaser-2 .lt-of{font-size:0.9375rem;line-height:1.4;font-weight:600;color:var(--lt-soft)}
.cf-launch-teaser-2 .lt-pill{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 12px;border-radius:999px;font-size:0.875rem;line-height:1.2;font-weight:800;white-space:nowrap;background:oklch(from var(--lt-ink) l c h / 0.12);color:var(--lt-ink)}
.cf-launch-teaser-2 .lt-pill.is-live{background:var(--lt-fill);color:var(--lt-fill-ink)}
.cf-launch-teaser-2 .lt-update-date{font-size:0.875rem;line-height:1.2;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;color:var(--lt-quiet)}
.cf-launch-teaser-2 .lt-update-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:8px}
.cf-launch-teaser-2 .lt-update-title{font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-launch-teaser-2 .lt-update-text{max-width:46ch;color:var(--lt-soft);text-wrap:pretty}
.cf-launch-teaser-2 .lt-invite{grid-area:invite;align-self:start;display:flex;flex-direction:column;min-width:0;padding:clamp(20px,3vw,32px);background:var(--card,#ffffff);color:var(--ink,#1a2233);border:1px solid var(--card-border,oklch(from var(--ink,#1a2233) 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(--lt-shadow) l c h / 0.22),0 12px 24px -8px oklch(from var(--lt-shadow) l c h / 0.32)))}
.cf-launch-teaser-2 .lt-invite-title{margin-bottom:16px;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-launch-teaser-2 .lt-perk{margin-bottom:20px;padding:12px 16px;border-radius:10px;background:color-mix(in oklch,var(--ink,#1a2233) 5%,var(--card,#ffffff));color:var(--ink,#1a2233);font-size:0.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-launch-teaser-2 .lt-perk strong{font-weight:800}
.cf-launch-teaser-2 .lt-inline-icon{display:inline-block;vertical-align:-0.2em;margin-inline-end:0.4em;color:var(--accent,#2563eb)}
.cf-launch-teaser-2 .lt-field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.cf-launch-teaser-2 .lt-label{font-size:1.0625rem;line-height:1.3;font-weight:700;color:var(--label-ink,var(--ink,#1a2233))}
.cf-launch-teaser-2 .lt-input{width:100%;min-height:56px;margin:0;padding:0 16px;font-family:var(--font-body,inherit);font-size:1.0625rem;font-weight:500;line-height:1.2;color:var(--field-ink,#1a2233);background:var(--field,#ffffff);border:1px solid var(--field-border,color-mix(in oklch,var(--ink,#1a2233) 22%,transparent));border-radius:var(--field-radius,var(--radius,12px));box-shadow:inset 0 1px 2px oklch(from var(--lt-shadow) l c h / 0.08);transition:border-color .16s ease,box-shadow .16s ease}
.cf-launch-teaser-2 .lt-input::placeholder{color:color-mix(in oklch,var(--field-ink,#1a2233) 65%,var(--field,#ffffff));opacity:1}
.cf-launch-teaser-2 .lt-input:focus-visible{outline:none;border-color:var(--field-focus,var(--accent,#2563eb));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent,#2563eb)) l c h / 0.35)}
.cf-launch-teaser-2 .lt-input[aria-invalid='true']{border-color:var(--danger,#b42318)}
.cf-launch-teaser-2 .lt-input[aria-invalid='true']:focus-visible{box-shadow:0 0 0 3px oklch(from var(--danger,#b42318) l c h / 0.3)}
.cf-launch-teaser-2 .lt-input:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--field-ink,#1a2233) 5%,var(--field,#ffffff));color:color-mix(in oklch,var(--field-ink,#1a2233) 60%,var(--field,#ffffff))}
.cf-launch-teaser-2 .lt-error{font-size:0.9375rem;line-height:1.4;font-weight:600;color:var(--danger,#b42318);text-wrap:pretty}
.cf-launch-teaser-2 .lt-error .lt-inline-icon{color:inherit}
.cf-launch-teaser-2 .lt-btn{--lt-b:var(--button-bg,var(--cta,#d92d20));--lt-b2:var(--button-bg-2,var(--cta-2,#b42318));display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;margin:0;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display,inherit));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;text-align:center;text-wrap:balance;color:var(--button-ink,var(--cta-ink,#ffffff));text-shadow:var(--button-text-shadow,none);background:linear-gradient(oklch(from var(--lt-b) calc(l + 0.04) c h),oklch(from var(--lt-b2) calc(l - 0.02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--lt-b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--lt-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--lt-shadow) l c h / 0.3),0 8px 16px -6px oklch(from var(--lt-shadow) l c h / 0.45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-launch-teaser-2 .lt-btn:not(:disabled):hover,.cf-launch-teaser-2 .lt-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--lt-b) calc(l - 0.01) c h),oklch(from var(--lt-b2) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--lt-b) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--lt-b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--lt-shadow) l c h / 0.32),0 10px 18px -6px oklch(from var(--lt-shadow) l c h / 0.52))}
.cf-launch-teaser-2 .lt-btn:not(:disabled):active,.cf-launch-teaser-2 .lt-btn.is-active:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--lt-b) calc(l - 0.04) c h),oklch(from var(--lt-b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 3px oklch(from var(--lt-b) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--lt-b) calc(l - 0.16) c h),0 1px 1px oklch(from var(--lt-shadow) l c h / 0.3)}
.cf-launch-teaser-2 .lt-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2563eb));outline-offset:3px}
.cf-launch-teaser-2 .lt-btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary,#e8ebf2));color:color-mix(in oklch,var(--button-2-ink,var(--secondary-ink,#1a2233)) 60%,var(--button-2-bg,var(--secondary,#e8ebf2)));text-shadow:none;box-shadow:none;transform:none}
.cf-launch-teaser-2 .lt-secondary{margin-top:12px;font-size:0.9375rem;line-height:1.4;font-weight:500;text-align:center;color:var(--muted,#4b5565);text-wrap:pretty}
.cf-launch-teaser-2 .lt-ps{margin-top:20px;padding-top:16px;border-top:1px solid oklch(from var(--ink,#1a2233) l c h / 0.12);font-size:0.9375rem;line-height:1.45;color:var(--muted,#4b5565);text-wrap:pretty}
.cf-launch-teaser-2 .lt-ps strong{font-weight:800;color:var(--ink,#1a2233)}
.cf-launch-teaser-2 .lt-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-launch-teaser-2 .lt-nobr{white-space:nowrap}
.cf-launch-teaser-2.is-waiting .lt-reveal,.cf-launch-teaser-2.is-waiting .lt-stop.is-done::after{animation-play-state:paused}
.cf-launch-teaser-2 .lt-reveal{animation:cf-lt2-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
.cf-launch-teaser-2 .lt-swap{animation:cf-lt2-rise .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes cf-lt2-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-lt2-fill{from{transform:scaleX(0)}}
@keyframes cf-lt2-fill-y{from{transform:scaleY(0)}}
@media (min-width:760px) and (max-width:999px){
.cf-launch-teaser-2 .lt-photo{aspect-ratio:16 / 9}
.cf-launch-teaser-2 .lt-update,.cf-launch-teaser-2 .lt-invite{max-width:40rem}
}
@media (min-width:1000px){
.cf-launch-teaser-2 .lt-main{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:'route route' 'photo update' 'photo invite';grid-template-rows:auto auto 1fr;column-gap:clamp(48px,5vw,72px)}
.cf-launch-teaser-2 .lt-photo{aspect-ratio:auto;min-height:460px;align-self:stretch}
}
@media (max-width:759px){
.cf-launch-teaser-2 .lt-main{grid-template-areas:'photo' 'update' 'route' 'invite';row-gap:28px}
.cf-launch-teaser-2 .lt-photo{aspect-ratio:4 / 3}
.cf-launch-teaser-2 .lt-photo::before{inset:10px -8px -10px 8px}
.cf-launch-teaser-2 .lt-stops{grid-template-columns:minmax(0,1fr)}
.cf-launch-teaser-2 .lt-stop:not(:last-child)::before,.cf-launch-teaser-2 .lt-stop.is-done::after{top:calc(6px + var(--lt-slot) / 2);left:calc(8px + var(--lt-slot) / 2 - 2px);width:4px;height:100%}
.cf-launch-teaser-2 .lt-stop.is-done::after{transform-origin:center top;animation-name:cf-lt2-fill-y}
.cf-launch-teaser-2 .lt-stop-btn{flex-direction:row;align-items:flex-start;gap:14px;padding:6px 12px 6px 8px;text-align:left}
.cf-launch-teaser-2 .lt-stop-text{align-items:flex-start;gap:4px;margin-top:0;padding:10px 0 12px}
.cf-launch-teaser-2 .lt-stop-btn::after{display:none}
.cf-launch-teaser-2 .lt-stop-btn[aria-pressed='true']{background:oklch(from var(--lt-ink) l c h / 0.09)}
.cf-launch-teaser-2 .lt-invite{padding:22px 18px}
.cf-launch-teaser-2 .lt-btn{padding:12px 14px}
}
@media (prefers-reduced-motion:reduce){
.cf-launch-teaser-2 .lt-reveal,.cf-launch-teaser-2 .lt-swap,.cf-launch-teaser-2 .lt-stop.is-done::after{animation:none}
.cf-launch-teaser-2 .lt-shot,.cf-launch-teaser-2 .lt-disc,.cf-launch-teaser-2 .lt-btn,.cf-launch-teaser-2 .lt-stop-btn,.cf-launch-teaser-2 .lt-stop-btn::after,.cf-launch-teaser-2 .lt-stop-label,.cf-launch-teaser-2 .lt-input{transition:none}
.cf-launch-teaser-2 .lt-shot,.cf-launch-teaser-2 .lt-stop-btn:hover .lt-disc,.cf-launch-teaser-2 .lt-stop-btn:active .lt-disc{transform:none}
.cf-launch-teaser-2 .lt-btn:not(:disabled):active,.cf-launch-teaser-2 .lt-btn.is-active:not(:disabled){transform:none}
}
`;
pieces/content/launch-teaser-2/specimen.tsx 66 lines
import __studioImage56e80aee from "../assets/30b3cf826b73c61c.webp";
import __studioImagedca5698a from "../assets/aea448569cd9b5e5.webp";
import __studioImage35fa5455 from "../assets/3438014083e3a051.webp";
import * as React from "react";
import { LaunchTeaser2, type LaunchTeaser2Props } from "../launch-teaser-2";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function LaunchTeaser2Specimen({ state = "default" }: { state?: LaunchTeaser2Props["state"] }) {
const emailField = defaults.sample.fields.find((field) => field.name === "email");
return (
<LaunchTeaser2
state={state}
headline="Watch Harbor Walls go up. Climb it first."
lead="From signed lease to open doors, here’s every stop of the build. Tap a stop to see where we are, then claim your place in opening week."
current={2}
milestones={[
{
label: "Lease signed",
date: "January",
update: "We signed for the old harbour warehouse. Huge ceilings, open floor, and room for every wall we sketched.",
image: slot(
"scene",
__studioImage56e80aee,
),
imageAlt: "The empty harbour warehouse with floor plans on a table",
},
{
label: "Walls going up",
date: "March",
update: "Steel frames are in and the first panels are bolted on. The lead wall now reaches the roof beams.",
image: slot(
"scene",
__studioImagedca5698a,
),
imageAlt: "Climbing wall panels and scaffolding going up inside the warehouse",
},
{
label: "Holds & routes set",
date: "This month",
update: "Our setters are bolting on holds and testing the first routes, from easy slabs to steep overhangs.",
image: slot(
"scene",
__studioImage35fa5455,
),
imageAlt: "A route setter bolting holds onto a new climbing wall",
},
{
label: "Doors open",
date: "Spring",
update: "Opening week starts with fresh routes on every wall. This is the stop you get to be part of.",
},
]}
inviteTitle="Climb Harbor Walls in opening week"
perkLabel="Founding-member perk:"
perk="your first week of climbing is on us."
emailLabel={emailField?.label ?? "Email address"}
emailPlaceholder="you@example.com"
label="Get the opening-week invite"
secondaryLine="or tap a stop to keep following the build"
ps="Get the invite now and you’ll hear the opening date before anyone else."
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalLaunchTeaser2 |
React.ReactNode |
|
lead OptionalLaunchTeaser2 |
React.ReactNode |
|
milestones OptionalLaunchTeaser2 |
LaunchMilestone[] |
|
current OptionalLaunchTeaser2 |
number |
|
inviteTitle OptionalLaunchTeaser2 |
React.ReactNode |
|
perkLabel OptionalLaunchTeaser2 |
string |
|
perk OptionalLaunchTeaser2 |
React.ReactNode |
|
emailLabel OptionalLaunchTeaser2 |
string |
|
emailPlaceholder OptionalLaunchTeaser2 |
string |
|
label OptionalLaunchTeaser2 |
string |
|
secondaryLine OptionalLaunchTeaser2 |
React.ReactNode |
|
psLabel OptionalLaunchTeaser2 |
string |
|
ps OptionalLaunchTeaser2 |
React.ReactNode |
|
copy OptionalLaunchTeaser2 |
Partial<LaunchTeaser2Copy> |
|
state OptionalLaunchTeaser2 |
"default" | "hover" | "active" | "disabled" | "error" |
|
disabled OptionalLaunchTeaser2 |
boolean |
|
onSubmit OptionalLaunchTeaser2 |
(values: { email: string }) => void |
|
onSelect OptionalLaunchTeaser2 |
(index: number) => void |
|
className OptionalLaunchTeaser2 |
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- 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.
scene- A wide atmosphere photo behind or beside the copy.
-
30b3cf826b73c61c.webp
image/webp · 200 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
3438014083e3a051.webp
image/webp · 228 KB
-
a57ca5c86a05001f.webp
image/webp · 108 KB
-
aea448569cd9b5e5.webp
image/webp · 257 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB