Quote Request 2
Roofing quote request: three picture-tile micro-yeses fill a segmented progress header before the contact ask, beside a sticky offer that pictures the chosen job, so the free quote lands as the easy last tap.
Use it in a prompt
Use forms/quote-request-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/forms/quote-request-2.tsx. - Import it and pass your copy and images (Props tab):
import { QuoteRequest2 } from "@/components/funneldna/forms/quote-request-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/forms/quote-request-2/component.tsx 921 lines
// layout: sticky-offer-side
// Roofing quote request: three picture-tile micro-yeses fill a segmented progress header before the contact ask, beside a sticky offer that pictures the chosen job, so the free quote lands as the easy last tap.
import * as React from "react";
import { AlertCircle, CalendarClock, Check, Clock, Hammer, HelpCircle, Home, Loader2, Lock, Search } from "lucide-react";
import type { LucideIcon } from "lucide-react";
import { Spot } from "../fx/fx";
import rocket from "../fx/spots/rocket";
import calendar from "../fx/spots/calendar";
import clock from "../fx/spots/clock";
import checklist from "../fx/spots/checklist";
export type QuoteJob = {
id: string;
label: string;
detail?: string;
/** Shorter answer shown in the progress header once picked. */
short?: string;
/** Job illustration on a transparent background (item slot). Falls back to an icon. */
image?: string;
imageAlt?: string;
};
export type QuoteSize = {
id: string;
label: string;
/** The area range, e.g. "1,500–2,500 sq ft". */
range?: string;
/** 1–4 fills the size scale; 0 marks a "not sure" choice, shown as a full-width tile. */
scale?: number;
short?: string;
};
export type QuoteTimeline = {
id: string;
label: string;
detail?: string;
short?: string;
/** An imported fx Spot asset (URL). Falls back to an icon. */
spot?: string;
};
/** What onSubmit receives once every answer is valid. */
export type QuoteRequest2Values = {
job: string;
size: string;
timeline: string;
/** The visible labels of the three picks. */
labels: { job: string; size: string; timeline: string };
name: string;
phone: string;
address: string;
};
/** Every visible word. {current}, {total}, {step} and {count} are replaced as text. */
export type QuoteRequest2Copy = {
stepJob: string;
stepSize: string;
stepTime: string;
stepContact: string;
jobTitle: string;
jobHint: string;
sizeTitle: string;
sizeHint: string;
timeTitle: string;
timeHint: string;
contactTitle: string;
contactHint: string;
counter: string;
progressLabel: string;
now: string;
upcoming: string;
srDone: string;
srCurrent: string;
srTodo: string;
next: string;
back: string;
sending: string;
nameLabel: string;
namePlaceholder: string;
phoneLabel: string;
phonePlaceholder: string;
addressLabel: string;
addressPlaceholder: string;
errorName: string;
errorPhone: string;
errorAddress: string;
errorSummaryOne: string;
errorSummaryMany: string;
visualIdle: string;
};
export type QuoteRequest2Props = {
/** Section headline; wrap the key phrase in <span className="qs-mark"> for the marker stroke. */
headline?: React.ReactNode;
lead?: string;
/** Short reassurance points under the lead. */
points?: string[];
jobs?: QuoteJob[];
sizes?: QuoteSize[];
timelines?: QuoteTimeline[];
ctaLabel?: string;
/** The business's own call-back promise, shown under the button. Hidden when empty. */
responseTime?: string;
privacy?: string;
copy?: Partial<QuoteRequest2Copy>;
/** Called with every answer once valid; return a promise to show the sending state until it settles. */
onSubmit?: (values: QuoteRequest2Values) => void | PromiseLike<unknown>;
state?: "default" | "hover" | "active" | "disabled" | "error";
className?: string;
};
type Answers = { job: string; size: string; timeline: string };
type ContactKey = "name" | "phone" | "address";
export function QuoteRequest2(props: QuoteRequest2Props) {
const {
headline = DEFAULT_HEADLINE,
lead = "Tell us what your roof needs, roughly how big it is and when you want it done. Then add your number to get your free quote.",
points = DEFAULT_POINTS,
jobs = DEFAULT_JOBS,
sizes = DEFAULT_SIZES,
timelines = DEFAULT_TIMELINES,
ctaLabel = "Get my free quote",
responseTime = "",
privacy = "We only use your details for this quote.",
onSubmit,
state = "default",
className,
} = props;
const c: QuoteRequest2Copy = { ...DEFAULT_COPY, ...props.copy };
const uid = React.useId();
const id = (s: string) => `qs${uid}-${s}`;
const [boot] = React.useState(() => seed(state, jobs, sizes, timelines));
const [step, setStep] = React.useState(boot.step);
const [maxStep, setMaxStep] = React.useState(boot.step);
const [answers, setAnswers] = React.useState<Answers>(boot.answers);
const [name, setName] = React.useState("");
const [phone, setPhone] = React.useState("");
const [address, setAddress] = React.useState("");
const [touched, setTouched] = React.useState<Partial<Record<ContactKey, boolean>>>({});
const [submitted, setSubmitted] = React.useState(boot.submitted);
const [busy, setBusy] = React.useState(false);
const navigated = React.useRef(false);
const mounted = React.useRef(true);
const headingRef = React.useRef<HTMLHeadingElement>(null);
const nameRef = React.useRef<HTMLInputElement>(null);
const phoneRef = React.useRef<HTMLInputElement>(null);
const addressRef = React.useRef<HTMLInputElement>(null);
const refs: Record<ContactKey, React.RefObject<HTMLInputElement | null>> = { name: nameRef, phone: phoneRef, address: addressRef };
React.useEffect(() => {
const s = seed(state, jobs, sizes, timelines);
navigated.current = false;
setStep(s.step);
setMaxStep(s.step);
setAnswers(s.answers);
setSubmitted(s.submitted);
setTouched({});
setName("");
setPhone("");
setAddress("");
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state]);
React.useEffect(() => {
mounted.current = true;
return () => {
mounted.current = false;
};
}, []);
React.useEffect(() => {
if (navigated.current) headingRef.current?.focus();
}, [step]);
const disabled = state === "disabled";
const force = state === "hover" ? "is-hover" : state === "active" ? "is-active" : "";
const errors = validateContact(name, phone, address, c);
const contactValid = !errors.name && !errors.phone && !errors.address;
const answered = [!!answers.job, !!answers.size, !!answers.timeline, contactValid];
const stepNames = [c.stepJob, c.stepSize, c.stepTime, c.stepContact];
const titles = [c.jobTitle, c.sizeTitle, c.timeTitle, c.contactTitle];
const hints = [c.jobHint, c.sizeHint, c.timeHint, c.contactHint];
const pickedJob = jobs.find((j) => j.id === answers.job);
const pickedSize = sizes.find((s) => s.id === answers.size);
const pickedTime = timelines.find((t) => t.id === answers.timeline);
const summary = [
pickedJob ? pickedJob.short || pickedJob.label : "",
pickedSize ? pickedSize.short || pickedSize.label : "",
pickedTime ? pickedTime.short || pickedTime.label : "",
name.trim(),
];
const visualJob = pickedJob ? (pickedJob.image ? pickedJob : undefined) : jobs.find((j) => j.image);
const counter = fill(c.counter, { current: step + 1, total: 4 });
const shownError = (k: ContactKey) => (touched[k] || submitted ? errors[k] : undefined);
const errorCount = CONTACT_KEYS.filter((k) => shownError(k)).length;
const go = (n: number) => {
if (disabled) return;
navigated.current = true;
setStep(n);
setMaxStep((m) => Math.max(m, n));
};
const pick = (key: keyof Answers) => (value: string) => setAnswers((a) => ({ ...a, [key]: value }));
const blur = (k: ContactKey) => setTouched((t) => ({ ...t, [k]: true }));
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (disabled || busy) return;
if (step < 3) {
if (answered[step]) go(step + 1);
return;
}
const missing = [0, 1, 2].find((i) => !answered[i]);
if (missing !== undefined) {
go(missing);
return;
}
setSubmitted(true);
const bad = CONTACT_KEYS.find((k) => errors[k]);
if (bad) {
refs[bad].current?.focus();
return;
}
const values: QuoteRequest2Values = {
job: answers.job,
size: answers.size,
timeline: answers.timeline,
labels: { job: pickedJob?.label ?? "", size: pickedSize?.label ?? "", timeline: pickedTime?.label ?? "" },
name: name.trim(),
phone: phone.trim(),
address: address.trim(),
};
const result: unknown = onSubmit?.(values);
if (isThenable(result)) {
setBusy(true);
Promise.resolve(result)
.then(
() => undefined,
() => undefined,
)
.then(() => {
if (mounted.current) setBusy(false);
});
}
};
return (
<section className={cx("cf-quote-request-2", force, className)} aria-labelledby={id("title")}>
<style>{CSS}</style>
<div className="qs-wrap">
<div className="qs-offer">
<h2 className="qs-title" id={id("title")}>
{headline}
</h2>
{lead ? <p className="qs-lead">{lead}</p> : null}
{points.length > 0 ? (
<ul className="qs-points">
{points.map((p) => (
<li key={p}>
<span className="qs-badge" aria-hidden="true">
<Check size={14} strokeWidth={3} />
</span>
{p}
</li>
))}
</ul>
) : null}
{visualJob && visualJob.image ? (
<figure className="qs-visual">
<div className="qs-visual-art">
<img key={visualJob.id} src={visualJob.image} alt={visualJob.imageAlt || visualJob.label} width={600} height={600} />
</div>
<figcaption>
{pickedJob ? (
<>
<strong>{pickedJob.label}</strong>
{pickedJob.detail}
</>
) : (
c.visualIdle
)}
</figcaption>
</figure>
) : null}
</div>
<form className="qs-card" noValidate onSubmit={handleSubmit} aria-labelledby={id("title")}>
<fieldset className="qs-fieldset" disabled={disabled}>
<div className="qs-progress">
<p className="qs-count" aria-hidden="true">
<b>{counter}</b> · {stepNames[step]}
</p>
<p className="qs-sr" aria-live="polite">
{counter}: {stepNames[step]}
</p>
<ol className="qs-segs" aria-label={c.progressLabel}>
{stepNames.map((s, i) => {
const status = i === step ? "current" : answered[i] ? "done" : "todo";
const reachable = i !== step && i <= maxStep && answered.slice(0, i).every(Boolean);
const value = status === "done" ? summary[i] : status === "current" ? c.now : c.upcoming;
const sr = status === "done" ? c.srDone : status === "current" ? c.srCurrent : c.srTodo;
return (
<li key={s} className={cx("qs-seg", `is-${status}`, answered[i] && "is-filled")}>
<button
type="button"
className="qs-seg-btn"
disabled={!reachable}
aria-current={i === step ? "step" : undefined}
onClick={() => go(i)}
>
<span className="qs-seg-track" aria-hidden="true">
<span className="qs-seg-fill" />
</span>
<span className="qs-seg-name" aria-hidden="true">
{s}
</span>
<span className="qs-seg-value" aria-hidden="true">
{status === "done" ? <Check size={16} strokeWidth={2.5} /> : null}
{value}
</span>
<span className="qs-sr">{`${s}: ${status === "done" && value ? `${value}, ` : ""}${sr}`}</span>
</button>
</li>
);
})}
</ol>
</div>
<div className="qs-step" key={step}>
<h3 className="qs-step-title" id={id("step")} ref={headingRef} tabIndex={-1}>
{titles[step]}
</h3>
<p className="qs-step-hint" id={id("hint")}>
{hints[step]}
</p>
{step === 0 ? (
<div className="qs-grid qs-grid--jobs" role="radiogroup" aria-labelledby={id("step")} aria-describedby={id("hint")}>
{jobs.map((j, i) => {
const Icon = JOB_ICONS[i % JOB_ICONS.length];
return (
<Tile key={j.id} name={id("job")} value={j.id} checked={answers.job === j.id} onPick={pick("job")}>
<span className="qs-art">
{j.image ? (
<img src={j.image} alt="" width={320} height={320} decoding="async" />
) : (
<span className="qs-disc">
<Icon size={20} strokeWidth={2.5} aria-hidden="true" />
</span>
)}
</span>
<span className="qs-text">
<span className="qs-tile-title">{j.label}</span>
{j.detail ? <span className="qs-tile-detail">{j.detail}</span> : null}
</span>
</Tile>
);
})}
</div>
) : null}
{step === 1 ? (
<div className="qs-grid qs-grid--sizes" role="radiogroup" aria-labelledby={id("step")} aria-describedby={id("hint")}>
{sizes.map((s) => {
const scale = Math.max(0, Math.min(4, s.scale ?? 0));
return (
<Tile
key={s.id}
className={scale === 0 ? "is-wide" : undefined}
name={id("size")}
value={s.id}
checked={answers.size === s.id}
onPick={pick("size")}
>
<span className="qs-scale" aria-hidden="true">
{scale > 0 ? (
BAR_HEIGHTS.map((h, b) => <span key={h} className={b < scale ? "qs-bar is-on" : "qs-bar"} style={{ height: h }} />)
) : (
<HelpCircle size={20} strokeWidth={2.5} />
)}
</span>
<span className="qs-text">
<span className="qs-tile-title">{s.label}</span>
{s.range ? <span className="qs-tile-detail">{s.range}</span> : null}
</span>
</Tile>
);
})}
</div>
) : null}
{step === 2 ? (
<div className="qs-grid qs-grid--times" role="radiogroup" aria-labelledby={id("step")} aria-describedby={id("hint")}>
{timelines.map((t) => (
<Tile key={t.id} name={id("time")} value={t.id} checked={answers.timeline === t.id} onPick={pick("timeline")}>
<span className="qs-spot" aria-hidden="true">
{t.spot ? (
<Spot src={t.spot} size={56} />
) : (
<span className="qs-disc">
<CalendarClock size={20} strokeWidth={2.5} />
</span>
)}
</span>
<span className="qs-text">
<span className="qs-tile-title">{t.label}</span>
{t.detail ? <span className="qs-tile-detail">{t.detail}</span> : null}
</span>
</Tile>
))}
</div>
) : null}
{step === 3 ? (
<div className="qs-fields">
<Field
id={id("name")}
label={c.nameLabel}
type="text"
autoComplete="name"
placeholder={c.namePlaceholder}
value={name}
onChange={setName}
onBlur={() => blur("name")}
error={shownError("name")}
valid={!!touched.name && !errors.name}
inputRef={nameRef}
/>
<Field
id={id("phone")}
label={c.phoneLabel}
type="tel"
inputMode="tel"
autoComplete="tel"
placeholder={c.phonePlaceholder}
value={phone}
onChange={setPhone}
onBlur={() => {
setPhone(formatPhone(phone));
blur("phone");
}}
error={shownError("phone")}
valid={!!touched.phone && !errors.phone}
inputRef={phoneRef}
/>
<Field
id={id("address")}
wide
label={c.addressLabel}
type="text"
autoComplete="street-address"
placeholder={c.addressPlaceholder}
value={address}
onChange={setAddress}
onBlur={() => blur("address")}
error={shownError("address")}
valid={!!touched.address && !errors.address}
inputRef={addressRef}
/>
</div>
) : null}
</div>
{step < 3 ? (
<div className="qs-nav">
{step > 0 ? (
<button type="button" className="qs-btn2" onClick={() => go(step - 1)}>
{c.back}
</button>
) : (
<span className="qs-nav-spacer" aria-hidden="true" />
)}
<button
type="button"
className="qs-btn qs-next"
disabled={!answered[step]}
aria-describedby={answered[step] ? undefined : id("hint")}
onClick={() => go(step + 1)}
>
{fill(c.next, { step: stepNames[step + 1] })}
</button>
</div>
) : (
<>
{submitted && errorCount > 0 ? (
<p className="qs-summary" role="alert">
<AlertCircle size={16} strokeWidth={2.5} aria-hidden="true" />
{fill(errorCount === 1 ? c.errorSummaryOne : c.errorSummaryMany, { count: errorCount })}
</p>
) : null}
<div className="qs-final">
<div className="qs-final-main">
<button type="submit" className="qs-btn qs-cta" aria-disabled={busy || undefined}>
{busy ? (
<>
<Loader2 className="qs-spin" size={20} strokeWidth={2.5} aria-hidden="true" />
{c.sending}
</>
) : (
ctaLabel
)}
</button>
{responseTime ? (
<p className="qs-promise">
<Clock size={16} strokeWidth={2.5} aria-hidden="true" />
{responseTime}
</p>
) : null}
{privacy ? (
<p className="qs-privacy">
<Lock size={16} strokeWidth={2.5} aria-hidden="true" />
{privacy}
</p>
) : null}
</div>
<button type="button" className="qs-btn2 qs-back-final" onClick={() => go(2)}>
{c.back}
</button>
</div>
</>
)}
</fieldset>
</form>
</div>
</section>
);
}
export default QuoteRequest2;
function Tile(props: {
name: string;
value: string;
checked: boolean;
onPick: (value: string) => void;
className?: string;
children: React.ReactNode;
}) {
const { name, value, checked, onPick, className, children } = props;
return (
<label className={cx("qs-tile", className)}>
<input className="qs-radio" type="radio" name={name} value={value} checked={checked} onChange={() => onPick(value)} />
<span className="qs-face">
<span className="qs-dot" aria-hidden="true">
{checked ? <Check size={16} strokeWidth={3} /> : null}
</span>
{children}
</span>
</label>
);
}
function Field(props: {
id: string;
label: string;
type: string;
value: string;
placeholder: string;
autoComplete: string;
inputMode?: React.HTMLAttributes<HTMLInputElement>["inputMode"];
error?: string;
valid: boolean;
wide?: boolean;
inputRef: React.RefObject<HTMLInputElement | null>;
onChange: (value: string) => void;
onBlur: () => void;
}) {
const { id, label, type, value, placeholder, autoComplete, inputMode, error, valid, wide, inputRef, onChange, onBlur } = props;
return (
<div className={cx("qs-field", wide && "qs-field--wide", error && "is-invalid")}>
<label className="qs-label" htmlFor={id}>
{label}
</label>
<div className="qs-control">
<input
ref={inputRef}
id={id}
className="qs-input"
type={type}
value={value}
placeholder={placeholder}
autoComplete={autoComplete}
inputMode={inputMode}
aria-invalid={error ? true : undefined}
aria-describedby={error ? `${id}-error` : undefined}
onChange={(e) => onChange(e.target.value)}
onBlur={onBlur}
/>
{valid ? (
<span className="qs-ok" aria-hidden="true">
<Check size={14} strokeWidth={3} />
</span>
) : null}
</div>
{error ? (
<p className="qs-error" id={`${id}-error`}>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden="true" />
{error}
</p>
) : null}
</div>
);
}
function seed(state: QuoteRequest2Props["state"], jobs: QuoteJob[], sizes: QuoteSize[], timelines: QuoteTimeline[]) {
const none: Answers = { job: "", size: "", timeline: "" };
if (state === "error") {
return {
step: 3,
submitted: true,
answers: {
job: (jobs[1] ?? jobs[0])?.id ?? "",
size: (sizes[1] ?? sizes[0])?.id ?? "",
timeline: timelines[0]?.id ?? "",
},
};
}
if (state === "hover" || state === "active") {
return { step: 0, submitted: false, answers: { ...none, job: (jobs[1] ?? jobs[0])?.id ?? "" } };
}
return { step: 0, submitted: false, answers: none };
}
function validateContact(name: string, phone: string, address: string, c: QuoteRequest2Copy) {
const digits = phone.replace(/[^0-9]/g, "");
return {
name: name.trim().length < 2 ? c.errorName : undefined,
phone: digits.length < 10 || digits.length > 15 ? c.errorPhone : undefined,
address: address.trim().length < 5 ? c.errorAddress : undefined,
} as Partial<Record<ContactKey, string>>;
}
function formatPhone(value: string) {
const v = value.trim();
if (v.startsWith("+")) return v;
const d = v.replace(/[^0-9]/g, "");
if (d.length === 10) return `(${d.slice(0, 3)}) ${d.slice(3, 6)}-${d.slice(6)}`;
return v;
}
function fill(template: string, vars: Record<string, string | number>) {
return template.replace(/[{]([a-zA-Z]+)[}]/g, (m, k: string) => (k in vars ? String(vars[k]) : m));
}
function isThenable(v: unknown): v is PromiseLike<unknown> {
return !!v && typeof (v as PromiseLike<unknown>).then === "function";
}
function cx(...parts: (string | false | null | undefined)[]) {
return parts.filter(Boolean).join(" ");
}
const CONTACT_KEYS: ContactKey[] = ["name", "phone", "address"];
const JOB_ICONS: LucideIcon[] = [Hammer, Home, Search];
const BAR_HEIGHTS = [9, 13, 18, 24];
const DEFAULT_HEADLINE = (
<>
Your free roof quote is <span className="qs-mark">three taps away</span>
</>
);
const DEFAULT_POINTS = ["About a minute to finish", "Free quote, nothing to pay", "Go back and change anything"];
const DEFAULT_JOBS: QuoteJob[] = [
{ id: "repair", label: "Repair", short: "Repair", detail: "Fix leaks and damage" },
{ id: "replace", label: "Full replacement", short: "Replacement", detail: "A brand-new roof" },
{ id: "inspect", label: "Inspection", short: "Inspection", detail: "A full roof check-up" },
];
const DEFAULT_SIZES: QuoteSize[] = [
{ id: "small", label: "Small", range: "Under 1,500 sq ft", scale: 1 },
{ id: "medium", label: "Medium", range: "1,500–2,500 sq ft", scale: 2 },
{ id: "large", label: "Large", range: "2,500–3,500 sq ft", scale: 3 },
{ id: "xl", label: "Extra large", range: "Over 3,500 sq ft", scale: 4 },
{ id: "unsure", label: "Not sure", range: "Pick this if you have no idea yet", scale: 0 },
];
const DEFAULT_TIMELINES: QuoteTimeline[] = [
{ id: "asap", label: "As soon as possible", short: "ASAP", detail: "There's a leak or damage now", spot: rocket },
{ id: "month", label: "Within a month", short: "This month", detail: "Ready to book soon", spot: calendar },
{ id: "quarter", label: "In 1–3 months", short: "1–3 months", detail: "Planning ahead", spot: clock },
{ id: "planning", label: "Just planning", short: "Planning", detail: "Comparing options first", spot: checklist },
];
const DEFAULT_COPY: QuoteRequest2Copy = {
stepJob: "Job type",
stepSize: "Roof size",
stepTime: "Timing",
stepContact: "Your details",
jobTitle: "What does your roof need?",
jobHint: "Tap the one that fits. You can change it any time.",
sizeTitle: "About how big is your roof?",
sizeHint: "A rough guess is fine.",
timeTitle: "When do you want it done?",
timeHint: "Pick the closest fit.",
contactTitle: "Last step: how do we reach you?",
contactHint: "Add your details, then tap the button below to get your free quote.",
counter: "Step {current} of {total}",
progressLabel: "Your quote progress",
now: "Now",
upcoming: "To do",
srDone: "done, go back to change it",
srCurrent: "current step",
srTodo: "not started",
next: "Next: {step}",
back: "Back",
sending: "Sending your request…",
nameLabel: "Full name",
namePlaceholder: "Jane Smith",
phoneLabel: "Phone number",
phonePlaceholder: "(555) 123-4567",
addressLabel: "Property address",
addressPlaceholder: "12 Maple Lane, Springfield",
errorName: "Please enter your name.",
errorPhone: "Please enter a phone number with area code.",
errorAddress: "Please enter the property address.",
errorSummaryOne: "Please fix 1 field above to get your free quote.",
errorSummaryMany: "Please fix {count} fields above to get your free quote.",
visualIdle: "Start with the job your roof needs.",
};
const S = ".cf-quote-request-2";
const EASE = "cubic-bezier(.2,.7,.2,1)";
const BTN_BG = "linear-gradient(oklch(from var(--qs-b) calc(l + 0.04) c h), oklch(from var(--qs-b2) calc(l - 0.02) c h))";
const BTN_BG_HOVER = "linear-gradient(oklch(from var(--qs-b) calc(l - 0.01) c h), oklch(from var(--qs-b2) calc(l - 0.07) c h))";
const BTN_SHADOW =
"inset 0 1px 0 oklch(from var(--qs-b) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--qs-b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.3), 0 8px 16px -6px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.42)";
const BTN_SHADOW_HOVER =
"inset 0 1px 0 oklch(from var(--qs-b) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--qs-b) calc(l - 0.18) c h), 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.32), 0 12px 20px -6px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.5)";
const BTN_SHADOW_PRESS =
"inset 0 2px 5px oklch(from var(--qs-b) calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from var(--qs-b) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.3)";
const TILE_HOVER = "background: var(--qs-tile-hover); border-color: oklch(from var(--ink) l c h / 0.24); transform: translateY(-2px);";
const TILE_PRESS = "background: var(--qs-tile-press); transform: scale(0.985);";
const CSS = `
${S} {
--qs-tile: color-mix(in oklch, var(--ink) 4%, var(--card));
--qs-tile-hover: color-mix(in oklch, var(--ink) 7%, var(--card));
--qs-tile-press: color-mix(in oklch, var(--ink) 9%, var(--card));
--qs-line: oklch(from var(--ink) l c h / 0.12);
--qs-ring: oklch(from var(--field-focus, var(--accent)) l c h / 0.55);
--qs-marker: var(--marker, rgb(250 227 124 / 0.85));
--qs-glyph: var(--qs-badge-glyph, #fff);
position: relative;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
}
${S} *, ${S} *::before, ${S} *::after { box-sizing: border-box; }
${S} .qs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
${S} .qs-wrap { max-width: 46rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1024px) {
${S} .qs-wrap { max-width: 1120px; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: start; }
${S} .qs-offer { position: sticky; top: 32px; }
}
${S} .qs-title { margin: 0 0 16px; 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(2rem, 3.6vw, 3.25rem); line-height: 1.06; color: var(--ink); text-wrap: balance; }
${S} .qs-mark { background-image: linear-gradient(to bottom, transparent 0 40%, var(--qs-marker) 40% 94%, transparent 94%); padding: 0 0.1em; margin: 0 -0.04em; border-radius: 0.18em 0.34em 0.22em 0.3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
${S} .qs-lead { margin: 0; max-width: 40rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
${S} .qs-points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
${S} .qs-points li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
${S} .qs-badge { flex: 0 0 22px; width: 22px; height: 22px; margin-top: -1px; border-radius: 999px; display: grid; place-items: center; background: var(--success); color: var(--qs-glyph); }
${S} .qs-visual { display: none; margin: 32px 0 0; }
@media (min-width: 1024px) { ${S} .qs-visual { display: block; } }
${S} .qs-visual-art { height: clamp(220px, 22vw, 300px); display: flex; align-items: flex-end; }
${S} .qs-visual img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.22)) drop-shadow(0 14px 16px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.16)); animation: qs-swap .45s ${EASE} both; }
${S} .qs-visual figcaption { margin-top: 16px; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
${S} .qs-visual figcaption strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: clamp(1.0625rem, 1.25vw, 1.125rem); font-weight: 800; color: var(--ink); }
${S} .qs-card { min-width: 0; background: var(--card); color: var(--ink); border: 1px solid var(--card-border, color-mix(in oklch, var(--accent) 22%, var(--card))); border-radius: var(--card-radius, var(--radius, 14px)); box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.22), 0 12px 24px -8px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.32))); padding: clamp(20px, 3vw, 32px); }
${S} .qs-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
${S} .qs-progress { margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid var(--qs-line); }
${S} .qs-count { margin: 0 0 12px; font-size: 14px; line-height: 1.2; font-weight: 800; color: var(--ink); }
${S} .qs-count b { color: var(--accent); font-weight: 800; }
${S} .qs-segs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
${S} .qs-seg { min-width: 0; }
${S} .qs-seg-btn { appearance: none; width: 100%; display: grid; align-content: start; gap: 6px; padding: 4px 2px; margin: 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
${S} .qs-seg-btn:disabled { cursor: default; }
${S} .qs-seg-btn:focus-visible { outline: 3px solid var(--qs-ring); outline-offset: 3px; }
${S} .qs-seg-track { display: block; height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in oklch, var(--ink) 10%, var(--card)); }
${S} .qs-seg-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent-fill, var(--accent)); transform: scaleX(0); transform-origin: left center; transition: transform .5s ${EASE}; }
${S} .qs-seg.is-current .qs-seg-fill { transform: scaleX(0.16); }
${S} .qs-seg.is-filled .qs-seg-fill { transform: scaleX(1); }
${S} .qs-seg-name { margin-top: 4px; font-size: 14px; line-height: 1.2; font-weight: 700; color: var(--muted); }
${S} .qs-seg-value { font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
${S} .qs-seg-value svg { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.3em; color: var(--success); }
${S} .qs-seg.is-current .qs-seg-name, ${S} .qs-seg.is-current .qs-seg-value { color: var(--accent); }
${S} .qs-seg.is-todo .qs-seg-value { color: var(--muted); font-weight: 600; }
@media (hover: hover) { ${S} .qs-seg-btn:not(:disabled):hover .qs-seg-value { text-decoration: underline; text-underline-offset: 0.18em; } }
@media (min-width: 640px) { ${S} .qs-count { display: none; } }
@media (max-width: 639px) {
${S} .qs-progress { margin-bottom: 20px; padding-bottom: 16px; }
${S} .qs-seg-name, ${S} .qs-seg-value { display: none; }
${S} .qs-seg-btn { padding: 8px 0; }
}
${S} .qs-step { animation: qs-rise .45s ${EASE} both; }
${S} .qs-step-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: var(--display-weight, 800); letter-spacing: -0.01em; text-transform: var(--display-case, none); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; color: var(--ink); text-wrap: balance; }
${S} .qs-step-title:focus { outline: none; }
${S} .qs-step-hint { margin: 0 0 20px; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
${S} .qs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) {
${S} .qs-grid--jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
${S} .qs-grid--sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
${S} .qs-tile { position: relative; display: block; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: qs-rise .45s ${EASE} both; }
${S} .qs-tile:nth-child(2) { animation-delay: .07s; }
${S} .qs-tile:nth-child(3) { animation-delay: .14s; }
${S} .qs-tile:nth-child(4) { animation-delay: .21s; }
${S} .qs-tile:nth-child(n+5) { animation-delay: .28s; }
${S} .qs-tile.is-wide { grid-column: 1 / -1; }
${S} .qs-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
${S} .qs-face { position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius, 12px); background: var(--qs-tile); border: 1.5px solid oklch(from var(--ink) l c h / 0.1); color: var(--ink); transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
@media (hover: hover) { ${S} .qs-tile:hover .qs-face { ${TILE_HOVER} } }
${S}.is-hover .qs-grid > .qs-tile:first-child .qs-face { ${TILE_HOVER} }
${S} .qs-tile:active .qs-face, ${S}.is-active .qs-grid > .qs-tile:first-child .qs-face { ${TILE_PRESS} }
${S} .qs-radio:checked + .qs-face { background: color-mix(in oklch, var(--accent) 10%, var(--card)); border-color: var(--accent); box-shadow: var(--shadow-md, 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.22), 0 4px 10px -2px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.2)); transform: translateY(-2px); }
${S} .qs-tile:active .qs-radio:checked + .qs-face { transform: scale(0.985); }
${S} .qs-radio:focus-visible + .qs-face { outline: 3px solid var(--qs-ring); outline-offset: 2px; }
${S} .qs-radio:disabled + .qs-face { cursor: not-allowed; background: color-mix(in oklch, var(--ink) 3%, var(--card)); border-color: oklch(from var(--ink) l c h / 0.08); color: var(--muted); box-shadow: none; transform: none; }
${S} .qs-radio:disabled + .qs-face img, ${S} .qs-radio:disabled + .qs-face .qs-spot { opacity: 0.5; }
${S} .qs-tile:has(.qs-radio:disabled) { cursor: not-allowed; }
${S} .qs-dot { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--card); border: 2px solid oklch(from var(--ink) l c h / 0.28); color: var(--accent-fill-ink, var(--card)); transition: background-color .16s ease, border-color .16s ease; }
${S} .qs-radio:checked + .qs-face .qs-dot { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); animation: qs-pop .3s ease both; }
${S} .qs-art { display: flex; align-items: center; justify-content: center; height: clamp(84px, 9vw, 124px); margin-top: 8px; }
${S} .qs-art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.22)) drop-shadow(0 10px 12px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.16)); }
${S} .qs-disc { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 12%, var(--card)); color: var(--accent); }
${S} .qs-spot { display: flex; align-items: center; height: 56px; }
${S} .qs-scale { display: flex; align-items: flex-end; gap: 3px; height: 24px; color: var(--accent); }
${S} .qs-bar { display: block; width: 7px; border-radius: 2px; background: color-mix(in oklch, var(--ink) 14%, var(--card)); }
${S} .qs-bar.is-on { background: var(--accent-fill, var(--accent)); }
${S} .qs-text { display: block; min-width: 0; }
${S} .qs-grid--jobs .qs-text { text-align: center; }
${S} .qs-tile-title { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.2; color: inherit; text-wrap: balance; }
${S} .qs-tile-detail { display: block; margin-top: 4px; font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--muted); text-wrap: balance; hyphens: manual; }
${S} .qs-tile.is-wide .qs-face { flex-direction: row; align-items: center; gap: 16px; }
${S} .qs-tile.is-wide .qs-scale { flex: 0 0 auto; height: auto; }
${S} .qs-tile.is-wide .qs-text { padding-right: 32px; }
@media (max-width: 639px) {
${S} .qs-face { padding: 14px; }
${S} .qs-dot { top: 10px; right: 10px; }
${S} .qs-grid--jobs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
${S} .qs-grid--jobs .qs-face { flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
${S} .qs-grid--jobs .qs-art { flex: 0 0 88px; height: 72px; margin-top: 0; }
${S} .qs-grid--jobs .qs-text { text-align: left; padding-right: 36px; }
${S} .qs-grid--jobs .qs-dot { top: 50%; translate: 0 -50%; right: 14px; }
}
${S} .qs-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) {
${S} .qs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
${S} .qs-field--wide { grid-column: 1 / -1; }
}
${S} .qs-field { min-width: 0; animation: qs-rise .45s ${EASE} both; }
${S} .qs-field:nth-child(2) { animation-delay: .07s; }
${S} .qs-field:nth-child(3) { animation-delay: .14s; }
${S} .qs-label { display: block; margin-bottom: 8px; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--label-ink, var(--ink)); }
${S} .qs-control { position: relative; }
${S} .qs-input { display: block; width: 100%; height: 56px; padding: 0 48px 0 16px; margin: 0; appearance: none; font-family: var(--font-body); font-size: 17px; 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(--shadow, oklch(0.22 0.03 256)) l c h / 0.06); transition: border-color .16s ease, box-shadow .16s ease; }
${S} .qs-input::placeholder { color: color-mix(in oklch, var(--field-ink) 65%, var(--field)); opacity: 1; }
@media (hover: hover) { ${S} .qs-input:not(:disabled):hover { border-color: color-mix(in oklch, var(--ink) 38%, transparent); } }
${S} .qs-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); }
${S} .is-invalid .qs-input { border-color: var(--danger); }
${S} .is-invalid .qs-input:focus { box-shadow: 0 0 0 3px oklch(from var(--danger) l c h / 0.28); }
${S} .qs-input:disabled { cursor: not-allowed; background: color-mix(in oklch, var(--ink) 4%, var(--field)); }
${S} .qs-ok { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--success); color: var(--qs-glyph); animation: qs-pop .3s ease both; }
${S} .qs-error { margin: 8px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--danger); text-wrap: pretty; }
${S} .qs-error svg, ${S} .qs-summary svg, ${S} .qs-promise svg, ${S} .qs-privacy svg { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
${S} .qs-summary { margin: 24px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 15px; line-height: 1.4; font-weight: 700; }
${S} .qs-nav { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
${S} .qs-next { min-width: 220px; }
${S} .qs-final { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) {
${S} .qs-final { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
${S} .qs-final .qs-back-final { grid-column: 1; grid-row: 1; }
${S} .qs-final-main { grid-column: 2; grid-row: 1; }
}
${S} .qs-cta { width: 100%; min-height: 64px; }
${S} .qs-back-final { min-height: 64px; }
${S} .qs-promise { margin: 14px 0 0; text-align: center; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--ink); text-wrap: pretty; }
${S} .qs-promise svg { color: var(--accent); }
${S} .qs-privacy { margin: 6px 0 0; text-align: center; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--muted); text-wrap: pretty; }
@media (max-width: 639px) {
${S} .qs-nav { flex-direction: column-reverse; align-items: stretch; }
${S} .qs-nav-spacer { display: none; }
${S} .qs-next, ${S} .qs-btn2 { width: 100%; min-width: 0; }
}
${S} .qs-btn { --qs-b: var(--button-bg, var(--cta)); --qs-b2: var(--button-bg-2, var(--cta-2)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; margin: 0; 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; letter-spacing: -0.005em; text-align: center; text-wrap: balance; color: var(--button-ink, var(--cta-ink)); text-shadow: var(--button-text-shadow, none); background: ${BTN_BG}; box-shadow: var(--button-shadow, ${BTN_SHADOW}); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
@media (hover: hover) { ${S} .qs-btn:not(:disabled):not([aria-disabled=true]):hover { background: ${BTN_BG_HOVER}; box-shadow: var(--button-shadow, ${BTN_SHADOW_HOVER}); transform: translateY(-1px); } }
${S}.is-hover .qs-next:not(:disabled) { background: ${BTN_BG_HOVER}; box-shadow: var(--button-shadow, ${BTN_SHADOW_HOVER}); transform: translateY(-1px); }
${S} .qs-btn:not(:disabled):not([aria-disabled=true]):active, ${S}.is-active .qs-next:not(:disabled) { background: ${BTN_BG_HOVER}; box-shadow: ${BTN_SHADOW_PRESS}; transform: translateY(1px); }
${S} .qs-btn:focus-visible { outline: 3px solid var(--qs-ring); outline-offset: 3px; }
${S} .qs-btn:disabled { background: color-mix(in oklch, var(--ink) 8%, var(--card)); color: var(--muted); text-shadow: none; box-shadow: inset 0 0 0 1px oklch(from var(--ink) l c h / 0.08); transform: none; cursor: not-allowed; }
${S} .qs-btn[aria-disabled=true] { cursor: progress; }
${S} .qs-btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; margin: 0; border: 1px solid var(--button-2-border, transparent); 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; color: var(--button-2-ink, var(--secondary-ink)); background: var(--button-2-bg, var(--secondary)); box-shadow: var(--button-2-shadow, var(--shadow-sm)); cursor: pointer; transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease; }
@media (hover: hover) { ${S} .qs-btn2:not(:disabled):hover { background: oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.04) c h); } }
${S} .qs-btn2:not(:disabled):active { transform: translateY(1px); box-shadow: none; background: oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.07) c h); }
${S} .qs-btn2:focus-visible { outline: 3px solid var(--qs-ring); outline-offset: 3px; }
${S} .qs-btn2:disabled { color: var(--muted); box-shadow: none; cursor: not-allowed; }
${S} .qs-spin { animation: qs-spin .8s linear infinite; }
@keyframes qs-rise { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes qs-swap { from { opacity: .82; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes qs-pop { from { transform: scale(.9); } to { transform: scale(1); } }
@keyframes qs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
${S} *, ${S} *::before, ${S} *::after { animation: none !important; transition: none !important; }
${S} .qs-face, ${S} .qs-btn, ${S} .qs-btn2 { transform: none !important; }
}
`;
pieces/forms/quote-request-2/specimen.tsx 59 lines
import __studioImaged0685d0c from "../assets/1d163fc0da45f382.webp";
import __studioImageae3e74d5 from "../assets/c9ce93b176e0c7d6.webp";
import __studioImage67b42f8c from "../assets/88c0b80b7d08cc1d.webp";
// Specimen: Tall Pines Roofing's picture-tile quote stepper, with generated job illustrations in the item slots.
import * as React from "react";
import { QuoteRequest2 } from "../quote-request-2";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"] as const;
type SpecimenState = (typeof states)[number];
export default function QuoteRequest2Specimen({ state = "default" }: { state?: SpecimenState }) {
const jobs = [
{
id: "repair",
label: "Repair",
short: "Repair",
detail: "Fix leaks and damage",
image: slot(
"item-1",
__studioImaged0685d0c,
),
imageAlt: "Illustration of fresh shingles fitted into a damaged roof section",
},
{
id: "replace",
label: "Full replacement",
short: "Replacement",
detail: "A brand-new roof",
image: slot(
"item-2",
__studioImageae3e74d5,
),
imageAlt: "Illustration of a house with a brand-new charcoal shingle roof",
},
{
id: "inspect",
label: "Inspection",
short: "Inspection",
detail: "A full roof check-up",
image: slot(
"item-3",
__studioImage67b42f8c,
),
imageAlt: "Illustration of a magnifying glass checking a roof section",
},
];
return (
<QuoteRequest2
state={state}
lead="Tell Tall Pines Roofing what your roof needs, roughly how big it is and when you want it done. Then add your number to get your free quote."
jobs={jobs}
responseTime="Tall Pines Roofing calls you back within one business day."
onSubmit={() => undefined}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalQuoteRequest2 |
React.ReactNode |
|
lead OptionalQuoteRequest2 |
string |
|
points OptionalQuoteRequest2 |
string[] |
|
jobs OptionalQuoteRequest2 |
QuoteJob[] |
|
sizes OptionalQuoteRequest2 |
QuoteSize[] |
|
timelines OptionalQuoteRequest2 |
QuoteTimeline[] |
|
ctaLabel OptionalQuoteRequest2 |
string |
|
responseTime OptionalQuoteRequest2 |
string |
|
privacy OptionalQuoteRequest2 |
string |
|
copy OptionalQuoteRequest2 |
Partial<QuoteRequest2Copy> |
|
onSubmit OptionalQuoteRequest2 |
(values: QuoteRequest2Values) => void | PromiseLike<unknown> |
|
state OptionalQuoteRequest2 |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalQuoteRequest2 |
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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
1d163fc0da45f382.webp
image/webp · 243 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
7c36d7f4dd4ae594.webp
image/webp · 26.5 KB
-
88c0b80b7d08cc1d.webp
image/webp · 109 KB
-
c9ce93b176e0c7d6.webp
image/webp · 138 KB
-
d0943b629c0b1324.webp
image/webp · 8.87 KB
-
d7814fce240ddf0e.webp
image/webp · 17.6 KB