Site Footer 1
Site footer: a dark glow stage under a torn edge that still sells. It asks one last question with a button that answers it, then shows the brand block and every nav link, so a funnel's host site ends on the next step.
Use it in a prompt
Use content/site-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/site-footer.tsx. - Import it and pass your copy and images (Props tab):
import { SiteFooter } from "@/components/funneldna/content/site-footer"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/site-footer/component.tsx 416 lines
// layout: bento-grid
// Site footer: a dark glow stage under a torn edge that still sells. It asks one last question with a button that answers it, then shows the brand block and every nav link, so a funnel's host site ends on the next step.
import React, { useEffect, useId, useState } from "react";
import { ChevronDown, ChevronUp, Mail } from "lucide-react";
import { Divider, Glow, FX_HOST } from "../fx/fx";
import torn from "../fx/dividers/torn";
export type SiteFooterLink = { label: string; href: string };
export type SiteFooterColumn = {
// Short column header, e.g. "Shop"
title: string;
links: SiteFooterLink[];
};
export type SiteFooterSocial = {
// Which mark to draw; "custom" draws the icon prop
network: "instagram" | "facebook" | "youtube" | "x" | "email" | "custom";
href: string;
// Accessible name, e.g. "Your Brand on Instagram"
label: string;
icon?: React.ReactNode;
};
export type SiteFooterStatus = {
label: string;
// Dot colour: success (normal) or warning (attention)
tone?: "success" | "warning";
href?: string;
};
export type SiteFooterAction = {
// The question the footer asks
question: React.ReactNode;
detail?: React.ReactNode;
// The button label answers the question
label: string;
href?: string;
// One short line under the button
note?: string;
};
export type SiteFooterProps = {
brandName?: string;
// "logo" slot image; when empty the brand name is set as a wordmark
logoImage?: string;
logoAlt?: string;
tagline?: React.ReactNode;
// Address lines, one entry per line
address?: string[];
socials?: SiteFooterSocial[];
// Live status pill; hidden unless supplied
status?: SiteFooterStatus;
// Closing question-and-answer action; null hides it
action?: SiteFooterAction | null;
onAction?: () => void;
columns?: SiteFooterColumn[];
// Template: {year} and {brand} are replaced
copyright?: string;
legalLinks?: SiteFooterLink[];
showBackToTop?: boolean;
backToTopLabel?: string;
// Accessible names for the link groups
navLabel?: string;
legalLabel?: string;
socialLabel?: string;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_COLUMNS: SiteFooterColumn[] = [
{ title: "Shop", links: [{ label: "All products", href: "#" }, { label: "Bundles", href: "#" }, { label: "Gift cards", href: "#" }] },
{ title: "Help", links: [{ label: "Contact us", href: "#" }, { label: "Shipping", href: "#" }, { label: "Returns", href: "#" }] },
{ title: "Company", links: [{ label: "About", href: "#" }, { label: "Blog", href: "#" }, { label: "Careers", href: "#" }] },
];
const DEFAULT_LEGAL: SiteFooterLink[] = [
{ label: "Privacy policy", href: "#" },
{ label: "Terms of service", href: "#" },
];
const DEFAULT_ACTION: SiteFooterAction = {
question: "Ready to take the next step?",
label: "Yes, show me how",
href: "#",
};
export function SiteFooter(props: SiteFooterProps) {
const {
brandName = "Your Brand",
logoImage,
logoAlt,
tagline,
address = [],
socials = [],
status,
action = DEFAULT_ACTION,
onAction,
columns = DEFAULT_COLUMNS,
copyright = "© {year} {brand}. All rights reserved.",
legalLinks = DEFAULT_LEGAL,
showBackToTop = true,
backToTopLabel = "Back to top",
navLabel = "Footer",
legalLabel = "Legal",
socialLabel = "Follow us",
state = "default",
className,
} = props;
const uid = useId().replace(/[^a-zA-Z0-9_-]/g, "");
const isPhone = useMedia("(max-width: 639.98px)");
const [open, setOpen] = useState<Record<number, boolean>>({});
const hover = state === "hover";
const disabled = state === "disabled";
const year = String(new Date().getFullYear());
const copy = copyright.replace("{year}", year).replace("{brand}", brandName);
const colCount = Math.min(Math.max(columns.length, 1), 5);
const toTop = () => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
window.scrollTo({ top: 0, behavior: reduce ? "auto" : "smooth" });
};
const ctaClass = ["cf-site-footer__cta", hover ? "is-hover" : "", state === "active" ? "is-active" : ""].filter(Boolean).join(" ");
return (
<footer className={["cf-site-footer", className].filter(Boolean).join(" ")} style={FX_HOST}>
<style>{CSS}</style>
<div className="cf-site-footer__edge" aria-hidden="true">
<Divider shape="torn" src={torn} tone="surface" height={40} />
</div>
<div className="cf-site-footer__glow cf-site-footer__glow--brand" aria-hidden="true">
<Glow />
</div>
{action ? (
<div className="cf-site-footer__glow cf-site-footer__glow--action" aria-hidden="true">
<Glow />
</div>
) : null}
<div className="cf-site-footer__inner">
<div className={"cf-site-footer__grid" + (action ? "" : " cf-site-footer__grid--solo")}>
<div className="cf-site-footer__tile cf-site-footer__brand" style={{ "--i": 0 } as React.CSSProperties}>
{logoImage ? (
<img className="cf-site-footer__logo" src={logoImage} alt={logoAlt ?? brandName} />
) : (
<p className="cf-site-footer__wordmark">{brandName}</p>
)}
{tagline ? <p className="cf-site-footer__tagline">{tagline}</p> : null}
{address.length ? (
<address className="cf-site-footer__address">
{address.map((line, i) => (
<span key={i}>{line}</span>
))}
</address>
) : null}
{socials.length ? (
<ul className="cf-site-footer__socials" aria-label={socialLabel}>
{socials.map((s, i) => (
<li key={i}>
<a className={"cf-site-footer__social" + (hover && i === 0 ? " is-hover" : "")} href={s.href} aria-label={s.label}>
{s.icon ?? <SocialMark network={s.network} />}
</a>
</li>
))}
</ul>
) : null}
{status ? (
<div className="cf-site-footer__status-wrap">
<StatusPill status={status} />
</div>
) : null}
</div>
{action ? (
<div className="cf-site-footer__tile cf-site-footer__action" style={{ "--i": 1 } as React.CSSProperties}>
<div>
<h2 className="cf-site-footer__question">{action.question}</h2>
{action.detail ? <p className="cf-site-footer__detail">{action.detail}</p> : null}
</div>
<div className="cf-site-footer__answer">
{action.href && !disabled ? (
<a className={ctaClass} href={action.href} onClick={() => onAction?.()}>
{action.label}
</a>
) : (
<button type="button" className={ctaClass} disabled={disabled} onClick={() => onAction?.()}>
{action.label}
</button>
)}
{action.note ? <p className="cf-site-footer__note">{action.note}</p> : null}
</div>
</div>
) : null}
<nav
className="cf-site-footer__tile cf-site-footer__links"
aria-label={navLabel}
style={{ "--i": 2, "--cols": colCount } as React.CSSProperties}
>
<div className="cf-site-footer__cols">
{columns.map((col, ci) => {
const headId = `${uid}-h${ci}`;
const panelId = `${uid}-p${ci}`;
const isOpen = !!open[ci];
const list = (
<ul className="cf-site-footer__list">
{col.links.map((l, li) => (
<li key={li}>
<a className={"cf-site-footer__link" + (hover && ci === 0 && li === 0 ? " is-hover" : "")} href={l.href}>
{l.label}
</a>
</li>
))}
</ul>
);
if (isPhone) {
return (
<div className="cf-site-footer__col cf-site-footer__col--acc" key={ci}>
<h3 className="cf-site-footer__head">
<button
type="button"
id={headId}
className="cf-site-footer__acc"
aria-expanded={isOpen}
aria-controls={panelId}
onClick={() => setOpen((o) => ({ ...o, [ci]: !o[ci] }))}
>
<span>{col.title}</span>
<ChevronDown size={20} strokeWidth={2.5} aria-hidden="true" />
</button>
</h3>
<div id={panelId} role="region" aria-labelledby={headId} className={"cf-site-footer__panel" + (isOpen ? " is-open" : "")}>
<div>{list}</div>
</div>
</div>
);
}
return (
<div className="cf-site-footer__col" key={ci}>
<h3 className="cf-site-footer__head" id={headId}>
{col.title}
</h3>
{list}
</div>
);
})}
</div>
</nav>
</div>
<div className="cf-site-footer__bottom">
<p className="cf-site-footer__copy">{copy}</p>
{legalLinks.length ? (
<ul className="cf-site-footer__legal" aria-label={legalLabel}>
{legalLinks.map((l, i) => (
<li key={i}>
<a className="cf-site-footer__link" href={l.href}>
{l.label}
</a>
</li>
))}
</ul>
) : null}
{showBackToTop ? (
<button type="button" className="cf-site-footer__top" onClick={toTop}>
<ChevronUp size={16} strokeWidth={2.5} aria-hidden="true" />
{backToTopLabel}
</button>
) : null}
</div>
</div>
</footer>
);
}
export default SiteFooter;
function useMedia(query: string) {
const [match, setMatch] = useState(() => typeof window !== "undefined" && window.matchMedia(query).matches);
useEffect(() => {
const mq = window.matchMedia(query);
const update = () => setMatch(mq.matches);
update();
mq.addEventListener("change", update);
return () => mq.removeEventListener("change", update);
}, [query]);
return match;
}
function StatusPill({ status }: { status: SiteFooterStatus }) {
const cls = "cf-site-footer__status" + (status.tone === "warning" ? " is-warning" : "");
const inner = (
<>
<span className="cf-site-footer__dot" aria-hidden="true" />
{status.label}
</>
);
return status.href ? (
<a className={cls} href={status.href}>
{inner}
</a>
) : (
<p className={cls}>{inner}</p>
);
}
// Official social marks drawn in one colour (currentColor) so they follow the band.
function SocialMark({ network }: { network: SiteFooterSocial["network"] }) {
if (network === "email") return <Mail size={18} strokeWidth={2.5} aria-hidden="true" />;
if (network === "instagram")
return (
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2.5} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" data-official-mark="Instagram">
<rect x="2" y="2" width="20" height="20" rx="5" ry="5" />
<path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" />
<line x1="17.5" y1="6.5" x2="17.51" y2="6.5" />
</svg>
);
if (network === "facebook")
return (
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2.5} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" data-official-mark="Facebook">
<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" />
</svg>
);
if (network === "youtube")
return (
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2.5} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" data-official-mark="YouTube">
<path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17" />
<path d="m10 15 5-3-5-3z" />
</svg>
);
if (network === "x")
return (
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-official-mark="X">
<path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" />
</svg>
);
return null;
}
const CSS = `
.cf-site-footer{position:relative;isolation:isolate;overflow:clip;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:calc(clamp(56px,8vw,112px) + 40px) clamp(16px,5vw,48px) clamp(32px,4vw,48px)}
.cf-site-footer *,.cf-site-footer *::before,.cf-site-footer *::after{box-sizing:border-box}
.cf-site-footer__edge{position:absolute;left:0;right:0;top:0;height:40px;transform:scaleY(-1);z-index:0;pointer-events:none}
.cf-site-footer__glow{position:absolute;z-index:0;pointer-events:none}
.cf-site-footer__glow--brand{top:8%;left:-16%;width:56%;height:70%;opacity:.5}
.cf-site-footer__glow--action{top:4%;right:-10%;width:62%;height:56%;opacity:.8}
.cf-site-footer__inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-site-footer__grid{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);grid-template-areas:'brand' 'action' 'links'}
.cf-site-footer__grid--solo{grid-template-areas:'brand' 'links'}
.cf-site-footer__tile{border-radius:var(--card-radius,var(--radius,14px));padding:clamp(20px,3vw,32px);background:oklch(from var(--band-ink) l c h / .05);border:1px solid oklch(from var(--band-ink) l c h / .1);box-shadow:inset 0 1px 0 oklch(from var(--band-ink) l c h / .06);animation:cf-site-footer-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * .07s)}
.cf-site-footer__brand{grid-area:brand;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.cf-site-footer__logo{display:block;height:56px;width:auto;max-width:100%;object-fit:contain}
.cf-site-footer__wordmark{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-site-footer__tagline{margin:-8px 0 0;max-width:36ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:color-mix(in oklch,var(--band-ink) 82%,var(--band));text-wrap:pretty}
.cf-site-footer__address{margin:0;font-style:normal;font-size:15px;line-height:1.5;color:color-mix(in oklch,var(--band-ink) 72%,var(--band))}
.cf-site-footer__address span{display:block}
.cf-site-footer__socials{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.cf-site-footer__social{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:999px;color:var(--band-ink);background:oklch(from var(--band-ink) l c h / .08);border:1px solid oklch(from var(--band-ink) l c h / .14);text-decoration:none;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.cf-site-footer__social:hover,.cf-site-footer__social.is-hover{background:oklch(from var(--band-ink) l c h / .16);border-color:oklch(from var(--band-ink) l c h / .28);transform:translateY(-1px)}
.cf-site-footer__social:active{transform:translateY(0);background:oklch(from var(--band-ink) l c h / .2)}
.cf-site-footer__social:focus-visible{outline:2px solid var(--band-ink);outline-offset:3px}
.cf-site-footer__status-wrap{margin-top:auto;padding-top:8px}
.cf-site-footer__status{display:inline-flex;align-items:center;gap:10px;min-height:32px;margin:0;padding:4px 14px 4px 12px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .08);border:1px solid oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);font-size:14px;font-weight:600;line-height:1.2;text-decoration:none}
a.cf-site-footer__status{transition:background .16s ease}
a.cf-site-footer__status:hover{background:oklch(from var(--band-ink) l c h / .14)}
a.cf-site-footer__status:focus-visible{outline:2px solid var(--band-ink);outline-offset:3px}
.cf-site-footer__dot{flex:none;width:8px;height:8px;border-radius:999px;background:oklch(from var(--success) clamp(.66, l + .2, .8) c h);box-shadow:0 0 0 3px oklch(from var(--success) clamp(.66, l + .2, .8) c h / .25)}
.cf-site-footer__status.is-warning .cf-site-footer__dot{background:oklch(from var(--warning) clamp(.72, l + .25, .86) c h);box-shadow:0 0 0 3px oklch(from var(--warning) clamp(.72, l + .25, .86) c h / .25)}
.cf-site-footer__action{grid-area:action;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:20px 32px;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .32)))}
.cf-site-footer__question{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.01em);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink);text-wrap:balance}
.cf-site-footer__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-site-footer__answer{display:flex;flex-direction:column;align-items:center;gap:8px}
.cf-site-footer__note{margin:0;font-size:15px;font-weight:500;line-height:1.4;color:var(--muted);text-align:center;text-wrap:pretty}
.cf-site-footer__cta{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:8px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2,var(--cta))) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .4));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-site-footer__cta:hover:not(:disabled),.cf-site-footer__cta.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2,var(--cta))) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .34),0 10px 18px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .5))}
.cf-site-footer__cta:active:not(:disabled),.cf-site-footer__cta.is-active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .5),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3)}
.cf-site-footer__cta:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-site-footer__cta:disabled{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));text-shadow:none;cursor:not-allowed}
.cf-site-footer__links{grid-area:links}
.cf-site-footer__cols{display:grid;gap:28px 20px;grid-template-columns:repeat(2,minmax(0,1fr))}
.cf-site-footer__head{margin:0 0 16px;font-family:var(--font-body);font-size:15px;font-weight:700;line-height:1.3;color:var(--band-ink)}
.cf-site-footer__list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cf-site-footer__link{color:color-mix(in oklch,var(--band-ink) 76%,var(--band));font-size:15px;font-weight:500;line-height:1.4;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:transparent;text-underline-offset:.18em;border-radius:4px;text-wrap:pretty;transition:color .16s ease,text-decoration-color .16s ease}
.cf-site-footer__link:hover,.cf-site-footer__link.is-hover{color:var(--band-ink);text-decoration-color:oklch(from var(--band-ink) l c h / .55)}
.cf-site-footer__link:focus-visible{outline:2px solid var(--band-ink);outline-offset:3px;color:var(--band-ink)}
.cf-site-footer__col--acc{border-bottom:1px solid oklch(from var(--band-ink) l c h / .12)}
.cf-site-footer__col--acc:last-child{border-bottom:0}
.cf-site-footer__col--acc .cf-site-footer__head{margin:0}
.cf-site-footer__acc{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin:0;padding:0 4px;border:0;border-radius:8px;background:none;color:var(--band-ink);font-family:var(--font-body);font-size:17px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer}
.cf-site-footer__acc svg{flex:none;transition:transform .2s ease}
.cf-site-footer__acc[aria-expanded='true'] svg{transform:rotate(180deg)}
.cf-site-footer__acc:focus-visible{outline:2px solid var(--band-ink);outline-offset:2px}
.cf-site-footer__panel{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .22s ease,visibility 0s linear .22s}
.cf-site-footer__panel.is-open{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .22s ease}
.cf-site-footer__panel>div{min-height:0;overflow:hidden}
.cf-site-footer__panel .cf-site-footer__list{gap:0;padding:0 6px 12px}
.cf-site-footer__panel .cf-site-footer__link{display:inline-flex;align-items:center;min-height:44px;font-size:16px}
.cf-site-footer__panel .cf-site-footer__link:focus-visible{outline-offset:1px}
.cf-site-footer__bottom{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;margin-top:clamp(32px,4vw,48px);padding:0 4px;font-size:15px;line-height:1.4;color:color-mix(in oklch,var(--band-ink) 72%,var(--band))}
.cf-site-footer__copy{margin:0}
.cf-site-footer__legal{flex:1 1 auto;display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;margin:0;padding:0}
.cf-site-footer__top{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:var(--button-radius,var(--radius,12px));background:oklch(from var(--band-ink) l c h / .08);border:1px solid oklch(from var(--band-ink) l c h / .14);color:var(--band-ink);font-family:var(--font-body);font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;transition:background .16s ease,transform .16s ease}
.cf-site-footer__top:hover{background:oklch(from var(--band-ink) l c h / .14);transform:translateY(-1px)}
.cf-site-footer__top:active{transform:translateY(0);background:oklch(from var(--band-ink) l c h / .18)}
.cf-site-footer__top:focus-visible{outline:2px solid var(--band-ink);outline-offset:3px}
@keyframes cf-site-footer-rise{from{opacity:.82;transform:translateY(8px)}}
@media (min-width:640px){.cf-site-footer__grid{gap:20px}}
@media (min-width:768px){.cf-site-footer__action{grid-template-columns:minmax(0,1fr) auto}.cf-site-footer__cta{white-space:nowrap}}
@media (min-width:820px){.cf-site-footer__cols{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1024px){.cf-site-footer__grid{grid-template-columns:minmax(0,4fr) minmax(0,8fr);grid-template-areas:'brand action' 'brand links'}.cf-site-footer__grid--solo{grid-template-areas:'brand links'}}
@media (min-width:1200px){.cf-site-footer__cols{grid-template-columns:repeat(var(--cols,5),minmax(0,1fr))}}
@media (max-width:639.98px){.cf-site-footer__cols{display:block}.cf-site-footer__links{padding-block:4px}.cf-site-footer__answer,.cf-site-footer__cta{width:100%}.cf-site-footer__bottom{flex-direction:column;align-items:flex-start;gap:16px}.cf-site-footer__glow--action{display:none}}
@media (prefers-reduced-motion:reduce){.cf-site-footer *,.cf-site-footer .is-open{animation:none;transition:none}.cf-site-footer .cf-site-footer__social:hover,.cf-site-footer .cf-site-footer__top:hover,.cf-site-footer .cf-site-footer__cta.is-active,.cf-site-footer .cf-site-footer__cta:active{transform:none}}
`;
pieces/content/site-footer/specimen.tsx 84 lines
import { SiteFooter } from "../site-footer";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
export default function SiteFooterSpecimen({ state = "default" }: { state?: "default" | "hover" | "active" | "disabled" }) {
return (
<SiteFooter
state={state}
brandName="Tallow & Twine"
logoImage={slot("logo", "")}
logoAlt="Tallow & Twine"
tagline="Small-batch soap, cut by hand and cured for six weeks before it ships."
address={["212 Weaver Street, Studio 4", "Burlington, VT 05401"]}
socials={[
{ network: "instagram", href: "#", label: "Tallow & Twine on Instagram" },
{ network: "facebook", href: "#", label: "Tallow & Twine on Facebook" },
{ network: "youtube", href: "#", label: "Watch Tallow & Twine on YouTube" },
{ network: "email", href: "#", label: "Email Tallow & Twine" },
]}
status={{ label: "Support online now" }}
action={{
question: "Not sure which bar to start with?",
detail: "Answer three quick questions about your skin and we'll suggest a starter bar.",
label: "Help me choose a bar",
href: "#",
note: "Free shipping on orders over $35",
}}
columns={[
{
title: "Shop",
links: [
{ label: "Soap bars", href: "#" },
{ label: "Shampoo bars", href: "#" },
{ label: "Gift sets", href: "#" },
{ label: "Travel tins", href: "#" },
{ label: "Gift cards", href: "#" },
],
},
{
title: "Learn",
links: [
{ label: "How we cure", href: "#" },
{ label: "Ingredient guide", href: "#" },
{ label: "Scent journal", href: "#" },
{ label: "Caring for your bar", href: "#" },
],
},
{
title: "Help",
links: [
{ label: "Contact us", href: "#" },
{ label: "Shipping", href: "#" },
{ label: "Returns", href: "#" },
{ label: "Wholesale", href: "#" },
],
},
{
title: "Company",
links: [
{ label: "Our story", href: "#" },
{ label: "The workshop", href: "#" },
{ label: "Stockists", href: "#" },
{ label: "Careers", href: "#" },
],
},
{
title: "Community",
links: [
{ label: "Soap club", href: "#" },
{ label: "Workshops", href: "#" },
{ label: "Refill drop-off", href: "#" },
],
},
]}
legalLinks={[
{ label: "Privacy policy", href: "#" },
{ label: "Terms of service", href: "#" },
{ label: "Accessibility", href: "#" },
{ label: "Cookie settings", href: "#" },
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
brandName OptionalSiteFooter |
string |
|
logoImage OptionalSiteFooter |
string |
|
logoAlt OptionalSiteFooter |
string |
|
tagline OptionalSiteFooter |
React.ReactNode |
|
address OptionalSiteFooter |
string[] |
|
socials OptionalSiteFooter |
SiteFooterSocial[] |
|
status OptionalSiteFooter |
SiteFooterStatus |
|
action OptionalSiteFooter |
SiteFooterAction | null |
|
onAction OptionalSiteFooter |
() => void |
|
columns OptionalSiteFooter |
SiteFooterColumn[] |
|
copyright OptionalSiteFooter |
string |
|
legalLinks OptionalSiteFooter |
SiteFooterLink[] |
|
showBackToTop OptionalSiteFooter |
boolean |
|
backToTopLabel OptionalSiteFooter |
string |
|
navLabel OptionalSiteFooter |
string |
|
legalLabel OptionalSiteFooter |
string |
|
socialLabel OptionalSiteFooter |
string |
|
state OptionalSiteFooter |
"default" | "hover" | "active" | "disabled" |
|
className OptionalSiteFooter |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.
-
9a2ebdab5ff4fcc4.webp
image/webp · 3.64 KB