Page Footer 2
Last-word page footer: a dear-friend close with the one promise beside an itemised offer ledger
Use it in a prompt
Use content/page-footer-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/page-footer-2.tsx. - Import it and pass your copy and images (Props tab):
import { PageFooter2 } from "@/components/funneldna/content/page-footer-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/page-footer-2/component.tsx 645 lines
// layout: ledger-receipt
// Last-word page footer: a dear-friend close with the one promise beside an itemised offer ledger
// (the product cut-out resting on it, total value, superscript price, guarantee commit and the CTA),
// then the brand, link columns, support line, fine print and copyright on the page's band.
// Theme notes: every colour reads the theme tokens; hex appears only as the last fallback inside var().
// The ledger card border falls back to the neutral ink hairline (not an accent tint); every shadow
// fallback is a recipe on --shadow; the price well's corner follows the card radius.
// The sign-off name uses the page's display face (a page may set --signature-face); no extra font loads.
// The pointer light on the product cut-out is a band-ink reflection masked to the image (no fixed colour).
import * as React from 'react';
import { AlertCircle, Check, Mail, Phone, ShieldCheck } from 'lucide-react';
export type PageFooter2Link = { label: string; href: string };
export type PageFooter2Column = {
/** Short column heading, e.g. 'Support'. */
title: string;
links: PageFooter2Link[];
};
export type PageFooter2LedgerItem = {
name: string;
/** Supplied value shown at the end of the leader, e.g. '$49'. */
value?: string;
};
export type PageFooter2Offer = {
/** Letter salutation above the headline, e.g. 'Dear friend,'. */
salutation?: string;
/** The one promise. A string headline can take one marker stroke via `highlight`. */
headline: React.ReactNode;
/** Phrase inside a string headline that gets the marker stroke. */
highlight?: string;
/** One to three short letter paragraphs under the headline. */
letter?: React.ReactNode[];
/** Sign-off line before the signature, e.g. 'To your first launch,'. */
signoff?: string;
/** Name set in the signature face. */
signature?: string;
/** Printed name or role under the signature. */
signatureRole?: string;
/** Selling heading at the top of the ledger. */
ledgerHeading?: string;
items?: PageFooter2LedgerItem[];
totalLabel?: string;
/** Supplied total value; hidden when empty. */
totalValue?: string;
priceLabel?: string;
/** Supplied price, e.g. '$47'; the currency sign is set superscript. */
price?: string;
/** Small line under the price, e.g. 'one-time payment'. */
priceNote?: string;
/** Guarantee commit line above the button; hidden when empty. */
commitLabel?: string;
/** Inline error shown when the commit box is unticked on click. */
commitError?: string;
/** Set false to show the commit line without requiring it. */
requireCommit?: boolean;
/** Main button text. */
label: string;
/** Second line inside the button that answers the click-time objection. */
sublabel?: string;
/** One reassurance sentence under the button. */
reassurance?: string;
/** Navigation destination; without it the action is a <button>. */
href?: string;
/** Product cut-out on a transparent background (slot 'product'). */
productImage?: string;
productImageAlt?: string;
};
export type PageFooter2State = 'default' | 'hover' | 'active' | 'disabled' | 'error';
export type PageFooter2Props = {
/** The closing offer tier. Omit or pass null for the bottom tier only. */
offer?: PageFooter2Offer | null;
brandName?: string;
/** Logo image (slot 'logo'). Without it the text wordmark shows. */
logoImage?: string;
/** Makes the wordmark or logo a link. */
brandHref?: string;
/** One supporting line under the brand. */
tagline?: string;
/** Two to four short link columns (legal, support, company). */
columns?: PageFooter2Column[];
/** Lead-in before the support email and phone. */
supportLabel?: string;
supportEmail?: string;
supportPhone?: string;
/** Supplied small print (earnings disclaimer, platform notice); hidden when empty. */
finePrint?: string[];
/** Named placeholders: {year} and {brand}. */
copyrightTemplate?: string;
/** Year in the copyright; defaults to the current year. */
year?: number | string;
/** Called when the closing button is clicked (after the commit check passes). */
onAction?: () => void;
/** Forced state for previews. */
state?: PageFooter2State;
className?: string;
};
export function PageFooter2(props: PageFooter2Props) {
const {
offer = null,
brandName = 'Your Brand',
logoImage,
brandHref,
tagline,
columns = DEFAULT_COLUMNS,
supportLabel = 'Questions? Reach a real person:',
supportEmail,
supportPhone,
finePrint = [],
copyrightTemplate = '\u00a9 {year} {brand}. All rights reserved.',
year,
onAction,
state = 'default',
className,
} = props;
const uid = React.useId();
const headingId = `${uid}-close`;
const commitId = `${uid}-commit`;
const errorId = `${uid}-commit-error`;
const [agreed, setAgreed] = React.useState(state !== 'error');
const [showError, setShowError] = React.useState(state === 'error');
React.useEffect(() => {
setAgreed(state !== 'error');
setShowError(state === 'error');
}, [state]);
const checkRef = React.useRef<HTMLInputElement>(null);
const mediaRef = React.useRef<HTMLDivElement>(null);
const frame = React.useRef(0);
const allowTilt = React.useRef(false);
const resetTilt = React.useCallback(() => {
cancelAnimationFrame(frame.current);
const el = mediaRef.current;
if (!el) return;
el.style.removeProperty('--pf2-rx');
el.style.removeProperty('--pf2-ry');
el.style.removeProperty('--pf2-gx');
el.style.removeProperty('--pf2-gy');
el.removeAttribute('data-tilting');
}, []);
React.useEffect(() => {
if (typeof window === 'undefined' || !window.matchMedia) return;
const fine = window.matchMedia('(hover: hover) and (pointer: fine)');
const calm = window.matchMedia('(prefers-reduced-motion: reduce)');
const sync = () => {
allowTilt.current = fine.matches && !calm.matches;
if (!allowTilt.current) resetTilt();
};
sync();
fine.addEventListener('change', sync);
calm.addEventListener('change', sync);
return () => {
fine.removeEventListener('change', sync);
calm.removeEventListener('change', sync);
cancelAnimationFrame(frame.current);
};
}, [resetTilt]);
const handleMove = (event: React.PointerEvent<HTMLElement>) => {
if (event.pointerType !== 'mouse' || !allowTilt.current) return;
const el = mediaRef.current;
if (!el) return;
const box = el.getBoundingClientRect();
const nx = clamp(((event.clientX - box.left) / box.width) * 2 - 1);
const ny = clamp(((event.clientY - box.top) / box.height) * 2 - 1);
cancelAnimationFrame(frame.current);
frame.current = requestAnimationFrame(() => {
el.style.setProperty('--pf2-ry', `${(nx * 4).toFixed(2)}deg`);
el.style.setProperty('--pf2-rx', `${(-ny * 3).toFixed(2)}deg`);
el.style.setProperty('--pf2-gx', `${((nx + 1) * 50).toFixed(1)}%`);
el.style.setProperty('--pf2-gy', `${((ny + 1) * 50).toFixed(1)}%`);
el.setAttribute('data-tilting', '');
});
};
const disabled = state === 'disabled';
const needsCommit = Boolean(offer && offer.commitLabel) && offer?.requireCommit !== false;
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (disabled) {
event.preventDefault();
return;
}
if (needsCommit && !agreed) {
event.preventDefault();
setShowError(true);
checkRef.current?.focus();
return;
}
onAction?.();
};
const cols = (columns ?? []).filter((col) => col && col.links && col.links.length > 0).slice(0, 4);
const fine = (finePrint ?? []).filter((line) => typeof line === 'string' && line.trim() !== '');
const items = (offer?.items ?? []).filter((item) => item && item.name);
const letter = (offer?.letter ?? []).filter((p) => p !== null && p !== undefined && p !== '').slice(0, 3);
const hasMedia = Boolean(offer?.productImage);
const priceParts = offer?.price ? splitPrice(offer.price) : null;
const telHref = supportPhone ? `tel:${supportPhone.replace(/[^0-9+]/g, '')}` : undefined;
const shownYear = year ?? new Date().getFullYear();
const copyright = copyrightTemplate.replace('{year}', String(shownYear)).replace('{brand}', brandName);
const ColHeading = offer ? 'h3' : 'h2';
const btnClass = [
'cf-pf2__btn',
state === 'hover' ? 'is-hover' : '',
state === 'active' ? 'is-active' : '',
disabled ? 'is-disabled' : '',
]
.filter(Boolean)
.join(' ');
const mark = logoImage ? (
<img className='cf-pf2__logo' src={logoImage} alt={brandName} />
) : (
<span className='cf-pf2__wordmark'>{brandName}</span>
);
return (
<footer
className={className ? `cf-page-footer-2 ${className}` : 'cf-page-footer-2'}
data-offer={offer ? 'close' : 'none'}
>
<style>{CSS}</style>
<div className='cf-pf2__inner'>
{offer ? (
<section
className='cf-pf2__top'
data-media={hasMedia ? '' : undefined}
aria-labelledby={headingId}
onPointerMove={handleMove}
onPointerLeave={resetTilt}
>
{hasMedia ? (
<div className='cf-pf2__media' ref={mediaRef}>
<div className='cf-pf2__tilt'>
<img
className='cf-pf2__product'
src={offer.productImage}
alt={offer.productImageAlt ?? ''}
width={680}
height={680}
loading='lazy'
decoding='async'
/>
<span className='cf-pf2__sheen' aria-hidden='true' style={maskStyle(offer.productImage as string)} />
</div>
</div>
) : null}
<div className='cf-pf2__letter'>
{offer.salutation ? <p className='cf-pf2__salute'>{offer.salutation}</p> : null}
<h2 id={headingId} className='cf-pf2__headline'>
{renderHeadline(offer.headline, offer.highlight)}
</h2>
{letter.map((paragraph, index) => (
<p key={index} className='cf-pf2__para'>
{paragraph}
</p>
))}
{offer.signoff || offer.signature ? (
<div className='cf-pf2__sign'>
{offer.signoff ? <p className='cf-pf2__signoff'>{offer.signoff}</p> : null}
{offer.signature ? <p className='cf-pf2__signature'>{offer.signature}</p> : null}
{offer.signatureRole ? <p className='cf-pf2__role'>{offer.signatureRole}</p> : null}
</div>
) : null}
</div>
<div className='cf-pf2__ledger'>
{offer.ledgerHeading ? <h3 className='cf-pf2__ledger-title'>{offer.ledgerHeading}</h3> : null}
{items.length > 0 ? (
<ul className='cf-pf2__rows'>
{items.map((item, index) => (
<li key={`${item.name}-${index}`} className='cf-pf2__row'>
<span className='cf-pf2__row-name'>{item.name}</span>
{item.value ? (
<>
<span className='cf-pf2__leader' aria-hidden='true' />
<span className='cf-pf2__row-value'>{item.value}</span>
</>
) : null}
</li>
))}
</ul>
) : null}
{offer.totalValue || priceParts ? (
<div className='cf-pf2__well'>
{offer.totalValue ? (
<p className='cf-pf2__total'>
<span>{offer.totalLabel ?? 'Total value'}</span>
<span className='cf-pf2__leader' aria-hidden='true' />
<span className='cf-pf2__total-value'>{offer.totalValue}</span>
</p>
) : null}
{priceParts ? (
<div className='cf-pf2__today'>
<p className='cf-pf2__today-label'>{offer.priceLabel ?? 'Yours today'}</p>
<p className='cf-pf2__fig'>
<span className='cf-pf2__sr'>
{offer.price}
{offer.priceNote ? `, ${offer.priceNote}` : ''}
</span>
<span aria-hidden='true'>
{priceParts.currency ? <span className='cf-pf2__cur'>{priceParts.currency}</span> : null}
{priceParts.amount}
{priceParts.tail ? <span className='cf-pf2__tail'>{priceParts.tail}</span> : null}
</span>
</p>
{offer.priceNote ? (
<p className='cf-pf2__note' aria-hidden='true'>
{offer.priceNote}
</p>
) : null}
</div>
) : null}
</div>
) : null}
{offer.commitLabel ? (
<>
<label
className='cf-pf2__commit'
htmlFor={commitId}
data-error={showError ? '' : undefined}
data-disabled={disabled ? '' : undefined}
>
<input
ref={checkRef}
id={commitId}
className='cf-pf2__check'
type='checkbox'
checked={agreed}
disabled={disabled}
aria-invalid={showError ? true : undefined}
aria-describedby={showError ? errorId : undefined}
onChange={(event) => {
setAgreed(event.target.checked);
if (event.target.checked) setShowError(false);
}}
/>
<span className='cf-pf2__box' aria-hidden='true'>
<Check strokeWidth={3} />
</span>
<span className='cf-pf2__commit-text'>{offer.commitLabel}</span>
</label>
{showError ? (
<p id={errorId} className='cf-pf2__error' role='alert'>
<AlertCircle aria-hidden='true' strokeWidth={2.5} />
{offer.commitError ?? 'Tick the box to confirm you\u2019ve read the guarantee.'}
</p>
) : null}
</>
) : null}
{offer.href ? (
<a
className={btnClass}
href={disabled ? undefined : offer.href}
aria-disabled={disabled ? 'true' : undefined}
onClick={handleAction}
>
<span className='cf-pf2__btn-label'>{offer.label}</span>
{offer.sublabel ? <span className='cf-pf2__btn-sub'>{offer.sublabel}</span> : null}
</a>
) : (
<button type='button' className={btnClass} disabled={disabled} onClick={handleAction}>
<span className='cf-pf2__btn-label'>{offer.label}</span>
{offer.sublabel ? <span className='cf-pf2__btn-sub'>{offer.sublabel}</span> : null}
</button>
)}
{offer.reassurance ? (
<p className='cf-pf2__assure'>
<ShieldCheck aria-hidden='true' strokeWidth={2.5} />
{offer.reassurance}
</p>
) : null}
</div>
</section>
) : null}
<div className='cf-pf2__bottom'>
<div className='cf-pf2__grid' style={{ ['--pf2-cols' as string]: Math.max(cols.length, 1) } as React.CSSProperties}>
<div className='cf-pf2__brand'>
{brandHref ? (
<a className='cf-pf2__brand-link' href={brandHref}>
{mark}
</a>
) : (
mark
)}
{tagline ? <p className='cf-pf2__tagline'>{tagline}</p> : null}
{supportEmail || supportPhone ? (
<p className='cf-pf2__support'>
<span className='cf-pf2__support-label'>{supportLabel}</span>{' '}
{supportEmail ? (
<a className='cf-pf2__link cf-pf2__contact' href={`mailto:${supportEmail}`}>
<Mail aria-hidden='true' strokeWidth={2.5} />
{supportEmail}
</a>
) : null}{' '}
{supportPhone ? (
<a className='cf-pf2__link cf-pf2__contact' href={telHref}>
<Phone aria-hidden='true' strokeWidth={2.5} />
{supportPhone}
</a>
) : null}
</p>
) : null}
</div>
{cols.map((col) => (
<nav key={col.title} className='cf-pf2__col' aria-label={col.title}>
<ColHeading className='cf-pf2__col-title'>{col.title}</ColHeading>
<ul className='cf-pf2__col-list'>
{col.links.map((link) => (
<li key={`${link.label}-${link.href}`}>
<a className='cf-pf2__link' href={link.href}>
{link.label}
</a>
</li>
))}
</ul>
</nav>
))}
</div>
<div className='cf-pf2__base'>
{fine.length > 0 ? (
<div className='cf-pf2__fine'>
{fine.map((line, index) => (
<p key={index}>{line}</p>
))}
</div>
) : null}
<p className='cf-pf2__copyright'>{copyright}</p>
</div>
</div>
</div>
</footer>
);
}
export default PageFooter2;
const DEFAULT_COLUMNS: PageFooter2Column[] = [
{
title: 'Support',
links: [
{ label: 'Contact us', href: '#' },
{ label: 'Refund policy', href: '#' },
],
},
{
title: 'Legal',
links: [
{ label: 'Terms of service', href: '#' },
{ label: 'Privacy policy', href: '#' },
{ label: 'Earnings disclaimer', href: '#' },
],
},
{
title: 'Company',
links: [
{ label: 'About us', href: '#' },
{ label: 'Affiliates', href: '#' },
],
},
];
function clamp(value: number) {
return Math.max(-1, Math.min(1, value));
}
function splitPrice(price: string) {
const match = price.match(/^([^0-9]*)([0-9][0-9.,]*)(.*)$/);
if (!match) return { currency: '', amount: price, tail: '' };
return { currency: match[1].trim(), amount: match[2], tail: match[3].trim() };
}
function maskStyle(src: string): React.CSSProperties {
const url = `url('${src.replace(/'/g, '%27')}')`;
return { ['--pf2-mask' as string]: url } as React.CSSProperties;
}
function renderHeadline(headline: React.ReactNode, highlight?: string) {
if (typeof headline !== 'string' || !highlight) return headline;
const at = headline.indexOf(highlight);
if (at < 0) return headline;
return (
<>
{headline.slice(0, at)}
<span className='cf-pf2__mark' data-keep={highlight.length <= 24 ? '' : undefined}>
{highlight}
</span>
{headline.slice(at + highlight.length)}
</>
);
}
const CSS = `
.cf-page-footer-2{
--pf2-band:var(--band,#13294b);
--pf2-on:var(--band-ink,#ffffff);
--pf2-soft:color-mix(in oklch,var(--pf2-on) 86%,var(--pf2-band));
--pf2-quiet:color-mix(in oklch,var(--pf2-on) 76%,var(--pf2-band));
--pf2-rule:oklch(from var(--pf2-on) l c h / .18);
--pf2-shadow:var(--shadow,oklch(.22 .03 256));
--pf2-pad:clamp(20px,3vw,32px);
--signature-font:var(--signature-face,var(--font-display,inherit));
position:relative;
background:var(--pf2-band);
color:var(--pf2-on);
font-family:var(--font-body,system-ui,sans-serif);
font-size:clamp(1.0625rem,1.25vw,1.125rem);
line-height:1.5;
overflow-x:clip;
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(32px,4vw,48px);
}
.cf-page-footer-2 *,.cf-page-footer-2 *::before,.cf-page-footer-2 *::after{box-sizing:border-box}
.cf-page-footer-2 :where(h2,h3,p,ul,li){margin:0;padding:0}
.cf-page-footer-2 :where(ul){list-style:none}
.cf-page-footer-2[data-offer='none']{padding-top:clamp(48px,6vw,72px)}
.cf-pf2__inner{max-width:1120px;margin:0 auto}
.cf-pf2__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.cf-pf2__top{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'media' 'letter' 'ledger';gap:32px;padding-bottom:clamp(56px,7vw,96px)}
.cf-pf2__media{grid-area:media;justify-self:center;width:min(70%,260px);position:relative;z-index:2;perspective:900px;animation:cf-pf2-rise .45s cubic-bezier(.2,.7,.2,1) .14s both}
.cf-pf2__tilt{position:relative;transform:rotateX(var(--pf2-rx,0deg)) rotateY(var(--pf2-ry,0deg));transform-style:preserve-3d;transition:transform .2s cubic-bezier(.2,.7,.2,1)}
.cf-pf2__product{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--pf2-shadow) calc(l - .08) c h / .5)) drop-shadow(0 16px 16px oklch(from var(--pf2-shadow) calc(l - .08) c h / .42))}
.cf-pf2__sheen{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--pf2-gx,50%) var(--pf2-gy,30%),oklch(from var(--pf2-on) l c h / .5),oklch(from var(--pf2-on) l c h / 0) 58%);mix-blend-mode:soft-light;opacity:0;transition:opacity .2s ease;-webkit-mask-image:var(--pf2-mask);mask-image:var(--pf2-mask);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.cf-pf2__media[data-tilting] .cf-pf2__sheen{opacity:1}
.cf-pf2__letter{grid-area:letter;min-width:0;animation:cf-pf2-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-pf2__salute{font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:600;line-height:1.4;color:var(--pf2-soft);margin-bottom:16px}
.cf-pf2__headline{font-family:var(--font-display,inherit);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);color:var(--pf2-on);text-wrap:balance;margin-bottom:20px}
.cf-pf2__mark{--pf2-mk:var(--accent-fill,var(--accent,#2a5bd7));background:linear-gradient(transparent 12%,var(--pf2-mk) 12%,var(--pf2-mk) 97%,transparent 97%);color:var(--accent-fill-ink,var(--card,#ffffff));padding:0 .12em;margin:0 -.04em;border-radius:.1em .3em .14em .34em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-pf2__mark[data-keep]{white-space:nowrap}
.cf-pf2__para{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.5;color:var(--pf2-soft);text-wrap:pretty;max-width:60ch}
.cf-pf2__para + .cf-pf2__para{margin-top:16px}
.cf-pf2__sign{margin-top:32px}
.cf-pf2__signoff{color:var(--pf2-soft)}
.cf-pf2__signature{font-family:var(--signature-font);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);letter-spacing:-.01em;line-height:1.15;color:var(--pf2-on);margin-top:8px;text-wrap:balance}
.cf-pf2__role{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--pf2-quiet);margin-top:12px}
.cf-pf2__ledger{grid-area:ledger;position:relative;z-index:1;min-width:0;background:var(--card,#ffffff);color:var(--ink,#101828);border:1px solid var(--card-border,color-mix(in oklch,var(--ink,#101828) 12%,transparent));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 3px oklch(from var(--pf2-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--pf2-shadow) l c h / .32)));padding:var(--pf2-pad);animation:cf-pf2-rise .45s cubic-bezier(.2,.7,.2,1) .07s both}
.cf-pf2__ledger-title{font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-transform:var(--display-case,none);text-wrap:balance;margin-bottom:12px}
.cf-pf2__rows{margin-bottom:16px}
.cf-pf2__row,.cf-pf2__total{display:flex;align-items:baseline;gap:12px;padding:8px 0}
.cf-pf2__row-name{font-weight:700;min-width:0;text-wrap:pretty}
.cf-pf2__leader{flex:1 1 24px;min-width:24px;border-bottom:1px solid oklch(from var(--ink,#101828) l c h / .22);transform:translateY(-.3em)}
.cf-pf2__row-value,.cf-pf2__total-value{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-pf2__well{background:color-mix(in oklch,var(--ink,#101828) 4%,var(--card,#ffffff));border-radius:max(0px,calc(var(--card-radius,var(--radius,14px)) - 4px));padding:12px 20px 20px;margin-bottom:20px}
.cf-pf2__total{font-size:.9375rem;font-weight:600;color:var(--muted,#4b5565)}
.cf-pf2__total-value{color:var(--ink,#101828)}
.cf-pf2__today{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:16px;margin-top:12px}
.cf-pf2__today-label{min-width:0;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-transform:var(--display-case,none);text-wrap:balance}
.cf-pf2__fig{display:block;text-align:right;white-space:nowrap;font-family:var(--font-display,inherit);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink,#101828)}
.cf-pf2__cur{font-size:.45em;line-height:1;vertical-align:.85em;margin-right:.06em;letter-spacing:0}
.cf-pf2__tail{font-size:.45em;line-height:1;margin-left:.1em;letter-spacing:0}
.cf-pf2__note{grid-column:1 / -1;justify-self:end;margin-top:12px;font-size:.9375rem;font-weight:600;line-height:1.2;color:var(--muted,#4b5565)}
.cf-pf2__commit{position:relative;display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;cursor:pointer;font-size:1rem;font-weight:600;line-height:1.45;color:var(--label-ink,var(--ink,#101828));text-wrap:pretty}
.cf-pf2__commit[data-disabled]{cursor:not-allowed}
.cf-pf2__check{position:absolute;left:0;top:0;width:24px;height:24px;margin:0;opacity:0;cursor:inherit;background:var(--field,#ffffff);color:var(--field-ink,var(--ink,#101828));border-radius:var(--field-radius,6px)}
.cf-pf2__box{flex:0 0 24px;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:var(--field,#ffffff);border:2px solid var(--field-border,color-mix(in oklch,var(--ink,#101828) 34%,transparent));color:var(--accent-fill-ink,var(--card,#ffffff));transition:background .16s ease,border-color .16s ease}
.cf-pf2__box svg{width:16px;height:16px;opacity:0;transform:scale(.6);transition:opacity .16s ease,transform .16s ease}
.cf-pf2__commit:hover .cf-pf2__box{border-color:var(--field-focus,var(--accent,#2a5bd7))}
.cf-pf2__check:checked + .cf-pf2__box{background:var(--accent-fill,var(--accent,#2a5bd7));border-color:var(--accent-fill,var(--accent,#2a5bd7))}
.cf-pf2__check:checked + .cf-pf2__box svg{opacity:1;transform:none}
.cf-pf2__check:focus-visible + .cf-pf2__box{outline:3px solid oklch(from var(--field-focus,var(--accent,#2a5bd7)) l c h / .45);outline-offset:2px}
.cf-pf2__commit[data-error] .cf-pf2__box{border-color:var(--danger,#c0392b)}
.cf-pf2__error{margin:-8px 0 16px 36px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--danger,#c0392b);text-wrap:pretty}
.cf-pf2__error svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.cf-pf2__btn{--pf2-b:var(--button-bg,var(--cta,#d93a2b));--pf2-b2:var(--button-bg-2,var(--cta-2,#b52d20));--pf2-d:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:72px;padding:12px 28px;margin:0;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--pf2-b) calc(l + .04 - var(--pf2-d)) c h),oklch(from var(--pf2-b2) calc(l - .02 - var(--pf2-d)) c h));color:var(--button-ink,var(--cta-ink,#ffffff));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--pf2-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--pf2-b) calc(l - .16) c h),0 1px 2px oklch(from var(--pf2-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--pf2-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}
.cf-pf2__btn:hover,.cf-pf2__btn.is-hover{--pf2-d:.05;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--pf2-b) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--pf2-b) calc(l - .2) c h),0 1px 2px oklch(from var(--pf2-shadow) l c h / .34),0 10px 20px -6px oklch(from var(--pf2-shadow) l c h / .55))}
.cf-pf2__btn:active,.cf-pf2__btn.is-active{--pf2-d:.08;transform:translateY(1px);box-shadow:var(--button-shadow,inset 0 2px 3px oklch(from var(--pf2-b) calc(l - .22) c h / .45),inset 0 -2px 0 oklch(from var(--pf2-b) calc(l - .18) c h),0 1px 2px oklch(from var(--pf2-shadow) l c h / .3))}
.cf-pf2__btn:focus-visible{outline:3px solid var(--field-focus,var(--accent,#2a5bd7));outline-offset:3px}
.cf-pf2__btn:disabled,.cf-pf2__btn.is-disabled{background:var(--button-2-bg,var(--secondary,#e7eaf0));color:var(--button-2-ink,var(--secondary-ink,#1a2233));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--pf2-shadow) l c h / .2)));cursor:not-allowed;transform:none}
.cf-pf2__btn-label{font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-wrap:balance}
.cf-pf2__btn-sub{font-family:var(--font-body,inherit);font-size:.9375rem;font-weight:600;line-height:1.3;text-transform:none;text-wrap:balance}
.cf-pf2__btn{padding-inline:clamp(16px,4vw,28px)}
.cf-pf2__assure{margin-top:12px;text-align:center;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted,#4b5565);text-wrap:pretty}
.cf-pf2__assure svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success,#1f7a3d)}
.cf-pf2__bottom{border-top:1px solid var(--pf2-rule);padding-top:clamp(40px,5vw,64px)}
.cf-page-footer-2[data-offer='none'] .cf-pf2__bottom{border-top:0;padding-top:0}
.cf-pf2__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
.cf-pf2__brand{grid-column:1 / -1;min-width:0}
.cf-pf2__brand-link{display:inline-block;color:inherit;text-decoration:none;border-radius:6px}
.cf-pf2__brand-link:focus-visible{outline:3px solid var(--pf2-on);outline-offset:4px}
.cf-pf2__wordmark{font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;color:var(--pf2-on)}
.cf-pf2__logo{display:block;height:40px;width:auto;max-width:200px;object-fit:contain;object-position:left center}
.cf-pf2__tagline{margin-top:12px;color:var(--pf2-soft);max-width:44ch;text-wrap:pretty}
.cf-pf2__support{margin-top:20px;font-size:1rem;line-height:1.6;color:var(--pf2-quiet);overflow-wrap:anywhere}
.cf-pf2__support-label{display:block;margin-bottom:8px}
.cf-pf2__contact{display:block;width:fit-content;max-width:100%;overflow-wrap:anywhere}
.cf-pf2__contact + .cf-pf2__contact{margin-top:8px}
.cf-pf2__contact[href^='tel:']{white-space:nowrap}
.cf-pf2__contact svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.cf-pf2__col{min-width:0}
.cf-pf2__col-title{font-family:var(--font-body,inherit);font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--pf2-quiet);margin-bottom:16px}
.cf-pf2__col-list li + li{margin-top:12px}
.cf-pf2__link{color:var(--pf2-on);font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:oklch(from var(--pf2-on) l c h / .32);text-underline-offset:.22em;border-radius:4px;transition:text-decoration-color .16s ease}
.cf-pf2__link:hover{text-decoration-color:var(--pf2-on);text-decoration-thickness:2px}
.cf-pf2__link:focus-visible{outline:3px solid var(--pf2-on);outline-offset:3px;text-decoration-color:var(--pf2-on)}
.cf-pf2__base{margin-top:clamp(40px,5vw,56px)}
.cf-pf2__fine p{font-size:.875rem;line-height:1.55;color:var(--pf2-quiet);max-width:110ch;text-wrap:pretty}
.cf-pf2__fine p + p{margin-top:8px}
.cf-pf2__fine + .cf-pf2__copyright{margin-top:20px}
.cf-pf2__copyright{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--pf2-quiet)}
@media (min-width:900px){
.cf-pf2__top{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);grid-template-areas:'letter ledger';column-gap:clamp(32px,5vw,72px);row-gap:0;align-items:start}
.cf-pf2__top[data-media]{grid-template-areas:'letter media' 'letter ledger'}
.cf-pf2__letter{padding-top:16px;position:sticky;top:clamp(16px,3vw,32px)}
.cf-pf2__media{width:min(84%,340px);margin-bottom:-72px}
.cf-pf2__top[data-media] .cf-pf2__ledger{padding-top:calc(var(--pf2-pad) + 56px)}
.cf-pf2__grid{grid-template-columns:minmax(0,1.5fr) repeat(var(--pf2-cols,3),minmax(0,1fr));column-gap:48px}
.cf-pf2__brand{grid-column:auto}
}
@keyframes cf-pf2-rise{from{opacity:.82;transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){
.cf-pf2__letter,.cf-pf2__ledger,.cf-pf2__media{animation:none}
.cf-pf2__tilt{transform:none;transition:none}
.cf-pf2__sheen{display:none}
.cf-pf2__btn,.cf-pf2__box,.cf-pf2__box svg,.cf-pf2__link{transition:none}
}
`;
pieces/content/page-footer-2/specimen.tsx 80 lines
import __studioImaged9325015 from "../assets/1b2c8be75c58f3cb.webp";
import { PageFooter2 } from '../page-footer-2';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled', 'error'] as const;
type SpecimenState = (typeof states)[number];
export default function PageFooter2Specimen({ state = 'default' }: { state?: SpecimenState }) {
const s = defaults.sample;
return (
<PageFooter2
state={state}
brandName={s.name}
logoImage={slot('logo', '')}
brandHref='#top'
tagline='Plan, write and launch your first funnel from one download.'
offer={{
salutation: 'Dear friend,',
headline: s.headline,
highlight: 'a clear plan',
letter: [
'You\u2019ve read this far, so you\u2019re serious. The hard part was never the software. It\u2019s knowing what goes on each page, and in what order.',
s.reason,
],
signoff: 'To your first launch,',
signature: 'Sam Carter',
signatureRole: `Founder, ${s.name}`,
ledgerHeading: 'Plan it, write it, launch it',
items: s.items.map((item) => ({ name: item.name, value: item.value })),
totalLabel: 'Total value',
totalValue: s.regularPrice,
priceLabel: 'Yours today',
price: s.price,
priceNote: 'one-time payment',
commitLabel: 'I understand I\u2019m covered by the 30-day money-back guarantee.',
label: 'Send Me The Starter Kit',
sublabel: s.sublabel,
reassurance: 'Your download link arrives the moment you check out.',
productImage: slot(
'product',
__studioImaged9325015
),
productImageAlt: `${s.name}: the planning guide, copy workbook and launch checklist`,
}}
columns={[
{
title: 'Support',
links: [
{ label: 'Help centre', href: '#help' },
{ label: 'Contact us', href: '#contact' },
{ label: 'Refund policy', href: '#refunds' },
],
},
{
title: 'Legal',
links: [
{ label: 'Terms of service', href: '#terms' },
{ label: 'Privacy policy', href: '#privacy' },
{ label: 'Earnings disclaimer', href: '#earnings' },
],
},
{
title: 'Company',
links: [
{ label: 'About us', href: '#about' },
{ label: 'Affiliates', href: '#affiliates' },
],
},
]}
supportEmail='support@funnelstarterkit.com'
supportPhone='(555) 012-3456'
finePrint={[
'Earnings disclaimer: results vary. The Funnel Starter Kit is a planning resource, and we make no guarantee of income or sales. Your results depend on your offer, your effort and your market.',
'This site is not a part of the Facebook website or Facebook Inc., and is not endorsed by Facebook in any way. Facebook is a trademark of Meta Platforms, Inc. This site is not affiliated with Google.',
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
offer OptionalPageFooter2 |
PageFooter2Offer | null |
|
brandName OptionalPageFooter2 |
string |
|
logoImage OptionalPageFooter2 |
string |
|
brandHref OptionalPageFooter2 |
string |
|
tagline OptionalPageFooter2 |
string |
|
columns OptionalPageFooter2 |
PageFooter2Column[] |
|
supportLabel OptionalPageFooter2 |
string |
|
supportEmail OptionalPageFooter2 |
string |
|
supportPhone OptionalPageFooter2 |
string |
|
finePrint OptionalPageFooter2 |
string[] |
|
copyrightTemplate OptionalPageFooter2 |
string |
|
year OptionalPageFooter2 |
number | string |
|
onAction OptionalPageFooter2 |
() => void |
|
state OptionalPageFooter2 |
PageFooter2State |
|
className OptionalPageFooter2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.
product- The main product shot or cover (ebook, kit, bottle).
-
1b2c8be75c58f3cb.webp
image/webp · 197 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB