Page Footer 14
Local shop-front footer for local-business funnels. The dark half says call now: business, tap-to-call,
Use it in a prompt
Use content/page-footer-14 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-14.tsx. - Import it and pass your copy and images (Props tab):
import { PageFooter14 } from "@/components/funneldna/content/page-footer-14"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/page-footer-14/component.tsx 802 lines
// layout: split-contrast
// Local shop-front footer for local-business funnels. The dark half says call now: business, tap-to-call,
// address, licence and today's hours with a live Open now / Closing soon / Closed status (and the next opening
// time when closed). The light half says you're covered: the service-area map, focusable area chips and the
// owner's short note with the free-quote button. Legal links and copyright close the band.
// Phone 390: call and quote first as two full-width buttons, then hours, then the map tile, then links.
// Theme notes: every colour is a theme token or an OKLCH recipe on one; hex appears only as a var() fallback.
// Dark tiles are the band lifted in L; light tiles are the card. Status chips use the -soft status tokens.
// The call button sits on the dark tile, so its fill and text come from --band-ink. A theme's secondary button
// can be transparent with dark ink, and dark ink on the band cannot meet 4.5:1. Its face, weight, case, radius
// and shadow still come from the button role tokens.
// Images: the map fills the 'scene' slot, the owner photo fills 'presenter'. Open status is computed client-side.
import * as React from 'react';
import { BadgeCheck, Check, MapPin, Phone } from 'lucide-react';
import { FX_HOST, Texture } from '../fx/fx';
import topo from '../fx/textures/topo';
export type PageFooter14Day = 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat';
export type PageFooter14Hours = {
day: PageFooter14Day;
/** Opening time as 24-hour 'HH:MM'. Omit open and close for a closed day. */
open?: string;
/** Closing time as 'HH:MM' ('24:00' for midnight; earlier than open means it closes after midnight). */
close?: string;
};
export type PageFooter14Link = { label: string; href: string };
export type PageFooter14Copy = {
/** Call button text. Placeholder: {phone}. */
callLabel: string;
/** Link under the address. */
directions: string;
openChip: string;
soonChip: string;
closedChip: string;
/** Line above the closing time while open. */
openKicker: string;
/** Line above the closing time near closing. Placeholder: {minutes}. */
soonKicker: string;
/** Line above the next opening time. Placeholder: {when} (today, tomorrow or a weekday). */
closedKicker: string;
/** Shown instead of a closing time when open around the clock. */
alwaysKicker: string;
alwaysBig: string;
openTail: string;
soonTail: string;
closedTail: string;
/** Shown for a moment while the visitor's clock is read. */
pendingKicker: string;
today: string;
tomorrow: string;
/** Hours cell for a closed day. */
closedDay: string;
/** Seven day names, Sunday first. */
days: string[];
am: string;
pm: string;
/** Accessible name of the hours tile and week list. */
hoursLabel: string;
/** Line above the area chips. */
areasPrompt: string;
/** Line under the chips before one is chosen. */
areasHint: string;
/** Line under the chips once one is chosen. Placeholder: {area}. */
covered: string;
/** Accessible name of the area chip list. */
areasLabel: string;
/** Accessible name of the legal links navigation. */
legalLabel: string;
/** Placeholders: {year}, {brand}. */
copyrightTemplate: string;
};
export type PageFooter14State = 'default' | 'hover' | 'active' | 'disabled';
export type PageFooter14Props = {
businessName?: string;
/** One line under the business name. */
tagline?: string;
/** Street address shown with a pin icon. */
address?: string;
/** Optional maps link under the address. */
directionsHref?: string;
/** Supplied licence / insurance line. Hidden when empty. */
licence?: string;
/** Displayed phone number. Hidden when empty. */
phone?: string;
/** Overrides the tel: link built from the phone number. */
phoneHref?: string;
/** Called when the call button is tapped (the tel: link still opens). */
onCall?: () => void;
/** Weekly opening hours. Missing days are closed. Empty hides the hours tile. */
hours?: PageFooter14Hours[];
/** IANA zone the hours are kept in, e.g. 'America/Los_Angeles'. Defaults to the visitor's clock. */
timeZone?: string;
/** One line under the week list, e.g. 'Hours shown in Pacific Time.' */
zoneNote?: string;
timeFormat?: '12h' | '24h';
/** Minutes before closing that switch the status to Closing soon. */
closingSoonMinutes?: number;
/** Fixed clock for previews and tests; otherwise the live time is used and refreshed. */
now?: Date | string | number;
/** Headline of the coverage tile. */
headline?: React.ReactNode;
/** Supplied service-area names, shown as chips beside the map. */
areas?: string[];
/** Illustrated service-area map (slot 'scene'). No pins on the image; the chips are the legend. */
mapImage?: string;
mapImageAlt?: string;
/** Called when an area chip is chosen or cleared. */
onAreaSelect?: (area: string | null) => void;
/** Letter salutation, e.g. 'Hi neighbor,'. */
salutation?: string;
/** One or two short letter paragraphs in the owner's voice. */
letter?: React.ReactNode[];
signoffName?: string;
signoffRole?: string;
/** Owner photo (slot 'presenter'). */
ownerImage?: string;
ownerImageAlt?: string;
/** Plain instruction right above the quote button. */
instruction?: string;
/** Quote button text. */
label?: string;
/** One short line under the quote button. */
quoteNote?: string;
/** Quote destination; without it the action is a <button>. */
href?: string;
/** Called when a quote button is clicked, with the chosen area if any. */
onAction?: (detail: { area?: string }) => void;
links?: PageFooter14Link[];
/** Year in the copyright; defaults to the current year. */
year?: number | string;
copy?: Partial<PageFooter14Copy>;
/** Forced button state for previews. */
state?: PageFooter14State;
className?: string;
};
export function PageFooter14(props: PageFooter14Props) {
const {
businessName = 'Your Business',
tagline,
address,
directionsHref,
licence,
phone,
phoneHref,
onCall,
hours = NO_HOURS,
timeZone,
zoneNote,
timeFormat = '12h',
closingSoonMinutes = 60,
now,
headline = 'Your neighborhood is on our route',
areas = NO_AREAS,
mapImage,
mapImageAlt = '',
onAreaSelect,
salutation,
letter = NO_LETTER,
signoffName,
signoffRole,
ownerImage,
ownerImageAlt = '',
instruction = 'Tap the button below to get your free quote.',
label = 'Get my free quote',
quoteNote,
href,
onAction,
links = DEFAULT_LINKS,
year,
copy: copyIn,
state = 'default',
className,
} = props;
const copy: PageFooter14Copy = { ...DEFAULT_COPY, ...(copyIn ?? {}) };
const uid = React.useId();
const nameId = `${uid}-name`;
const areasId = `${uid}-areas`;
const table = React.useMemo(() => buildTable(hours), [hours]);
const tableKey = JSON.stringify(table);
const hasHours = table.some((span) => span !== null);
const nowMs = now === undefined ? Number.NaN : new Date(now).getTime();
const nowKey = Number.isFinite(nowMs) ? String(nowMs) : '';
const live = useLiveStatus(tableKey, timeZone, nowKey, closingSoonMinutes, hasHours);
const [area, setArea] = React.useState<string | null>(null);
const disabled = state === 'disabled';
const forced = state === 'hover' || state === 'active' ? state : undefined;
const clock = (minutes: number) => formatClock(minutes, timeFormat, copy.am, copy.pm);
const view = statusView(live, copy, clock);
const handleQuote = (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => {
if (disabled) {
event.preventDefault();
return;
}
onAction?.({ area: area ?? undefined });
};
const handleCall = () => {
if (!disabled) onCall?.();
};
const pick = (name: string) => {
const next = area === name ? null : name;
setArea(next);
onAreaSelect?.(next);
};
const telHref = phoneHref ?? (phone ? `tel:${phone.replace(/[^0-9+]/g, '')}` : undefined);
const callInner = (
<>
<Phone size={20} strokeWidth={2.5} aria-hidden='true' />
<span className='pf14-call-text'>{renderPhone(copy.callLabel, phone ?? '')}</span>
</>
);
const call = phone ? (
disabled ? (
<span className='pf14-call' aria-disabled='true'>
{callInner}
</span>
) : (
<a className='pf14-call' href={telHref} onClick={handleCall} data-state={forced}>
{callInner}
</a>
)
) : null;
const quoteButton = (extra: string) =>
href && !disabled ? (
<a className={`pf14-btn ${extra}`} href={href} onClick={handleQuote} data-state={forced}>
{label}
</a>
) : (
<button
type='button'
className={`pf14-btn ${extra}`}
onClick={handleQuote}
disabled={disabled}
data-state={forced}
>
{label}
</button>
);
const shownYear = year ?? new Date().getFullYear();
const copyright = fill(copy.copyrightTemplate, { year: String(shownYear), brand: businessName });
const hasLetter = Boolean(salutation) || letter.length > 0 || Boolean(signoffName);
const rootClass = className ? `cf-page-footer-14 ${className}` : 'cf-page-footer-14';
return (
<footer className={rootClass} style={FX_HOST}>
<Texture src={topo} tone='band-ink' />
<style>{CSS}</style>
<div className='pf14-wrap'>
<div className='pf14-bento'>
<div className='pf14-half pf14-half--dark'>
<section
className={`pf14-tile pf14-dtile pf14-a${hasHours ? '' : ' pf14-grow'}`}
aria-labelledby={nameId}
>
<div className='pf14-id'>
<h2 id={nameId} className='pf14-name'>
{businessName}
</h2>
{tagline ? <p className='pf14-tag'>{tagline}</p> : null}
</div>
{call || label ? (
<div className='pf14-acts'>
{call}
{label ? quoteButton('pf14-qm') : null}
</div>
) : null}
{address || licence ? (
<div className='pf14-details'>
{address ? (
<p className='pf14-line'>
<MapPin className='pf14-ico' size={18} strokeWidth={2.5} aria-hidden='true' />
{address}
</p>
) : null}
{address && directionsHref ? (
<a className='pf14-link pf14-dir' href={directionsHref}>
{copy.directions}
</a>
) : null}
{licence ? (
<p className='pf14-line pf14-lic'>
<BadgeCheck className='pf14-ico' size={18} strokeWidth={2.5} aria-hidden='true' />
{licence}
</p>
) : null}
</div>
) : null}
</section>
{hasHours ? (
<section className='pf14-tile pf14-dtile pf14-b pf14-grow' aria-label={copy.hoursLabel}>
<div className='pf14-status' data-status={view.status} role='status'>
<span key={view.status} className='pf14-chip'>
<span className='pf14-dot' aria-hidden='true' />
{view.chip}
</span>
<p className='pf14-kicker'>{view.kicker}</p>
<p className='pf14-big'>{view.big}</p>
{view.tail ? <p className='pf14-tail'>{view.tail}</p> : null}
</div>
<div className='pf14-weekwrap'>
<ul className='pf14-week' aria-label={copy.hoursLabel}>
{WEEK_ORDER.map((index) => {
const span = table[index];
const isToday = live !== null && live.day === index;
return (
<li
key={index}
className='pf14-day'
data-today={isToday ? '' : undefined}
aria-current={isToday ? 'date' : undefined}
>
<span className='pf14-dayname'>{copy.days[index] ?? ''}</span>
<span className='pf14-dayhours'>
{span ? `${clock(span.open)} – ${clock(span.close)}` : copy.closedDay}
</span>
</li>
);
})}
</ul>
{zoneNote ? <p className='pf14-zone'>{zoneNote}</p> : null}
</div>
</section>
) : null}
</div>
<div className='pf14-half pf14-half--light'>
<section
className='pf14-tile pf14-ltile pf14-c pf14-grow'
aria-labelledby={areasId}
data-map={mapImage ? '' : undefined}
>
<h2 id={areasId} className='pf14-title'>
{headline}
</h2>
{mapImage ? (
<figure className='pf14-fig'>
<img
src={mapImage}
alt={mapImageAlt}
width={960}
height={720}
loading='lazy'
decoding='async'
/>
</figure>
) : null}
{areas.length > 0 ? (
<div className='pf14-areas'>
<p className='pf14-prompt'>{copy.areasPrompt}</p>
<ul className='pf14-chips' aria-label={copy.areasLabel}>
{areas.map((name) => {
const on = area === name;
return (
<li key={name}>
<button
type='button'
className='pf14-area'
aria-pressed={on}
onClick={() => pick(name)}
>
{on ? (
<Check size={16} strokeWidth={2.5} aria-hidden='true' />
) : (
<MapPin size={16} strokeWidth={2.5} aria-hidden='true' />
)}
{name}
</button>
</li>
);
})}
</ul>
<p className='pf14-covered' aria-live='polite' data-on={area ? '' : undefined}>
{area ? (
<>
<span className='pf14-tick' aria-hidden='true'>
<Check size={14} strokeWidth={3} />
</span>
{fill(copy.covered, { area })}
</>
) : (
copy.areasHint
)}
</p>
</div>
) : null}
</section>
{label ? (
<section className='pf14-tile pf14-ltile pf14-d pf14-quote' aria-label={label}>
{hasLetter ? (
<div className='pf14-letter'>
{salutation ? <p className='pf14-salute'>{salutation}</p> : null}
{letter.map((paragraph, index) => (
<p key={index} className='pf14-para'>
{paragraph}
</p>
))}
{signoffName ? (
<div className='pf14-sign'>
{ownerImage ? (
<img
className='pf14-avatar'
src={ownerImage}
alt={ownerImageAlt}
width={52}
height={52}
loading='lazy'
decoding='async'
/>
) : null}
<p className='pf14-signtext'>
<span className='pf14-signname'>{signoffName}</span>
{signoffRole ? <span className='pf14-signrole'>{signoffRole}</span> : null}
</p>
</div>
) : null}
</div>
) : null}
<div className='pf14-close'>
{instruction ? <p className='pf14-instr'>{instruction}</p> : null}
{quoteButton('pf14-qd')}
{quoteNote ? <p className='pf14-note'>{quoteNote}</p> : null}
</div>
</section>
) : null}
</div>
</div>
<div className='pf14-base'>
{links.length > 0 ? (
<nav aria-label={copy.legalLabel}>
<ul className='pf14-links'>
{links.map((link) => (
<li key={`${link.label}-${link.href}`}>
<a href={link.href}>{link.label}</a>
</li>
))}
</ul>
</nav>
) : null}
<p className='pf14-copy'>{copyright}</p>
</div>
</div>
</footer>
);
}
export default PageFooter14;
type Span = { open: number; close: number } | null;
type Table = Span[];
type Clock = { day: number; minutes: number };
type Live =
| { kind: 'open'; day: number; at: number; left: number }
| { kind: 'soon'; day: number; at: number; left: number }
| { kind: 'closed'; day: number; at: number; offset: number }
| { kind: 'always'; day: number }
| { kind: 'none'; day: number };
type StatusView = {
status: 'pending' | 'open' | 'soon' | 'closed';
chip: string;
kicker: string;
big: string;
tail: string;
};
const DAY_KEYS: PageFooter14Day[] = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
const WEEKDAY_EN = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
const WEEK_ORDER = [1, 2, 3, 4, 5, 6, 0];
const NBSP = String.fromCharCode(160);
const NO_HOURS: PageFooter14Hours[] = [];
const NO_AREAS: string[] = [];
const NO_LETTER: React.ReactNode[] = [];
const DEFAULT_LINKS: PageFooter14Link[] = [
{ label: 'Privacy Policy', href: '#privacy' },
{ label: 'Terms of Service', href: '#terms' },
{ label: 'Accessibility', href: '#accessibility' },
];
const DEFAULT_COPY: PageFooter14Copy = {
callLabel: 'Call {phone}',
directions: 'Get directions',
openChip: 'Open now',
soonChip: 'Closing soon',
closedChip: 'Closed now',
openKicker: 'Open today until',
soonKicker: 'Closes in {minutes} min, at',
closedKicker: 'Opens {when} at',
alwaysKicker: 'Open around the clock',
alwaysBig: '24/7',
openTail: 'Tap the call button to reach us right now.',
soonTail: 'There’s still time to call us today.',
closedTail: 'Request your free quote now, day or night.',
pendingKicker: 'Checking today’s hours…',
today: 'today',
tomorrow: 'tomorrow',
closedDay: 'Closed',
days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
am: 'AM',
pm: 'PM',
hoursLabel: 'Opening hours',
areasPrompt: 'Tap your neighborhood:',
areasHint: 'Pick one above to check you’re covered.',
covered: 'Yes, we cover {area}.',
areasLabel: 'Service areas',
legalLabel: 'Legal',
copyrightTemplate: '© {year} {brand}. All rights reserved.',
};
function useLiveStatus(
tableKey: string,
timeZone: string | undefined,
nowKey: string,
soon: number,
enabled: boolean,
): Live | null {
const [live, setLive] = React.useState<Live | null>(null);
React.useEffect(() => {
if (!enabled) {
setLive(null);
return undefined;
}
const table = JSON.parse(tableKey) as Table;
const fixed = nowKey ? new Date(Number(nowKey)) : null;
const tick = () => setLive(computeStatus(table, zoneNow(fixed ?? new Date(), timeZone), soon));
tick();
if (fixed) return undefined;
const id = window.setInterval(tick, 30000);
return () => window.clearInterval(id);
}, [tableKey, timeZone, nowKey, soon, enabled]);
return live;
}
function parseClock(value?: string): number | null {
const match = /^([0-9]{1,2}):([0-9]{2})$/.exec((value ?? '').trim());
if (!match) return null;
const hour = Number(match[1]);
const minute = Number(match[2]);
if (hour > 24 || minute > 59 || (hour === 24 && minute > 0)) return null;
return hour * 60 + minute;
}
function buildTable(hours: PageFooter14Hours[]): Table {
const table: Table = [null, null, null, null, null, null, null];
for (const entry of hours ?? []) {
const index = DAY_KEYS.indexOf(entry.day);
if (index < 0) continue;
const open = parseClock(entry.open);
const close = parseClock(entry.close);
if (open === null || close === null || open >= 1440) {
table[index] = null;
continue;
}
table[index] = { open, close: close <= open ? close + 1440 : close };
}
return table;
}
function zoneNow(date: Date, timeZone?: string): Clock {
try {
const parts = new Intl.DateTimeFormat('en-US', {
timeZone,
weekday: 'short',
hour: 'numeric',
minute: 'numeric',
hourCycle: 'h23',
}).formatToParts(date);
const get = (type: string) => parts.find((part) => part.type === type)?.value ?? '';
const day = WEEKDAY_EN.indexOf(get('weekday'));
const hour = Number(get('hour'));
const minute = Number(get('minute'));
if (day >= 0 && Number.isFinite(hour) && Number.isFinite(minute)) {
return { day, minutes: (hour % 24) * 60 + minute };
}
} catch {
// Unknown zone: fall back to the visitor's own clock.
}
return { day: date.getDay(), minutes: date.getHours() * 60 + date.getMinutes() };
}
function computeStatus(table: Table, now: Clock, soon: number): Live {
const { day, minutes } = now;
const today = table[day];
const yesterday = table[(day + 6) % 7];
let end: number | null = null;
if (today && minutes >= today.open && minutes < today.close) end = today.close;
else if (yesterday && yesterday.close > 1440 && minutes < yesterday.close - 1440) end = yesterday.close - 1440;
if (end !== null) {
for (let guard = 0; guard < 8 && end % 1440 === 0; guard += 1) {
const next = table[(day + end / 1440) % 7];
if (!next || next.open !== 0) break;
end += next.close;
}
const left = end - minutes;
if (left > 2880) return { kind: 'always', day };
const at = end % 1440;
return left <= soon ? { kind: 'soon', day, at, left } : { kind: 'open', day, at, left };
}
if (today && minutes < today.open) return { kind: 'closed', day, at: today.open, offset: 0 };
for (let offset = 1; offset <= 7; offset += 1) {
const span = table[(day + offset) % 7];
if (span) return { kind: 'closed', day, at: span.open, offset };
}
return { kind: 'none', day };
}
function statusView(live: Live | null, copy: PageFooter14Copy, clock: (minutes: number) => string): StatusView {
if (!live || live.kind === 'none') {
return { status: 'pending', chip: copy.openChip, kicker: copy.pendingKicker, big: clock(720), tail: '' };
}
if (live.kind === 'always') {
return { status: 'open', chip: copy.openChip, kicker: copy.alwaysKicker, big: copy.alwaysBig, tail: copy.openTail };
}
if (live.kind === 'closed') {
const when =
live.offset === 0
? copy.today
: live.offset === 1
? copy.tomorrow
: (copy.days[(live.day + live.offset) % 7] ?? '');
return {
status: 'closed',
chip: copy.closedChip,
kicker: fill(copy.closedKicker, { when }),
big: clock(live.at),
tail: copy.closedTail,
};
}
if (live.kind === 'soon') {
return {
status: 'soon',
chip: copy.soonChip,
kicker: fill(copy.soonKicker, { minutes: String(live.left) }),
big: clock(live.at),
tail: copy.soonTail,
};
}
return { status: 'open', chip: copy.openChip, kicker: copy.openKicker, big: clock(live.at), tail: copy.openTail };
}
function formatClock(minutes: number, format: '12h' | '24h', am: string, pm: string): string {
const hour = Math.floor(minutes / 60) % 24;
const mm = String(minutes % 60).padStart(2, '0');
if (format === '24h') return `${String(hour).padStart(2, '0')}:${mm}`;
const h12 = hour % 12 === 0 ? 12 : hour % 12;
return `${h12}:${mm}${NBSP}${hour < 12 ? am : pm}`;
}
function fill(template: string, values: Record<string, string>): string {
return Object.keys(values).reduce((text, key) => text.split(`{${key}}`).join(values[key]), template);
}
function renderPhone(template: string, phone: string): React.ReactNode {
const parts = template.split('{phone}');
return parts.map((part, index) => (
<React.Fragment key={index}>
{index > 0 ? <span className='pf14-nobr'>{phone}</span> : null}
{part}
</React.Fragment>
));
}
const CSS = `
.cf-page-footer-14{--pf14-gutter:clamp(16px,5vw,48px);--pf14-r:var(--card-radius,var(--radius,14px));--pf14-tile:oklch(from var(--band,#16233f) calc(l + 0.05) c h);--pf14-line:oklch(from var(--band-ink,#ffffff) l c h / 0.14);--pf14-soft:color-mix(in oklch,var(--band-ink,#ffffff) 82%,var(--band,#16233f));--pf14-shade:var(--shadow,oklch(0.22 0.03 260));--signature-font:var(--signature-face,var(--font-display));position:relative;overflow:hidden;box-sizing:border-box;width:100%;background:var(--band,#16233f);color:var(--band-ink,#ffffff);font-family:var(--font-body,system-ui,sans-serif);padding:clamp(56px,8vw,112px) var(--pf14-gutter) clamp(40px,5vw,64px)}
.cf-page-footer-14 *,.cf-page-footer-14 *::before,.cf-page-footer-14 *::after{box-sizing:border-box}
.cf-page-footer-14 .pf14-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-page-footer-14 .pf14-bento{display:grid;gap:16px}
.cf-page-footer-14 .pf14-half{display:grid;gap:16px;min-width:0;align-content:start}
.cf-page-footer-14 .pf14-tile{min-width:0;border-radius:var(--pf14-r);padding:clamp(20px,3vw,32px);animation:pf14-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-page-footer-14 .pf14-b{animation-delay:.07s}
.cf-page-footer-14 .pf14-c{animation-delay:.14s}
.cf-page-footer-14 .pf14-d{animation-delay:.21s}
.cf-page-footer-14 .pf14-dtile{background:var(--pf14-tile);color:var(--band-ink,#ffffff);border:1px solid var(--pf14-line);box-shadow:inset 0 1px 0 oklch(from var(--band-ink,#ffffff) l c h / 0.06),0 1px 2px oklch(from var(--pf14-shade) calc(l - 0.08) c h / 0.45),0 8px 16px -8px oklch(from var(--pf14-shade) calc(l - 0.08) c h / 0.5)}
.cf-page-footer-14 .pf14-ltile{background:var(--card,#ffffff);color:var(--ink,#1b2333);border:1px solid var(--card-border,oklch(from var(--ink,#1b2333) l c h / 0.12));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / 0.22),0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))}
.cf-page-footer-14 .pf14-d{border-color:oklch(from var(--accent,#2f5ad0) l c h / 0.35);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)))}
.cf-page-footer-14 .pf14-a{display:flex;flex-direction:column}
.cf-page-footer-14 .pf14-name{margin:0;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--band-ink,#ffffff)}
.cf-page-footer-14 .pf14-tag{margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--pf14-soft);text-wrap:pretty}
.cf-page-footer-14 .pf14-acts{display:grid;gap:12px;margin-top:24px}
.cf-page-footer-14 .pf14-details{display:grid;gap:8px;margin-top:24px}
.cf-page-footer-14 .pf14-line{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--pf14-soft);text-wrap:pretty}
.cf-page-footer-14 .pf14-lic{font-size:.9375rem;line-height:1.4;font-weight:500}
.cf-page-footer-14 .pf14-ico{display:inline-block;vertical-align:-0.2em;margin-inline-end:.45em;color:var(--band-ink,#ffffff)}
.cf-page-footer-14 .pf14-dir{justify-self:start;margin-inline-start:calc(18px + .45em);font-size:.9375rem;font-weight:600;line-height:1.4}
.cf-page-footer-14 .pf14-call{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;padding:8px 20px;border:1px solid oklch(from var(--band-ink,#ffffff) l c h / 0.22);border-radius:var(--button-radius,var(--radius,12px));background:oklch(from var(--band-ink,#ffffff) l c h / 0.12);color:var(--band-ink,#ffffff);box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / 0.25)));font-family:var(--button-font,var(--font-display,inherit));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-decoration:none;cursor:pointer;transition:background .16s ease,box-shadow .16s ease,transform .16s ease;-webkit-tap-highlight-color:transparent}
.cf-page-footer-14 .pf14-call svg{flex:none}
.cf-page-footer-14 .pf14-call-text{text-wrap:balance}
.cf-page-footer-14 .pf14-nobr{white-space:nowrap;font-variant-numeric:tabular-nums}
.cf-page-footer-14 .pf14-call:hover,.cf-page-footer-14 .pf14-call[data-state='hover']{background:oklch(from var(--band-ink,#ffffff) l c h / 0.18)}
.cf-page-footer-14 .pf14-call:active,.cf-page-footer-14 .pf14-call[data-state='active']{transform:translateY(1px);background:oklch(from var(--band-ink,#ffffff) l c h / 0.22);box-shadow:inset 0 2px 3px oklch(from var(--pf14-shade) l c h / 0.28)}
.cf-page-footer-14 .pf14-call:focus-visible{outline:3px solid var(--band-ink,#ffffff);outline-offset:3px}
.cf-page-footer-14 .pf14-call[aria-disabled='true']{opacity:.55;cursor:not-allowed;box-shadow:none}
.cf-page-footer-14 .pf14-btn{--pf14-b:var(--button-bg,var(--cta,#d33a2c));--pf14-b2:var(--button-bg-2,var(--cta-2,#b02c20));display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:8px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--pf14-b) calc(l + 0.04) c h),oklch(from var(--pf14-b2) calc(l - 0.02) 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);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;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(--pf14-b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--pf14-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--pf14-shade) l c h / 0.3),0 8px 16px -6px oklch(from var(--pf14-shade) l c h / 0.45));transition:background .16s ease,box-shadow .16s ease,transform .16s ease;-webkit-tap-highlight-color:transparent}
.cf-page-footer-14 .pf14-btn:hover,.cf-page-footer-14 .pf14-btn[data-state='hover']{background:linear-gradient(oklch(from var(--pf14-b) calc(l - 0.01) c h),oklch(from var(--pf14-b2) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--pf14-b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--pf14-b) calc(l - 0.18) c h),0 1px 2px oklch(from var(--pf14-shade) l c h / 0.32),0 10px 20px -6px oklch(from var(--pf14-shade) l c h / 0.5))}
.cf-page-footer-14 .pf14-btn:active,.cf-page-footer-14 .pf14-btn[data-state='active']{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--pf14-b) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--pf14-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--pf14-shade) l c h / 0.3)}
.cf-page-footer-14 .pf14-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent,#2f5ad0)) l c h / 0.9);outline-offset:3px}
.cf-page-footer-14 .pf14-dtile .pf14-btn:focus-visible{outline-color:var(--band-ink,#ffffff)}
.cf-page-footer-14 .pf14-btn:disabled{background:var(--secondary,#e8ebf2);color:var(--secondary-ink,#1b2333);text-shadow:none;box-shadow:none;cursor:not-allowed;opacity:.7;transform:none}
.cf-page-footer-14 .pf14-qm{width:100%}
.cf-page-footer-14 .pf14-b{display:flex;flex-direction:column}
.cf-page-footer-14 .pf14-status{display:flex;flex-direction:column;align-items:flex-start}
.cf-page-footer-14 .pf14-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 12px;border-radius:999px;font-size:.875rem;font-weight:800;line-height:1.2;animation:pf14-pop .3s cubic-bezier(.2,.7,.2,1) both}
.cf-page-footer-14 .pf14-dot{width:10px;height:10px;flex:none;border-radius:50%;background:currentColor}
.cf-page-footer-14 [data-status='open'] .pf14-chip{background:var(--success-soft,#e3f3e7);color:var(--success,#1f7a3a)}
.cf-page-footer-14 [data-status='soon'] .pf14-chip{background:var(--warning-soft,#f6efd9);color:var(--warning,#7a5a00)}
.cf-page-footer-14 [data-status='closed'] .pf14-chip{background:var(--danger-soft,#f8e3e0);color:var(--danger,#b3261e)}
.cf-page-footer-14 [data-status='pending'] .pf14-chip,.cf-page-footer-14 [data-status='pending'] .pf14-big{visibility:hidden}
.cf-page-footer-14 .pf14-kicker{margin:16px 0 0;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--pf14-soft)}
.cf-page-footer-14 .pf14-big{margin:14px 0 0;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1.4;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--band-ink,#ffffff)}
.cf-page-footer-14 .pf14-tail{margin:20px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--pf14-soft);text-wrap:pretty}
.cf-page-footer-14 .pf14-weekwrap{margin-top:auto;padding-top:24px}
.cf-page-footer-14 .pf14-week{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.cf-page-footer-14 .pf14-day{display:flex;justify-content:space-between;gap:12px;padding:6px 12px;border-radius:8px;font-size:.9375rem;line-height:1.4;color:var(--pf14-soft);font-variant-numeric:tabular-nums}
.cf-page-footer-14 .pf14-day[data-today]{background:oklch(from var(--band-ink,#ffffff) l c h / 0.1);color:var(--band-ink,#ffffff);font-weight:700}
.cf-page-footer-14 .pf14-dayhours{text-align:right;white-space:nowrap}
.cf-page-footer-14 .pf14-zone{margin:12px 0 0;font-size:.9375rem;line-height:1.4;color:var(--pf14-soft)}
.cf-page-footer-14 .pf14-c{display:grid;gap:16px 24px;grid-template-columns:minmax(0,1fr);grid-template-areas:'title' 'fig' 'areas';align-content:start}
.cf-page-footer-14 .pf14-title{grid-area:title;margin:0;font-family:var(--font-display,inherit);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--ink,#1b2333)}
.cf-page-footer-14 .pf14-fig{grid-area:fig;position:relative;margin:0;border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:color-mix(in oklch,var(--ink,#1b2333) 4%,var(--card,#ffffff))}
.cf-page-footer-14 .pf14-fig img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cf-page-footer-14 .pf14-areas{grid-area:areas;min-width:0}
.cf-page-footer-14 .pf14-prompt{margin:0 0 12px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted,#4a5568)}
.cf-page-footer-14 .pf14-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cf-page-footer-14 .pf14-area{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border:1px solid transparent;border-radius:999px;background:color-mix(in oklch,var(--ink,#1b2333) 6%,var(--card,#ffffff));color:var(--ink,#1b2333);font-family:inherit;font-size:.875rem;font-weight:800;line-height:1.2;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease;-webkit-tap-highlight-color:transparent}
.cf-page-footer-14 .pf14-area svg{flex:none;color:var(--accent,#2f5ad0)}
.cf-page-footer-14 .pf14-area:hover{background:color-mix(in oklch,var(--ink,#1b2333) 11%,var(--card,#ffffff))}
.cf-page-footer-14 .pf14-area[aria-pressed='true']{background:color-mix(in oklch,var(--accent,#2f5ad0) 12%,var(--card,#ffffff));border-color:oklch(from var(--accent,#2f5ad0) l c h / 0.55)}
.cf-page-footer-14 .pf14-area:active{transform:scale(.97)}
.cf-page-footer-14 .pf14-area:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent,#2f5ad0)) l c h / 0.9);outline-offset:2px}
.cf-page-footer-14 .pf14-covered{margin:16px 0 0;min-height:1.6em;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted,#4a5568);text-wrap:pretty}
.cf-page-footer-14 .pf14-covered[data-on]{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.5;color:var(--ink,#1b2333)}
.cf-page-footer-14 .pf14-tick{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--success,#1f7a3a);color:var(--success-glyph,#ffffff);vertical-align:-0.3em;margin-inline-end:.45em}
.cf-page-footer-14 .pf14-quote{display:none}
.cf-page-footer-14 .pf14-salute{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:700;line-height:1.4;color:var(--ink,#1b2333)}
.cf-page-footer-14 .pf14-para{margin:8px 0 0;max-width:64ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink,#1b2333);text-wrap:pretty}
.cf-page-footer-14 .pf14-sign{display:flex;align-items:center;gap:12px;margin-top:16px}
.cf-page-footer-14 .pf14-avatar{display:block;width:52px;height:52px;flex:none;border-radius:8px;object-fit:cover;object-position:center top}
.cf-page-footer-14 .pf14-signtext{margin:0;display:grid;gap:2px}
.cf-page-footer-14 .pf14-signname{font-family:var(--signature-font);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.15;color:var(--ink,#1b2333)}
.cf-page-footer-14 .pf14-signrole{font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted,#4a5568)}
.cf-page-footer-14 .pf14-close{display:flex;flex-direction:column;align-items:stretch;margin-top:32px}
.cf-page-footer-14 .pf14-close:first-child{margin-top:0}
.cf-page-footer-14 .pf14-qd{width:100%;min-height:72px;margin-inline:auto}
.cf-page-footer-14 .pf14-instr{margin:0 0 12px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.5;color:var(--ink,#1b2333);text-wrap:pretty}
.cf-page-footer-14 .pf14-note{margin:12px 0 0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted,#4a5568);text-wrap:pretty}
.cf-page-footer-14 .pf14-base{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:clamp(32px,4vw,48px)}
.cf-page-footer-14 .pf14-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 20px}
.cf-page-footer-14 .pf14-links a{display:inline-block;padding:6px 0;font-size:.9375rem;font-weight:500;line-height:1.4}
.cf-page-footer-14 .pf14-links a,.cf-page-footer-14 .pf14-link{color:var(--band-ink,#ffffff);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:oklch(from var(--band-ink,#ffffff) l c h / 0.45);text-underline-offset:.18em}
.cf-page-footer-14 .pf14-links a:hover,.cf-page-footer-14 .pf14-link:hover{text-decoration-color:var(--band-ink,#ffffff)}
.cf-page-footer-14 .pf14-links a:focus-visible,.cf-page-footer-14 .pf14-link:focus-visible{outline:2px solid var(--band-ink,#ffffff);outline-offset:3px;border-radius:4px}
.cf-page-footer-14 .pf14-copy{margin:0;font-size:.9375rem;line-height:1.4;color:var(--pf14-soft)}
@media (min-width:720px){
.cf-page-footer-14 .pf14-half--dark{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cf-page-footer-14 .pf14-details{order:1}
.cf-page-footer-14 .pf14-acts{order:2;margin-top:auto;padding-top:24px}
.cf-page-footer-14 .pf14-qm{display:none}
.cf-page-footer-14 .pf14-quote{display:block}
.cf-page-footer-14 .pf14-c[data-map]{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-areas:'fig title' 'fig areas';grid-template-rows:auto 1fr}
.cf-page-footer-14 .pf14-c[data-map] .pf14-fig{aspect-ratio:auto;min-height:300px}
}
@media (min-width:960px){
.cf-page-footer-14 .pf14-bento{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px}
.cf-page-footer-14 .pf14-half{display:flex;flex-direction:column;gap:16px}
.cf-page-footer-14 .pf14-grow{flex:1 1 auto}
}
@keyframes pf14-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pf14-pop{from{transform:scale(.9)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){
.cf-page-footer-14 .pf14-tile,.cf-page-footer-14 .pf14-chip{animation:none}
.cf-page-footer-14 .pf14-btn,.cf-page-footer-14 .pf14-call,.cf-page-footer-14 .pf14-area{transition:none}
.cf-page-footer-14 .pf14-btn:active,.cf-page-footer-14 .pf14-btn[data-state='active'],.cf-page-footer-14 .pf14-call:active,.cf-page-footer-14 .pf14-call[data-state='active'],.cf-page-footer-14 .pf14-area:active{transform:none}
}
`;
pieces/content/page-footer-14/specimen.tsx 61 lines
import __studioImageb8855379 from "../assets/207c91c7eb104bad.webp";
import __studioImage052e1bba from "../assets/4986492666ff3ef3.webp";
import * as React from 'react';
import { PageFooter14 } from '../page-footer-14';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type FooterState = 'default' | 'hover' | 'active' | 'disabled';
export default function PageFooter14Specimen({ state = 'default' }: { state?: string }) {
return (
<PageFooter14
state={state as FooterState}
businessName='Brightwater Plumbing & Drain'
tagline='Family-run plumbing and drain service for the Brightwater valley.'
address='418 Harbor Lane, Brightwater, OR'
directionsHref='https://maps.google.com/?q=418+Harbor+Lane+Brightwater+OR'
licence='Licensed, bonded & insured · CCB No. 204417'
phone='(555) 014-2290'
hours={[
{ day: 'mon', open: '07:00', close: '18:00' },
{ day: 'tue', open: '07:00', close: '18:00' },
{ day: 'wed', open: '07:00', close: '18:00' },
{ day: 'thu', open: '07:00', close: '18:00' },
{ day: 'fri', open: '07:00', close: '18:00' },
{ day: 'sat', open: '08:00', close: '14:00' },
{ day: 'sun' },
]}
timeZone='America/Los_Angeles'
zoneNote='Hours shown in Pacific Time.'
headline='Your neighborhood is on our route'
areas={['Brightwater', 'Harbor Point', 'Cedar Flats', 'Millbrook', 'Old Town', 'Riverside', 'North Shore']}
mapImage={slot(
'scene',
__studioImageb8855379,
)}
mapImageAlt='Illustrated map of the Brightwater valley service area'
salutation='Hi neighbor,'
letter={[
'We’re the plumbers down the road, not a call centre three states away. Tell us what’s leaking and you’ll get a clear, written price before any work starts.',
]}
signoffName='Mike Calder'
signoffRole='Owner, Brightwater Plumbing & Drain'
ownerImage={slot(
'presenter',
__studioImage052e1bba,
)}
ownerImageAlt='Mike Calder, owner of Brightwater Plumbing & Drain'
instruction='Tap the button below to get your free quote.'
label='Get my free quote'
quoteNote='Free and no obligation · Takes 30 seconds'
links={[
{ label: 'Privacy Policy', href: '#privacy' },
{ label: 'Terms of Service', href: '#terms' },
{ label: 'Accessibility', href: '#accessibility' },
{ label: 'Service Area', href: '#service-area' },
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
businessName OptionalPageFooter14 |
string |
|
tagline OptionalPageFooter14 |
string |
|
address OptionalPageFooter14 |
string |
|
directionsHref OptionalPageFooter14 |
string |
|
licence OptionalPageFooter14 |
string |
|
phone OptionalPageFooter14 |
string |
|
phoneHref OptionalPageFooter14 |
string |
|
onCall OptionalPageFooter14 |
() => void |
|
hours OptionalPageFooter14 |
PageFooter14Hours[] |
|
timeZone OptionalPageFooter14 |
string |
|
zoneNote OptionalPageFooter14 |
string |
|
timeFormat OptionalPageFooter14 |
'12h' | '24h' |
|
closingSoonMinutes OptionalPageFooter14 |
number |
|
now OptionalPageFooter14 |
Date | string | number |
|
headline OptionalPageFooter14 |
React.ReactNode |
|
areas OptionalPageFooter14 |
string[] |
|
mapImage OptionalPageFooter14 |
string |
|
mapImageAlt OptionalPageFooter14 |
string |
|
onAreaSelect OptionalPageFooter14 |
(area: string | null) => void |
|
salutation OptionalPageFooter14 |
string |
|
letter OptionalPageFooter14 |
React.ReactNode[] |
|
signoffName OptionalPageFooter14 |
string |
|
signoffRole OptionalPageFooter14 |
string |
|
ownerImage OptionalPageFooter14 |
string |
|
ownerImageAlt OptionalPageFooter14 |
string |
|
instruction OptionalPageFooter14 |
string |
|
label OptionalPageFooter14 |
string |
|
quoteNote OptionalPageFooter14 |
string |
|
href OptionalPageFooter14 |
string |
|
onAction OptionalPageFooter14 |
(detail: { area?: string }) => void |
|
links OptionalPageFooter14 |
PageFooter14Link[] |
|
year OptionalPageFooter14 |
number | string |
|
copy OptionalPageFooter14 |
Partial<PageFooter14Copy> |
|
state OptionalPageFooter14 |
PageFooter14State |
|
className OptionalPageFooter14 |
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-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--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.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
207c91c7eb104bad.webp
image/webp · 148 KB
-
4986492666ff3ef3.webp
image/webp · 137 KB
-
a57ca5c86a05001f.webp
image/webp · 108 KB