Free Audit 2
Free SEO audit offer as a magazine spread: the visitor flips through pages of the sample report and reads the five
Use it in a prompt
Use offer/free-audit-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/offer/free-audit-2.tsx. - Import it and pass your copy and images (Props tab):
import { FreeAudit2 } from "@/components/funneldna/offer/free-audit-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/free-audit-2/component.tsx 626 lines
// layout: magazine-spread
// Free SEO audit offer as a magazine spread: the visitor flips through pages of the sample report and reads the five
// checks before a short website + email form asks, so the free audit feels concrete, valuable and safe to request.
import * as React from "react";
import { AlertCircle, Check, FileCheck2, Globe, Lock, Mail, Maximize2, Quote, Scissors, X, ZoomIn } from "lucide-react";
import type { LucideIcon } from "lucide-react";
export type FreeAudit2Page = {
/** Report page image (slots item-1 … item-n) */
image: string;
alt: string;
/** Short title under the thumbnail and in the lightbox */
caption: string;
};
export type FreeAudit2Check = {
title: string;
/** What the audit looks at */
detail?: string;
/** What the client walks away with from this check */
keep: string;
};
export type FreeAudit2Values = { website: string; email: string };
export type FreeAudit2Copy = {
formLabel: string;
websiteLabel: string;
websitePlaceholder: string;
websiteError: string;
emailLabel: string;
emailPlaceholder: string;
emailError: string;
/** Screen-reader text for the valid-field tick */
valid: string;
/** Lead-in before each check's take-away */
keepLabel: string;
/** {value} is replaced by the value prop */
worth: string;
coverOpen: string;
thumbsHint: string;
/** {n} is replaced by the page number */
pageLabel: string;
/** {n} and {caption} are replaced */
openPage: string;
/** {n} and {total} are replaced */
counter: string;
close: string;
prev: string;
next: string;
};
export type FreeAudit2Props = {
headline?: string;
/** Phrase inside the headline that gets the marker swipe */
highlight?: string;
lead?: string;
/** Pull line from the lead strategist; hidden when empty */
quote?: string;
quoteName?: string;
quoteRole?: string;
/** Sample report pages: the first shows large, every page opens in the lightbox */
pages?: FreeAudit2Page[];
/** What the audit checks, ideally five */
checks?: FreeAudit2Check[];
/** Risk reversal that leads the form */
riskTitle?: string;
riskText?: string;
/** Supplied value of the audit, e.g. "$500"; the coupon line hides when empty */
value?: string;
valueNote?: string;
/** Button label; the price follows the action */
label?: string;
/** One short line under the button */
note?: string;
copy?: Partial<FreeAudit2Copy>;
/** Called with validated values; the page wires what happens next */
onSubmit?: (values: FreeAudit2Values) => void;
state?: "default" | "hover" | "active" | "disabled" | "error";
className?: string;
};
const DEFAULT_COPY: FreeAudit2Copy = {
formLabel: "Request your free audit",
websiteLabel: "Your website",
websitePlaceholder: "yoursite.com",
websiteError: "Enter your website address, like yoursite.com.",
emailLabel: "Where should we send it?",
emailPlaceholder: "you@example.com",
emailError: "Enter a valid email, like you@example.com.",
valid: "Looks good",
keepLabel: "You keep:",
worth: "Worth {value},",
coverOpen: "Open full size",
thumbsHint: "Tap any page to read it full size.",
pageLabel: "Page {n}",
openPage: "Open page {n} full size: {caption}",
counter: "Page {n} of {total}",
close: "Close",
prev: "Previous",
next: "Next",
};
const DEFAULT_CHECKS: FreeAudit2Check[] = [
{ title: "Technical health", detail: "Crawl errors, broken links and load speed on the pages that earn you money.", keep: "a ranked fix list your developer can start on" },
{ title: "Keyword gaps", detail: "The searches your buyers type that you don’t rank for yet.", keep: "your best untapped keywords, in order" },
{ title: "Page content", detail: "Titles, headings and copy on your most important pages.", keep: "rewritten page titles you can paste in" },
{ title: "Backlinks", detail: "Who links to you, and which links hold you back.", keep: "a clean-up list and the links worth earning" },
{ title: "Competitors", detail: "Why the sites above you outrank you, page by page.", keep: "a side-by-side of where they win" },
];
type Key = keyof FreeAudit2Values;
type FieldOpts = {
label: string;
placeholder: string;
error: string;
Icon: LucideIcon;
inputRef: React.Ref<HTMLInputElement>;
type: "text" | "email";
inputMode: "url" | "email";
autoComplete: string;
};
export function FreeAudit2(props: FreeAudit2Props) {
const {
headline = "Flip through a sample audit, then get your site’s report free",
highlight = "your site’s report free",
lead = "Five checks on your site, one plain-English report, and a fix list in the order to do it.",
quote = "",
quoteName = "",
quoteRole = "",
pages = [],
checks = DEFAULT_CHECKS,
riskTitle = "Keep the report, even if you never hire us",
riskText = "Tell us your site and where to send it. That’s the whole ask.",
value = "",
valueNote = "yours free today.",
label = "Send my free audit · $0",
note = "Takes 30 seconds to request.",
copy: copyProp,
onSubmit,
state = "default",
className,
} = props;
const copy: FreeAudit2Copy = { ...DEFAULT_COPY, ...copyProp };
const uid = React.useId();
const [values, setValues] = React.useState<FreeAudit2Values>({ website: "", email: "" });
const [touched, setTouched] = React.useState({ website: state === "error", email: state === "error" });
const [open, setOpen] = React.useState<number | null>(null);
const urlRef = React.useRef<HTMLInputElement>(null);
const emailRef = React.useRef<HTMLInputElement>(null);
React.useEffect(() => {
setTouched({ website: state === "error", email: state === "error" });
}, [state]);
const bad = { website: !isUrl(values.website), email: !isEmail(values.email) };
const showErr = (k: Key) => touched[k] && bad[k];
const showOk = (k: Key) => touched[k] && !bad[k];
const disabled = state === "disabled";
const cover = pages[0] as FreeAudit2Page | undefined;
const submit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (state === "disabled") return;
setTouched({ website: true, email: true });
if (bad.website) {
urlRef.current?.focus();
return;
}
if (bad.email) {
emailRef.current?.focus();
return;
}
onSubmit?.({ website: values.website.trim(), email: values.email.trim() });
};
const renderField = (k: Key, o: FieldOpts) => {
const id = `${uid}-${k}`;
const err = showErr(k);
return (
<div className="fa-field">
<label className="fa-label" htmlFor={id}>{o.label}</label>
<div className="fa-input-wrap">
<o.Icon className="fa-input-icon" size={20} strokeWidth={2.5} aria-hidden="true" />
<input
id={id}
ref={o.inputRef}
className="fa-input"
type={o.type}
inputMode={o.inputMode}
autoComplete={o.autoComplete}
autoCapitalize="none"
spellCheck={false}
disabled={disabled}
placeholder={o.placeholder}
value={values[k]}
onChange={(e) => {
const next = e.target.value;
setValues((v) => ({ ...v, [k]: next }));
}}
onBlur={() => {
if (values[k].trim()) setTouched((t) => ({ ...t, [k]: true }));
}}
aria-invalid={err ? true : undefined}
aria-describedby={err ? `${id}-err` : undefined}
/>
{showOk(k) ? (
<span className="fa-ok">
<Check size={14} strokeWidth={3} aria-hidden="true" />
<span className="fa-sr">{copy.valid}</span>
</span>
) : null}
</div>
{err ? (
<p className="fa-err" id={`${id}-err`}>
<AlertCircle className="fa-ic" size={16} strokeWidth={2.5} aria-hidden="true" />
{o.error}
</p>
) : null}
</div>
);
};
const btnClass = ["fa-btn", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""].filter(Boolean).join(" ");
return (
<section className={["cf-free-audit-2", className].filter(Boolean).join(" ")} aria-labelledby={`${uid}-h`}>
<style>{CSS}</style>
<div className="fa-wrap">
<header className="fa-head">
<h2 id={`${uid}-h`} className="fa-h2 fa-rise">{withMarker(headline, highlight)}</h2>
{lead || quote ? (
<div className={`fa-grid fa-sub${lead && quote ? "" : " is-solo"}`}>
{lead ? <p className="fa-lead fa-rise" style={delay(1)}>{lead}</p> : null}
{quote ? (
<figure className="fa-quote fa-rise" style={delay(2)}>
<Quote className="fa-quote-icon" size={24} strokeWidth={2.5} aria-hidden="true" />
<blockquote>
<p>{quote}</p>
</blockquote>
{quoteName || quoteRole ? (
<figcaption>
{quoteName ? <strong>{quoteName}</strong> : null}
{quoteName && quoteRole ? ", " : null}
{quoteRole}
</figcaption>
) : null}
</figure>
) : null}
</div>
) : null}
</header>
<div className={`fa-grid fa-spread${cover ? "" : " is-solo"}`}>
{cover ? (
<div className="fa-left fa-rise" style={delay(2)}>
<div className="fa-page">
<button
type="button"
className="fa-cover"
aria-haspopup="dialog"
aria-label={fill(copy.openPage, { n: 1, caption: cover.caption })}
onClick={() => setOpen(0)}
>
<img src={cover.image} alt={cover.alt} width={600} height={800} />
<span className="fa-cover-cap">
<strong>{fill(copy.pageLabel, { n: 1 })} · {cover.caption}</strong>{" "}
<span className="fa-cover-open">
<Maximize2 className="fa-ic" size={16} strokeWidth={2.5} aria-hidden="true" />
{copy.coverOpen}
</span>
</span>
</button>
{pages.length > 1 ? (
<>
<p className="fa-hint">
<ZoomIn className="fa-ic" size={16} strokeWidth={2.5} aria-hidden="true" />
{copy.thumbsHint}
</p>
<ul className="fa-thumbs" style={{ "--n": pages.length } as React.CSSProperties}>
{pages.map((p, i) => (
<li key={`${p.caption}-${i}`}>
<button
type="button"
className="fa-thumb"
aria-haspopup="dialog"
aria-label={fill(copy.openPage, { n: i + 1, caption: p.caption })}
onClick={() => setOpen(i)}
>
<img src={p.image} alt="" width={300} height={400} loading="lazy" />
<span className="fa-thumb-text">
<span className="fa-thumb-n">{fill(copy.pageLabel, { n: i + 1 })}</span>
<span className="fa-thumb-cap">{p.caption}</span>
</span>
</button>
</li>
))}
</ul>
</>
) : null}
</div>
</div>
) : null}
<div className="fa-right">
{checks.length ? (
<ol className="fa-checks">
{checks.map((c, i) => (
<li key={`${c.title}-${i}`} className="fa-check fa-rise" style={delay(i + 1)}>
<span className="fa-num" aria-hidden="true">{i + 1}</span>
<div className="fa-check-body">
<h3 className="fa-check-title">{c.title}</h3>
{c.detail ? <p className="fa-check-detail">{c.detail}</p> : null}
<p className="fa-keep">
<FileCheck2 className="fa-ic" size={18} strokeWidth={2.5} aria-hidden="true" />
<strong>{copy.keepLabel}</strong> {c.keep}
</p>
</div>
</li>
))}
</ol>
) : null}
<form className="fa-card fa-rise" style={delay(3)} noValidate aria-label={copy.formLabel} onSubmit={submit}>
<h3 className="fa-risk">{riskTitle}</h3>
{riskText ? <p className="fa-risk-text">{riskText}</p> : null}
{value ? (
<p className="fa-value">
<Scissors className="fa-ic" size={18} strokeWidth={2.5} aria-hidden="true" />
<strong>{fill(copy.worth, { value })}</strong> {valueNote}
</p>
) : null}
<div className="fa-fields">
{renderField("website", {
label: copy.websiteLabel,
placeholder: copy.websitePlaceholder,
error: copy.websiteError,
Icon: Globe,
inputRef: urlRef,
type: "text",
inputMode: "url",
autoComplete: "url",
})}
{renderField("email", {
label: copy.emailLabel,
placeholder: copy.emailPlaceholder,
error: copy.emailError,
Icon: Mail,
inputRef: emailRef,
type: "email",
inputMode: "email",
autoComplete: "email",
})}
</div>
<button type="submit" className={btnClass} disabled={disabled}>{label}</button>
{note ? (
<p className="fa-note">
<Lock className="fa-ic" size={16} strokeWidth={2.5} aria-hidden="true" />
{note}
</p>
) : null}
</form>
</div>
</div>
</div>
{open !== null && pages.length ? <Lightbox id={uid} pages={pages} index={open} setOpen={setOpen} copy={copy} /> : null}
</section>
);
}
export default FreeAudit2;
function Lightbox({
id,
pages,
index,
setOpen,
copy,
}: {
id: string;
pages: FreeAudit2Page[];
index: number;
setOpen: React.Dispatch<React.SetStateAction<number | null>>;
copy: FreeAudit2Copy;
}) {
const panelRef = React.useRef<HTMLDivElement>(null);
const closeRef = React.useRef<HTMLButtonElement>(null);
const total = pages.length;
const close = React.useCallback(() => setOpen(null), [setOpen]);
const step = React.useCallback(
(dir: number) => setOpen((i) => (i === null ? i : (i + dir + total) % total)),
[setOpen, total],
);
React.useEffect(() => {
const opener = document.activeElement instanceof HTMLElement ? document.activeElement : null;
closeRef.current?.focus();
const onKey = (e: KeyboardEvent) => {
if (e.key === "Escape") {
e.preventDefault();
close();
return;
}
if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
e.preventDefault();
step(e.key === "ArrowRight" ? 1 : -1);
return;
}
if (e.key !== "Tab") return;
const panel = panelRef.current;
if (!panel) return;
const nodes = Array.from(panel.querySelectorAll<HTMLElement>("button:not([disabled]), [href], [tabindex]:not([tabindex='-1'])"));
if (!nodes.length) return;
const first = nodes[0];
const last = nodes[nodes.length - 1];
const active = document.activeElement;
if (!panel.contains(active)) {
e.preventDefault();
(e.shiftKey ? last : first).focus();
} else if (e.shiftKey && active === first) {
e.preventDefault();
last.focus();
} else if (!e.shiftKey && active === last) {
e.preventDefault();
first.focus();
}
};
document.addEventListener("keydown", onKey);
return () => {
document.removeEventListener("keydown", onKey);
opener?.focus();
};
}, [close, step]);
const page = pages[Math.min(index, total - 1)];
if (!page) return null;
return (
<div
className="fa-lb"
onMouseDown={(e) => {
if (e.target === e.currentTarget) close();
}}
>
<div
ref={panelRef}
className="fa-lb-panel"
role="dialog"
aria-modal="true"
aria-labelledby={`${id}-lb-title`}
aria-describedby={`${id}-lb-count`}
>
<div className="fa-lb-head">
<div aria-live="polite">
<p id={`${id}-lb-count`} className="fa-lb-count">{fill(copy.counter, { n: index + 1, total })}</p>
<h3 id={`${id}-lb-title`} className="fa-lb-title">{page.caption}</h3>
</div>
<button ref={closeRef} type="button" className="fa-icon-btn" aria-label={copy.close} onClick={close}>
<X size={20} strokeWidth={2.5} aria-hidden="true" />
</button>
</div>
<div className="fa-lb-stage">
<img key={index} src={page.image} alt={page.alt} />
</div>
{total > 1 ? (
<div className="fa-lb-foot">
<button type="button" className="fa-btn-2" onClick={() => step(-1)}>{copy.prev}</button>
<button type="button" className="fa-btn-2" onClick={() => step(1)}>{copy.next}</button>
</div>
) : null}
</div>
</div>
);
}
function withMarker(text: string, phrase?: string) {
if (!phrase) return text;
const i = text.indexOf(phrase);
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className="fa-mark">{phrase}</span>
{text.slice(i + phrase.length)}
</>
);
}
function fill(text: string, vars: Record<string, string | number>) {
return text.replace(/[{]([a-z]+)[}]/gi, (whole, key: string) => (key in vars ? String(vars[key]) : whole));
}
function isUrl(raw: string) {
const v = raw.trim().replace(/^https?:[/][/]/i, "");
if (!v || v.includes(" ")) return false;
const host = v.split(/[/?#]/)[0].replace(/:[0-9]+$/, "");
return /^([a-z0-9]([a-z0-9-]*[a-z0-9])?[.])+[a-z]{2,}$/i.test(host);
}
function isEmail(raw: string) {
return /^[^@ ]+@[^@ ]+[.][^@ .]{2,}$/.test(raw.trim());
}
function delay(i: number) {
return { "--d": `${Math.min(i * 0.07, 0.28).toFixed(2)}s` } as React.CSSProperties;
}
const CSS = `
.cf-free-audit-2{--fa-shade:var(--shadow, oklch(0.22 0.03 260));--fa-line:oklch(from var(--ink) l c h / 0.14);--fa-well:color-mix(in oklch, var(--ink) 4%, var(--card));--fa-focus:var(--field-focus, var(--accent));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);overflow-x:clip}
.cf-free-audit-2 *,.cf-free-audit-2 *::before,.cf-free-audit-2 *::after{box-sizing:border-box}
.cf-free-audit-2 .fa-wrap{max-width:1120px;margin:0 auto}
.cf-free-audit-2 .fa-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:start}
.cf-free-audit-2 .fa-grid.is-solo{grid-template-columns:minmax(0,1fr)}
.cf-free-audit-2 .fa-h2{margin:0;font-family:var(--font-display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);text-wrap:balance;color:var(--ink)}
.cf-free-audit-2 .fa-mark{color:inherit;background-image:linear-gradient(transparent 0 48%, oklch(from var(--marker, #fae37c) l c h / 0.62) 48% 92%, transparent 92%);padding:0 .12em;margin:0 -.06em;border-radius:.22em .5em .3em .55em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-free-audit-2 .fa-sub{margin-top:16px}
.cf-free-audit-2 .fa-lead{margin:0;max-width:64ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-free-audit-2 .fa-quote{margin:0;display:grid;gap:12px;justify-items:start}
.cf-free-audit-2 .fa-quote-icon{color:var(--accent)}
.cf-free-audit-2 .fa-quote blockquote{margin:0}
.cf-free-audit-2 .fa-quote blockquote p{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.3;font-weight:700;letter-spacing:-0.01em;color:var(--ink);text-wrap:pretty}
.cf-free-audit-2 .fa-quote figcaption{font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-free-audit-2 .fa-quote figcaption strong{color:var(--ink);font-weight:700}
.cf-free-audit-2 .fa-spread{margin-top:48px}
.cf-free-audit-2 .fa-left,.cf-free-audit-2 .fa-right,.cf-free-audit-2 .fa-check-body{min-width:0}
.cf-free-audit-2 .fa-page{background:color-mix(in oklch, var(--ink) 4%, var(--surface));border-radius:var(--card-radius, var(--radius, 14px));padding:clamp(20px,3vw,32px)}
.cf-free-audit-2 .fa-cover,.cf-free-audit-2 .fa-thumb{display:block;width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:zoom-in;border-radius:10px}
.cf-free-audit-2 .fa-cover img,.cf-free-audit-2 .fa-thumb img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:top center;border-radius:8px;filter:drop-shadow(0 2px 3px oklch(from var(--fa-shade) l c h / 0.22)) drop-shadow(0 14px 18px oklch(from var(--fa-shade) l c h / 0.2));transition:transform .16s ease, filter .16s ease}
.cf-free-audit-2 .fa-cover:hover img,.cf-free-audit-2 .fa-thumb:hover img{transform:translateY(-3px);filter:drop-shadow(0 3px 4px oklch(from var(--fa-shade) l c h / 0.26)) drop-shadow(0 18px 22px oklch(from var(--fa-shade) l c h / 0.24))}
.cf-free-audit-2 .fa-cover:active img,.cf-free-audit-2 .fa-thumb:active img{transform:translateY(0)}
.cf-free-audit-2 .fa-cover:focus-visible,.cf-free-audit-2 .fa-thumb:focus-visible{outline:3px solid var(--fa-focus);outline-offset:6px}
.cf-free-audit-2 .fa-cover-cap{display:block;margin-top:16px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-free-audit-2 .fa-cover-cap strong{color:var(--ink);font-weight:700}
.cf-free-audit-2 .fa-cover-open{--fa-link:color-mix(in oklch, var(--link, var(--accent)) 78%, var(--ink));color:var(--fa-link);font-weight:700;white-space:nowrap;text-decoration:underline;text-decoration-color:oklch(from var(--fa-link) l c h / 0.45);text-underline-offset:.18em}
.cf-free-audit-2 .fa-ic{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;flex:none}
=======
.cf-free-audit-2 .fa-cover:hover .fa-cover-open{color:oklch(from var(--fa-link) calc(l - 0.08) c h);text-decoration-color:currentColor}
.cf-free-audit-2 .fa-ic{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;flex:none}
=======
.cf-free-audit-2 .fa-ic{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;flex:none}
.cf-free-audit-2 .fa-hint{margin:24px 0 12px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-free-audit-2 .fa-thumbs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--n, 3), minmax(0,1fr));gap:16px}
.cf-free-audit-2 .fa-thumb-text{display:grid;gap:4px;margin-top:12px}
.cf-free-audit-2 .fa-thumb-n{font-size:.875rem;line-height:1.2;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums lining-nums}
.cf-free-audit-2 .fa-thumb-cap{font-size:.9375rem;line-height:1.3;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-free-audit-2 .fa-checks{list-style:none;margin:0;padding:0}
.cf-free-audit-2 .fa-check{display:grid;grid-template-columns:2.25rem minmax(0,1fr);gap:16px;padding:20px 0;border-bottom:1px solid var(--fa-line)}
.cf-free-audit-2 .fa-check:first-child{padding-top:0}
.cf-free-audit-2 .fa-check:last-child{border-bottom:0}
.cf-free-audit-2 .fa-num{font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight, 800);color:var(--accent);font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"lnum" 1,"tnum" 1}
.cf-free-audit-2 .fa-check-title{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight, 800);letter-spacing:-0.01em;text-transform:var(--display-case, none);color:var(--ink);text-wrap:balance}
.cf-free-audit-2 .fa-check-detail{margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-free-audit-2 .fa-keep{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-free-audit-2 .fa-keep strong{font-weight:800}
.cf-free-audit-2 .fa-keep .fa-ic,.cf-free-audit-2 .fa-value .fa-ic{color:var(--accent)}
.cf-free-audit-2 .fa-card{margin-top:48px;background:var(--card);color:var(--ink);border:1px solid color-mix(in oklch, var(--accent) 26%, var(--card));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)));padding:clamp(20px,3vw,32px)}
.cf-free-audit-2 .fa-risk{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight, 800);letter-spacing:-0.01em;text-transform:var(--display-case, none);color:var(--ink);text-wrap:balance}
.cf-free-audit-2 .fa-risk-text{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-free-audit-2 .fa-value{margin:16px 0 0;padding:12px 16px;border-radius:10px;background:var(--fa-well);font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--ink)}
.cf-free-audit-2 .fa-value strong{font-weight:800}
.cf-free-audit-2 .fa-fields{display:grid;gap:16px;margin-top:24px}
.cf-free-audit-2 .fa-label{display:block;margin-bottom:8px;font-size:1rem;line-height:1.3;font-weight:700;color:var(--label-ink, var(--ink))}
.cf-free-audit-2 .fa-input-wrap{position:relative}
.cf-free-audit-2 .fa-input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:color-mix(in oklch, var(--field-ink) 65%, var(--field));pointer-events:none}
.cf-free-audit-2 .fa-input{display:block;width:100%;height:56px;margin:0;padding:0 48px;font-family:var(--font-body);font-size:1.0625rem;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(--fa-shade) l c h / 0.08);appearance:none;transition:border-color .16s ease, box-shadow .16s ease}
.cf-free-audit-2 .fa-input::placeholder{color:color-mix(in oklch, var(--field-ink) 65%, var(--field));opacity:1}
.cf-free-audit-2 .fa-input:hover{border-color:color-mix(in oklch, var(--field-ink) 40%, var(--field))}
.cf-free-audit-2 .fa-input:focus{outline:none;border-color:var(--fa-focus);box-shadow:0 0 0 3px oklch(from var(--fa-focus) l c h / 0.35)}
.cf-free-audit-2 .fa-input:disabled{background:color-mix(in oklch, var(--field-ink) 6%, var(--field));border-color:color-mix(in oklch, var(--field-ink) 14%, var(--field));box-shadow:none;cursor:not-allowed}
.cf-free-audit-2 .fa-input[aria-invalid='true']{border-color:var(--danger)}
.cf-free-audit-2 .fa-input[aria-invalid='true']:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / 0.3)}
.cf-free-audit-2 .fa-ok{position:absolute;right:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--success);color:var(--fa-badge-ink, #fff)}
.cf-free-audit-2 .fa-err{margin:8px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
.cf-free-audit-2 .fa-btn{--fa-bg:var(--button-bg, var(--cta));--fa-bg2:var(--button-bg-2, var(--cta-2));display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;margin-top:24px;padding:12px 28px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from var(--fa-bg) calc(l + 0.04) c h), oklch(from var(--fa-bg2) calc(l - 0.02) c h));color:var(--button-ink, var(--cta-ink));font-family:var(--button-font, var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);text-align:center;text-wrap:balance;text-shadow:var(--button-text-shadow, none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--fa-bg) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--fa-bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--fa-shade) l c h / 0.3), 0 8px 16px -6px oklch(from var(--fa-shade) l c h / 0.42));transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.cf-free-audit-2 .fa-btn:not(:disabled):hover,.cf-free-audit-2 .fa-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--fa-bg) calc(l - 0.01) c h), oklch(from var(--fa-bg2) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--fa-bg) calc(l + 0.12) c h / 0.6), inset 0 -3px 0 oklch(from var(--fa-bg) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--fa-shade) l c h / 0.32), 0 12px 20px -6px oklch(from var(--fa-shade) l c h / 0.48))}
.cf-free-audit-2 .fa-btn:not(:disabled):active,.cf-free-audit-2 .fa-btn.is-active:not(:disabled){background:linear-gradient(oklch(from var(--fa-bg) calc(l - 0.04) c h), oklch(from var(--fa-bg2) calc(l - 0.08) c h));transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--fa-bg) calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from var(--fa-bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--fa-shade) l c h / 0.28)}
.cf-free-audit-2 .fa-btn:focus-visible{outline:3px solid var(--fa-focus);outline-offset:3px}
.cf-free-audit-2 .fa-btn:disabled{background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));text-shadow:none;box-shadow:none;transform:none;cursor:not-allowed}
.cf-free-audit-2 .fa-note{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-free-audit-2 .fa-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-free-audit-2 .fa-lb{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px;background:oklch(from var(--band) l c h / 0.82);overscroll-behavior:contain;animation:fa-fade .2s ease both}
.cf-free-audit-2 .fa-lb-panel{width:min(100%, 720px);height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:1040px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;padding:clamp(16px,2.5vw,24px);background:var(--card);color:var(--ink);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));animation:fa-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-free-audit-2 .fa-lb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cf-free-audit-2 .fa-lb-count{margin:0 0 8px;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-free-audit-2 .fa-lb-title{margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight, 800);letter-spacing:-0.01em;text-transform:var(--display-case, none);text-wrap:balance}
.cf-free-audit-2 .fa-icon-btn,.cf-free-audit-2 .fa-btn-2{border:1px solid var(--button-2-border, transparent);border-radius:var(--button-radius, var(--radius, 12px));background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));box-shadow:var(--button-2-shadow, var(--shadow-sm));cursor:pointer;transition:background .16s ease, transform .16s ease}
.cf-free-audit-2 .fa-icon-btn{flex:none;display:inline-grid;place-items:center;width:44px;height:44px;padding:0}
.cf-free-audit-2 .fa-btn-2{flex:0 1 200px;min-height:48px;padding:0 20px;font-family:var(--button-font, var(--font-display));font-size:1.0625rem;font-weight:var(--button-weight, 800);text-transform:var(--button-case, none)}
.cf-free-audit-2 .fa-icon-btn:hover,.cf-free-audit-2 .fa-btn-2:hover{background:oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.04) c h)}
.cf-free-audit-2 .fa-icon-btn:active,.cf-free-audit-2 .fa-btn-2:active{transform:translateY(1px);background:oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.07) c h)}
.cf-free-audit-2 .fa-icon-btn:focus-visible,.cf-free-audit-2 .fa-btn-2:focus-visible{outline:3px solid var(--fa-focus);outline-offset:2px}
.cf-free-audit-2 .fa-lb-stage{position:relative;min-height:0;border-radius:10px;background:var(--fa-well)}
.cf-free-audit-2 .fa-lb-stage img{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);object-fit:contain;border-radius:6px;filter:drop-shadow(0 2px 3px oklch(from var(--fa-shade) l c h / 0.22)) drop-shadow(0 10px 14px oklch(from var(--fa-shade) l c h / 0.18));animation:fa-fade .2s ease both}
.cf-free-audit-2 .fa-lb-foot{display:flex;justify-content:space-between;gap:12px}
.cf-free-audit-2 .fa-rise{animation:fa-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d, 0s)}
@keyframes fa-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes fa-fade{from{opacity:0}to{opacity:1}}
@keyframes fa-pop{from{opacity:.82;transform:scale(.96)}to{opacity:1;transform:none}}
@media (min-width:900px){.cf-free-audit-2 .fa-left{position:sticky;top:24px}}
@media (max-width:899px){
.cf-free-audit-2 .fa-grid{grid-template-columns:minmax(0,1fr);gap:24px}
.cf-free-audit-2 .fa-spread{gap:32px;margin-top:32px}
.cf-free-audit-2 .fa-thumbs{gap:12px}
.cf-free-audit-2 .fa-thumb:focus-visible{outline-offset:3px}
.cf-free-audit-2 .fa-hint{margin:24px 0 12px}
.cf-free-audit-2 .fa-card{margin-top:32px}
}
@media (max-width:480px){
.cf-free-audit-2 .fa-check{grid-template-columns:1.75rem minmax(0,1fr);gap:12px}
.cf-free-audit-2 .fa-thumbs{gap:10px}
.cf-free-audit-2 .fa-thumb-text{margin-top:8px;gap:2px}
.cf-free-audit-2 .fa-thumb-cap{font-size:.875rem;line-height:1.25}
.cf-free-audit-2 .fa-btn{padding:12px 16px;letter-spacing:-0.005em}
.cf-free-audit-2 .fa-btn-2{flex:1 1 0}
.cf-free-audit-2 .fa-lb{padding:12px}
.cf-free-audit-2 .fa-lb-panel{height:calc(100vh - 24px);height:calc(100dvh - 24px)}
}
@media (prefers-reduced-motion: reduce){
.cf-free-audit-2 *,.cf-free-audit-2 *::before,.cf-free-audit-2 *::after{animation:none !important;transition:none !important}
.cf-free-audit-2 .fa-cover:hover img,.cf-free-audit-2 .fa-thumb:hover img,.cf-free-audit-2 .fa-btn:not(:disabled):hover,.cf-free-audit-2 .fa-btn.is-hover:not(:disabled){transform:none}
}
`;
pieces/offer/free-audit-2/specimen.tsx 47 lines
import __studioImagef927d394 from "../assets/813b85cbdde03cb2.webp";
import __studioImagea04ad29b from "../assets/d86067a054f749b3.webp";
import __studioImage4edb636d from "../assets/2b9a0b76b8e21d0f.webp";
import * as React from "react";
import { FreeAudit2, type FreeAudit2Props } from "../free-audit-2";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled", "error"];
export default function FreeAudit2Specimen({ state }: { state?: FreeAudit2Props["state"] }): React.ReactElement {
return (
<FreeAudit2
state={state}
quote="Every audit answers one question: what is stopping Google from sending you buyers, and what do you fix first?"
quoteName="Maya Lindqvist"
quoteRole="Lead strategist, Northcove Search"
pages={[
{
image: slot(
"item-1",
__studioImagef927d394,
),
alt: "Sample Northcove Search audit page with a site health score gauge and a ranked list of issues",
caption: "Your site health score",
},
{
image: slot(
"item-2",
__studioImagea04ad29b,
),
alt: "Sample audit page comparing keyword rankings against three competitors",
caption: "Keyword gaps vs. three rivals",
},
{
image: slot(
"item-3",
__studioImage4edb636d,
),
alt: "Sample audit page with five numbered priority fixes and a four-week timeline",
caption: "Your fix plan, in order",
},
]}
note={`Takes 30 seconds. ${defaults.sample.registration.privacy}`}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalFreeAudit2 |
string |
|
highlight OptionalFreeAudit2 |
string |
|
lead OptionalFreeAudit2 |
string |
|
quote OptionalFreeAudit2 |
string |
|
quoteName OptionalFreeAudit2 |
string |
|
quoteRole OptionalFreeAudit2 |
string |
|
pages OptionalFreeAudit2 |
FreeAudit2Page[] |
|
checks OptionalFreeAudit2 |
FreeAudit2Check[] |
|
riskTitle OptionalFreeAudit2 |
string |
|
riskText OptionalFreeAudit2 |
string |
|
value OptionalFreeAudit2 |
string |
|
valueNote OptionalFreeAudit2 |
string |
|
label OptionalFreeAudit2 |
string |
|
note OptionalFreeAudit2 |
string |
|
copy OptionalFreeAudit2 |
Partial<FreeAudit2Copy> |
|
onSubmit OptionalFreeAudit2 |
(values: FreeAudit2Values) => void |
|
state OptionalFreeAudit2 |
"default" | "hover" | "active" | "disabled" | "error" |
|
className OptionalFreeAudit2 |
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-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.
-
2b9a0b76b8e21d0f.webp
image/webp · 26.8 KB
-
813b85cbdde03cb2.webp
image/webp · 36.4 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d86067a054f749b3.webp
image/webp · 27.3 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB