Page Footer 1
Page footer: closes every funnel page with one last spotlighted offer row straddling the band edge,
Use it in a prompt
Use content/page-footer 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.tsx. - Import it and pass your copy and images (Props tab):
import { PageFooter } from "@/components/funneldna/content/page-footer"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/page-footer/component.tsx 786 lines
// layout: spotlight-row
// Page footer: closes every funnel page with one last spotlighted offer row straddling the band edge,
// then the brand, contact line, legal links, 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().
// Documented exception: the yellow marker default (#fae37c) is the contract's own --marker fallback.
import * as React from "react";
import { Building2, Mail, MapPin, Phone, ShieldCheck } from "lucide-react";
export type PageFooterLink = { label: string; href: string };
export type PageFooterImage = { src: string; alt: string };
export type PageFooterCta = {
/** The closing promise. A string headline can take one marker swipe via `highlight`. */
headline: React.ReactNode;
/** Phrase inside a string headline that gets the yellow marker stroke. */
highlight?: string;
price?: string;
/** Supplied breakdown or terms shown under the price (e.g. "One payment · Lifetime access"). */
priceNote?: string;
/** Main button text. */
label: string;
/** Second line inside the button that answers the click-time objection. */
sublabel?: string;
/** One reassurance line under the button, such as the supplied guarantee. */
reassurance?: string;
/** Navigation destination of the button; without it the button is a <button>. */
href?: string;
/** Up to three product thumbnails, fanned beside the headline (item-n slots). */
images?: PageFooterImage[];
};
export type PageFooterState = "default" | "hover" | "active" | "disabled";
export type PageFooterProps = {
brandName?: string;
/** Logo image (slot "logo"). Without it the text wordmark shows. */
logoImage?: string;
/** Makes the wordmark or logo a link to this destination. */
brandHref?: string;
/** One supporting line under the wordmark. */
tagline?: string;
/** Company or legal entity name, first line of the contact block. */
company?: string;
address?: string;
phone?: string;
email?: string;
/** Legal links shown in the footer navigation. */
links?: PageFooterLink[];
/** Fine-print paragraphs: offer terms, results disclaimer, platform notice. */
finePrint?: React.ReactNode[];
/** Named placeholders: {year} and {brand}. */
copyrightTemplate?: string;
/** Year shown in the copyright; defaults to the current year. */
year?: number | string;
/** Optional slim final call to action that sits above the footer band. */
cta?: PageFooterCta | null;
/** Called when the final call-to-action button is clicked. */
onAction?: () => void;
/** Shows the back-to-top button in the base row. */
showBackToTop?: boolean;
backToTopLabel?: string;
/** Accessible name of the legal links navigation. */
legalLabel?: string;
/** Accessible name of the contact block. */
contactLabel?: string;
/** Accessible name of the final call-to-action region when the headline is not plain text.
* Kept for caller compatibility; the region is named by its headline. */
ctaLabel?: string;
/** Forced button state for previews. */
state?: PageFooterState;
/** Root class for page-level placement. */
className?: string;
};
export function PageFooter(props: PageFooterProps) {
const {
brandName = "The Funnel Starter Kit",
logoImage,
brandHref,
tagline,
company,
address,
phone,
email,
links = DEFAULT_LINKS,
finePrint = DEFAULT_FINE_PRINT,
copyrightTemplate = "© {year} {brand}. All rights reserved.",
year,
cta,
onAction,
showBackToTop = true,
backToTopLabel = "Back to top",
legalLabel = "Legal",
contactLabel = "Contact details",
state = "default",
className,
} = props;
const headingId = React.useId();
const shownYear = year ?? new Date().getFullYear();
const copyright = copyrightTemplate
.replace("{year}", String(shownYear))
.replace("{brand}", brandName);
const thumbs = (cta?.images ?? []).filter((image) => Boolean(image && image.src)).slice(0, 3);
const hasContact = Boolean(company || address || phone || email);
const fine = (finePrint ?? []).filter((line) => line !== null && line !== undefined && line !== "");
const mark = logoImage ? (
<img className="cf-pf__logo" src={logoImage} alt={brandName} />
) : (
brandName
);
return (
<footer
className={className ? `cf-page-footer ${className}` : "cf-page-footer"}
data-cta={cta ? "" : undefined}
>
<style>{CSS}</style>
{cta ? (
<div className="cf-pf__zone">
<section className="cf-pf__cta" aria-labelledby={headingId}>
{thumbs.length > 0 ? (
<div className="cf-pf__fan">
{thumbs.map((image, index) => (
<img
key={`${image.src.slice(-24)}-${index}`}
className="cf-pf__thumb"
src={image.src}
alt={image.alt}
width={64}
height={64}
loading="lazy"
decoding="async"
/>
))}
</div>
) : null}
<div className="cf-pf__copy">
<h2 id={headingId} className="cf-pf__headline">
{renderHeadline(cta.headline, cta.highlight)}
</h2>
</div>
<div className="cf-pf__deal">
{cta.price ? (
<p className="cf-pf__price">
<span className="cf-pf__amount">{cta.price}</span>
{cta.priceNote ? <span className="cf-pf__note">{cta.priceNote}</span> : null}
</p>
) : null}
<div className="cf-pf__action">
<CtaButton cta={cta} state={state} onAction={onAction} />
{cta.reassurance ? (
<p className="cf-pf__assure">
<ShieldCheck aria-hidden="true" strokeWidth={2.4} />
{cta.reassurance}
</p>
) : null}
</div>
</div>
</section>
</div>
) : null}
<div className="cf-pf__band">
<div className="cf-pf__inner">
<div className="cf-pf__row">
<div className="cf-pf__brand">
<p className="cf-pf__wordmark">
{brandHref ? <a href={brandHref}>{mark}</a> : mark}
</p>
{tagline ? <p className="cf-pf__tagline">{tagline}</p> : null}
</div>
{hasContact ? (
<address className="cf-pf__contact" aria-label={contactLabel}>
<ul>
{company ? (
<li>
<Building2 aria-hidden="true" strokeWidth={2} />
{company}
</li>
) : null}
{address ? (
<li>
<MapPin aria-hidden="true" strokeWidth={2} />
{address}
</li>
) : null}
{phone ? (
<li>
<Phone aria-hidden="true" strokeWidth={2} />
<a className="cf-pf__link" href={`tel:${phone.replace(/[^\d+]/g, "")}`}>
{phone}
</a>
</li>
) : null}
{email ? (
<li>
<Mail aria-hidden="true" strokeWidth={2} />
<a className="cf-pf__link" href={`mailto:${email}`}>
{email}
</a>
</li>
) : null}
</ul>
</address>
) : null}
{links.length > 0 ? (
<nav className="cf-pf__nav" aria-label={legalLabel}>
<ul>
{links.map((link) => (
<li key={`${link.label}-${link.href}`}>
<a className="cf-pf__link" href={link.href}>
{link.label}
</a>
</li>
))}
</ul>
</nav>
) : null}
</div>
<hr className="cf-pf__rule" />
{fine.length > 0 ? (
<div className="cf-pf__fine">
{fine.map((line, index) => (
<p key={index}>{line}</p>
))}
</div>
) : null}
<div className="cf-pf__base">
<p className="cf-pf__copyright">{copyright}</p>
{showBackToTop ? (
<button type="button" className="cf-pf__top" onClick={scrollToTop}>
{backToTopLabel}
</button>
) : null}
</div>
</div>
</div>
</footer>
);
}
export default PageFooter;
const DEFAULT_LINKS: PageFooterLink[] = [
{ label: "Privacy", href: "#privacy" },
{ label: "Terms", href: "#terms" },
{ label: "Contact", href: "#contact" },
];
const DEFAULT_FINE_PRINT: React.ReactNode[] = [
"Results vary and depend on your offer, your effort and how you put the plan to work. No specific income or results are promised.",
"This site is not part of the Facebook website or Meta Platforms, Inc., and is not endorsed by Facebook in any way.",
];
function CtaButton({
cta,
state,
onAction,
}: {
cta: PageFooterCta;
state: PageFooterState;
onAction?: () => void;
}) {
const disabled = state === "disabled";
const forced = state === "hover" || state === "active" ? state : undefined;
const inner = (
<>
<span className="cf-pf__btn-label">{cta.label}</span>
{cta.sublabel ? <span className="cf-pf__btn-sub">{cta.sublabel}</span> : null}
</>
);
if (cta.href && !disabled) {
return (
<a className="cf-pf__btn" href={cta.href} data-state={forced} onClick={() => onAction?.()}>
{inner}
</a>
);
}
return (
<button
type="button"
className="cf-pf__btn"
data-state={forced}
disabled={disabled}
onClick={() => {
if (!disabled) onAction?.();
}}
>
{inner}
</button>
);
}
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-pf__mark">{highlight}</span>
{headline.slice(at + highlight.length)}
</>
);
}
function scrollToTop() {
if (typeof window === "undefined") return;
const reduce = window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : false;
window.scrollTo({ top: 0, behavior: reduce ? "auto" : "smooth" });
}
const CSS = `
.cf-page-footer {
--pf-band: var(--band, #1c2b4a);
--pf-on-band: var(--band-ink, #ffffff);
/* band text and band can carry different hues: blend in oklab so the secondary band text never drifts around the wheel */
--pf-soft: color-mix(in oklab, var(--pf-on-band) 84%, var(--pf-band));
--pf-faint: color-mix(in oklab, var(--pf-on-band) 76%, var(--pf-band));
--pf-rule: oklch(from var(--pf-on-band) l c h / 0.16);
--pf-shadow: var(--shadow, oklch(0.22 0.03 256));
position: relative;
display: block;
background: var(--pf-band);
color: var(--pf-on-band);
font-family: var(--font-body, system-ui, sans-serif);
font-size: 16px;
line-height: 1.5;
overflow-x: clip;
-webkit-font-smoothing: antialiased;
}
.cf-page-footer *, .cf-page-footer *::before, .cf-page-footer *::after { box-sizing: border-box; }
/* Final offer row: one card straddling the page and the band. The zone brings its own top space so the card never
leans on the previous section's bottom padding. */
.cf-page-footer .cf-pf__zone {
position: relative;
padding: clamp(24px, 3vw, 40px) clamp(16px, 4vw, 40px) 0;
}
.cf-page-footer .cf-pf__zone::before {
content: '';
position: absolute;
inset: 0 0 50% 0;
background: var(--surface, #ffffff);
}
.cf-page-footer .cf-pf__cta {
position: relative;
z-index: 1;
max-width: 1160px;
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'copy' 'deal';
gap: 18px 28px;
align-items: center;
padding: clamp(20px, 2.4vw, 28px);
background: var(--card, #ffffff);
color: var(--ink, #1b2333);
border: 1px solid var(--card-border, color-mix(in oklch, var(--ink, #1b2333) 12%, transparent));
border-radius: var(--card-radius, calc(var(--radius, 12px) + 4px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--pf-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--pf-shadow) l c h / 0.32))), inset 0 1px 0 oklch(from var(--card, #ffffff) calc(l + 0.04) c h / 0.6);
}
.cf-page-footer .cf-pf__fan {
grid-area: fan;
display: none;
align-items: center;
padding: 8px 10px 8px 6px;
}
.cf-page-footer .cf-pf__thumb {
position: relative;
display: block;
flex: 0 0 auto;
width: 56px;
height: 56px;
object-fit: cover;
object-position: center;
border-radius: calc(var(--radius, 12px) * 0.6 + 2px);
border: 3px solid var(--card, #ffffff);
background: var(--card, #ffffff);
filter: drop-shadow(0 1px 1px oklch(from var(--pf-shadow) l c h / 0.28)) drop-shadow(0 5px 6px oklch(from var(--pf-shadow) l c h / 0.22));
transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cf-page-footer .cf-pf__thumb + .cf-pf__thumb { margin-left: -18px; }
.cf-page-footer .cf-pf__thumb:nth-child(1) { transform: rotate(-9deg) translateY(3px); z-index: 1; }
.cf-page-footer .cf-pf__thumb:nth-child(2) { transform: translateY(-3px); z-index: 3; }
.cf-page-footer .cf-pf__thumb:nth-child(3) { transform: rotate(9deg) translateY(3px); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
.cf-page-footer .cf-pf__cta:hover .cf-pf__thumb:nth-child(1), .cf-page-footer .cf-pf__cta:focus-within .cf-pf__thumb:nth-child(1) { transform: rotate(-13deg) translate(-5px, 4px); }
.cf-page-footer .cf-pf__cta:hover .cf-pf__thumb:nth-child(2), .cf-page-footer .cf-pf__cta:focus-within .cf-pf__thumb:nth-child(2) { transform: translateY(-7px); }
.cf-page-footer .cf-pf__cta:hover .cf-pf__thumb:nth-child(3), .cf-page-footer .cf-pf__cta:focus-within .cf-pf__thumb:nth-child(3) { transform: rotate(13deg) translate(5px, 4px); }
}
.cf-page-footer .cf-pf__copy { grid-area: copy; min-width: 0; }
.cf-page-footer .cf-pf__headline {
margin: 0;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.015em);
font-size: clamp(1.375rem, 1rem + 1.1vw, 1.875rem);
line-height: 1.14;
color: var(--ink, #1b2333);
text-wrap: balance;
}
/* Marker: the contract's --marker token; #fae37c is its documented default */
.cf-page-footer .cf-pf__mark, .cf-page-footer .cf-pf__headline mark {
color: inherit;
background-color: transparent;
background-image: linear-gradient(transparent 54%, color-mix(in oklch, var(--marker, #fae37c) 88%, transparent) 54%, color-mix(in oklch, var(--marker, #fae37c) 88%, transparent) 94%, transparent 94%);
background-repeat: no-repeat;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 0.14em;
margin: 0 -0.04em;
border-radius: 0.18em 0.4em 0.3em 0.22em;
}
.cf-page-footer .cf-pf__deal {
grid-area: deal;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 16px;
min-width: 0;
}
.cf-page-footer .cf-pf__price {
margin: 0;
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 12px;
color: var(--ink, #1b2333);
}
.cf-page-footer .cf-pf__amount {
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
font-size: clamp(2rem, 1.4rem + 1.4vw, 2.625rem);
line-height: 1.05;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums lining-nums;
}
.cf-page-footer .cf-pf__note {
font-size: 14px;
font-weight: 600;
line-height: 1.35;
color: var(--muted, #4a5568);
text-wrap: pretty;
}
.cf-page-footer .cf-pf__action {
min-width: 0;
display: flex;
flex-direction: column;
align-items: stretch;
}
/* Primary button: in-hue gradient, inset lip, close dark shadow */
.cf-page-footer .cf-pf__btn {
--pf-b: var(--button-bg, var(--cta, #d9342b));
--pf-b2: var(--button-bg-2, var(--cta-2, #b8281f));
--pf-dim: 0;
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
width: 100%;
min-height: 62px;
margin: 0;
padding: 13px 18px 15px;
border: 1px solid oklch(from var(--pf-b2) calc(l - 0.08) c h);
border-radius: var(--button-radius, var(--radius, 12px));
background-color: var(--pf-b);
background-image: linear-gradient(180deg, oklch(from var(--pf-b) calc(l + 0.045 - var(--pf-dim)) c h), oklch(from var(--pf-b2) calc(l + 0.01 - var(--pf-dim)) 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-shadow: var(--button-text-shadow, none);
text-align: center;
text-decoration: none;
cursor: pointer;
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--pf-b) calc(l + 0.14) c h / 0.6), inset 0 -3px 0 oklch(from var(--pf-b2) calc(l - 0.14) c h), 0 1px 2px oklch(from var(--pf-shadow) l c h / 0.3), 0 6px 14px -4px oklch(from var(--pf-shadow) l c h / 0.38));
transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s ease;
-webkit-tap-highlight-color: transparent;
}
.cf-page-footer .cf-pf__btn-label {
display: block;
font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
line-height: 1.2;
letter-spacing: -0.005em;
text-wrap: balance;
}
.cf-page-footer .cf-pf__btn-sub {
display: block;
font-family: var(--font-body, inherit);
font-size: 14px;
font-weight: 500;
line-height: 1.3;
letter-spacing: 0;
text-transform: none;
text-wrap: pretty;
}
.cf-page-footer .cf-pf__btn:not(:disabled):hover, .cf-page-footer .cf-pf__btn[data-state='hover'] {
--pf-dim: 0.05;
transform: translateY(-1px);
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--pf-b) calc(l + 0.12) c h / 0.6), inset 0 -3px 0 oklch(from var(--pf-b2) calc(l - 0.16) c h), 0 2px 3px oklch(from var(--pf-shadow) l c h / 0.32), 0 10px 18px -6px oklch(from var(--pf-shadow) l c h / 0.42));
}
.cf-page-footer .cf-pf__btn:not(:disabled):active, .cf-page-footer .cf-pf__btn[data-state='active'] {
--pf-dim: 0.09;
transform: translateY(1px);
transition-duration: 0.06s;
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--pf-b) calc(l + 0.08) c h / 0.35), inset 0 -1px 0 oklch(from var(--pf-b2) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--pf-shadow) l c h / 0.3));
}
.cf-page-footer .cf-pf__btn:focus-visible {
outline: 3px solid var(--field-focus, var(--accent, #2563eb));
outline-offset: 3px;
}
.cf-page-footer .cf-pf__btn:disabled {
--pf-dim: 0;
--pf-b2-quiet: var(--button-2-bg, var(--secondary, #e7eaf0));
cursor: not-allowed;
transform: none;
background-image: none;
background-color: var(--pf-b2-quiet);
color: var(--button-2-ink, var(--secondary-ink, #1b2333));
text-shadow: none;
border-color: oklch(from var(--pf-b2-quiet) calc(l - 0.08) c h);
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.cf-page-footer .cf-pf__assure {
margin: 12px 0 0;
font-size: 14px;
line-height: 1.4;
font-weight: 500;
color: var(--muted, #4a5568);
text-align: center;
text-wrap: pretty;
}
.cf-page-footer .cf-pf__assure svg {
display: inline-block;
width: 1.1em;
height: 1.1em;
vertical-align: -0.2em;
margin-inline-end: 0.4em;
color: var(--success, #2f7d4a);
}
/* Footer band */
.cf-page-footer .cf-pf__band {
padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(28px, 3.4vw, 40px);
}
.cf-page-footer[data-cta] .cf-pf__band { padding-top: clamp(36px, 4.4vw, 52px); }
.cf-page-footer .cf-pf__inner {
max-width: 1160px;
margin: 0 auto;
padding-inline: clamp(18px, 2.4vw, 28px);
}
.cf-page-footer .cf-pf__row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 24px 48px;
}
.cf-page-footer .cf-pf__brand { flex: 1 1 280px; min-width: 0; }
.cf-page-footer .cf-pf__contact { flex: 0 1 300px; min-width: 0; font-style: normal; }
.cf-page-footer .cf-pf__nav { flex: 0 0 auto; }
.cf-page-footer .cf-pf__wordmark {
margin: 0;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
letter-spacing: var(--display-tracking, -0.02em);
text-transform: var(--display-case, none);
font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
line-height: 1.1;
color: var(--pf-on-band);
text-wrap: balance;
}
.cf-page-footer .cf-pf__wordmark a {
color: inherit;
text-decoration: none;
border-radius: 4px;
}
.cf-page-footer .cf-pf__wordmark a:focus-visible {
outline: 2px solid var(--pf-on-band);
outline-offset: 4px;
}
.cf-page-footer .cf-pf__logo {
display: block;
height: clamp(32px, 3.4vw, 44px);
width: auto;
max-width: 240px;
object-fit: contain;
object-position: left center;
}
.cf-page-footer .cf-pf__tagline {
margin: 12px 0 0;
font-size: 17px;
line-height: 1.55;
color: var(--pf-soft);
max-width: 46ch;
text-wrap: pretty;
}
.cf-page-footer .cf-pf__contact ul, .cf-page-footer .cf-pf__nav ul {
list-style: none;
margin: 0;
padding: 0;
}
.cf-page-footer .cf-pf__contact li {
padding-left: 1.6em;
text-indent: -1.6em;
font-size: 16px;
line-height: 1.45;
color: var(--pf-soft);
overflow-wrap: anywhere;
}
.cf-page-footer .cf-pf__contact li + li { margin-top: 10px; }
.cf-page-footer .cf-pf__contact svg {
display: inline-block;
width: 1.05em;
height: 1.05em;
vertical-align: -0.17em;
margin-inline-end: 0.55em;
color: var(--pf-on-band);
}
.cf-page-footer .cf-pf__nav ul {
display: flex;
flex-wrap: wrap;
gap: 0 26px;
margin-top: -9px;
}
.cf-page-footer .cf-pf__nav a {
display: inline-flex;
align-items: center;
min-height: 44px;
font-size: 16px;
font-weight: 600;
}
/* Links on the band use the band ink, underlined (contract §3) */
.cf-page-footer .cf-pf__link {
color: var(--pf-on-band);
text-decoration: underline;
text-decoration-thickness: 1px;
text-decoration-color: oklch(from var(--pf-on-band) l c h / 0.4);
text-underline-offset: 0.2em;
transition: text-decoration-color 0.15s ease;
}
.cf-page-footer .cf-pf__link:hover { text-decoration-color: currentColor; }
.cf-page-footer .cf-pf__link:focus-visible {
outline: 2px solid var(--pf-on-band);
outline-offset: 3px;
border-radius: 3px;
text-decoration-color: currentColor;
}
.cf-page-footer .cf-pf__rule {
display: block;
height: 1px;
border: 0;
margin: clamp(24px, 3vw, 36px) 0 clamp(20px, 2.6vw, 28px);
background: var(--pf-rule);
}
.cf-page-footer .cf-pf__fine p {
margin: 0;
font-size: 16px;
line-height: 1.6;
color: var(--pf-faint);
max-width: 72ch;
text-wrap: pretty;
}
.cf-page-footer .cf-pf__fine p + p { margin-top: 10px; }
.cf-page-footer .cf-pf__fine + .cf-pf__base { margin-top: clamp(22px, 2.8vw, 30px); }
.cf-page-footer .cf-pf__base {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 14px 24px;
}
.cf-page-footer .cf-pf__copyright {
margin: 0;
font-size: 15px;
line-height: 1.5;
color: var(--pf-soft);
text-wrap: pretty;
}
/* Back to top: a quiet utility button on the band. Colours stay band-derived so it reads on any band;
it follows the theme's button case so it matches the piece's other buttons. */
.cf-page-footer .cf-pf__top {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
margin: 0;
padding: 0 20px;
border-radius: 999px;
border: 1px solid var(--pf-rule);
background: oklch(from var(--pf-on-band) l c h / 0.06);
color: var(--pf-on-band);
font: inherit;
font-size: 15px;
font-weight: 600;
text-transform: var(--button-case, none);
text-align: center;
cursor: pointer;
transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cf-page-footer .cf-pf__top:hover {
background: oklch(from var(--pf-on-band) l c h / 0.12);
border-color: oklch(from var(--pf-on-band) l c h / 0.3);
}
.cf-page-footer .cf-pf__top:active { transform: translateY(1px); background: oklch(from var(--pf-on-band) l c h / 0.16); }
.cf-page-footer .cf-pf__top:focus-visible {
outline: 2px solid var(--pf-on-band);
outline-offset: 3px;
}
@media (min-width: 520px) {
.cf-page-footer .cf-pf__cta {
grid-template-columns: auto minmax(0, 1fr);
grid-template-areas: 'fan copy' 'fan deal';
}
.cf-page-footer .cf-pf__fan { display: flex; align-self: center; }
.cf-page-footer .cf-pf__deal {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: 14px 24px;
}
.cf-page-footer .cf-pf__price {
flex: 0 0 auto;
flex-direction: column;
align-items: flex-start;
gap: 0;
}
.cf-page-footer .cf-pf__note { margin-top: 12px; max-width: 16ch; }
.cf-page-footer .cf-pf__action { flex: 1 1 280px; max-width: 400px; }
.cf-page-footer .cf-pf__btn { padding: 14px 28px 16px; }
}
@media (min-width: 1200px) {
.cf-page-footer .cf-pf__cta {
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-areas: 'fan copy deal';
column-gap: 32px;
}
.cf-page-footer .cf-pf__deal { flex-wrap: nowrap; gap: 28px; }
.cf-page-footer .cf-pf__action { flex: 0 0 auto; max-width: none; }
.cf-page-footer .cf-pf__btn-label { white-space: nowrap; }
.cf-page-footer .cf-pf__thumb { width: 64px; height: 64px; }
.cf-page-footer .cf-pf__thumb + .cf-pf__thumb { margin-left: -20px; }
}
@media (max-width: 519px) {
.cf-page-footer .cf-pf__row { gap: 22px; }
.cf-page-footer .cf-pf__brand, .cf-page-footer .cf-pf__contact, .cf-page-footer .cf-pf__nav { flex: 1 1 100%; }
.cf-page-footer .cf-pf__nav ul { margin-top: -10px; gap: 0 22px; }
.cf-page-footer .cf-pf__base { flex-direction: column; align-items: stretch; gap: 16px; }
.cf-page-footer .cf-pf__top { display: flex; width: 100%; margin-inline: auto; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-page-footer .cf-pf__btn, .cf-page-footer .cf-pf__thumb, .cf-page-footer .cf-pf__top, .cf-page-footer .cf-pf__link { transition: none; }
.cf-page-footer .cf-pf__btn:not(:disabled):hover, .cf-page-footer .cf-pf__btn[data-state='hover'],
.cf-page-footer .cf-pf__btn:not(:disabled):active, .cf-page-footer .cf-pf__btn[data-state='active'],
.cf-page-footer .cf-pf__top:active { transform: none; }
}
`;
pieces/content/page-footer/specimen.tsx 51 lines
// Specimen: the footer closing The Funnel Starter Kit sales page, with its slim final call to action.
// The wrapper sets no tokens or fonts; images go through slots (item-n, logo) inside render.
import * as React from "react";
import { PageFooter, type PageFooterState } from "../page-footer";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states: PageFooterState[] = ["default", "hover", "active", "disabled"];
export default function PageFooterSpecimen({ state = "default" }: { state?: PageFooterState }) {
const sample = defaults.sample;
const images = sample.items.map((item, index) => ({
src: slot(`item-${index + 1}`, item.image),
alt: item.imageAlt,
}));
const logo = slot("logo", "");
return (
<PageFooter
brandName={sample.name}
logoImage={logo || undefined}
tagline={sample.lead}
company="Funnel Starter Media LLC"
address="2208 Harbor Lane, Suite 310, Boise, ID 83702"
phone="(555) 014-2290"
email="support@funnelstarterkit.com"
links={[
{ label: "Privacy", href: "#privacy" },
{ label: "Terms", href: "#terms" },
{ label: "Contact", href: "#contact" },
]}
finePrint={[
`${sample.name} is a digital download, and every order is covered by our ${sample.guarantee}. Results vary and depend on your offer, your effort and how you put the plan to work; no specific income or results are promised.`,
"This site is not part of the Facebook website or Meta Platforms, Inc., and is not endorsed by Facebook in any way. Facebook is a trademark of Meta Platforms, Inc.",
]}
year={2026}
cta={{
headline: sample.headline,
highlight: "a clear plan",
price: sample.price,
priceNote: sample.note,
label: "Yes! I want the Funnel Starter Kit",
sublabel: sample.sublabel,
reassurance: sample.guarantee,
href: "#order",
images,
}}
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
brandName OptionalPageFooter |
string |
|
logoImage OptionalPageFooter |
string |
|
brandHref OptionalPageFooter |
string |
|
tagline OptionalPageFooter |
string |
|
company OptionalPageFooter |
string |
|
address OptionalPageFooter |
string |
|
phone OptionalPageFooter |
string |
|
email OptionalPageFooter |
string |
|
links OptionalPageFooter |
PageFooterLink[] |
|
finePrint OptionalPageFooter |
React.ReactNode[] |
|
copyrightTemplate OptionalPageFooter |
string |
|
year OptionalPageFooter |
number | string |
|
cta OptionalPageFooter |
PageFooterCta | null |
|
onAction OptionalPageFooter |
() => void |
|
showBackToTop OptionalPageFooter |
boolean |
|
backToTopLabel OptionalPageFooter |
string |
|
legalLabel OptionalPageFooter |
string |
|
contactLabel OptionalPageFooter |
string |
|
ctaLabel OptionalPageFooter |
string |
|
state OptionalPageFooter |
PageFooterState |
|
className OptionalPageFooter |
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-focus- 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-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
logo- The brand’s logo mark.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB