Footer
Link columns, a newsletter field and a wordmark.
Variants
4 more takes on the footer, each a single file you install on its own by its id.
aui-025Minimal
One row of links and a copyright.
$ pnpm dlx asta-ui@latest add footer-aui-025aui-026Dark glow
Dark footer with a cursor glow.
$ pnpm dlx asta-ui@latest add footer-aui-026aui-027Landscape
One call to action over a painted landscape.
$ pnpm dlx asta-ui@latest add footer-aui-027aui-028Status
Footer with live status and uptime.
$ pnpm dlx asta-ui@latest add footer-aui-028Installation
Run the CLI
Run
pnpm dlx asta-ui@latest initonce, then this. The file lands incomponents/astabyte/, installsradix-ui@base-ui/reactand the colour tokens go into your CSS. This is the Radix build. Drop --radix for Base UI.This is the Base UI build, the default. Want Radix? Add --radix.$ pnpm dlx asta-ui@latest add footer --radixOr install the package
Don’t want the file? Import from
asta-uiasta-ui/baseand update withpnpm update asta-ui. Add the stylesheet once. More.$ pnpm add asta-ui radix-ui @base-ui/reactimport { Footer } from "asta-ui";import { Footer } from "asta-ui/base";Or copy it by hand
Install
radix-ui@base-ui/react, then copy these files. Keep the paths, or fix the@/imports. Then add the tokens fromglobals.css."use client"; import { useEffect, useRef, useState, type FormEvent, type ReactNode } from "react"; import { Button } from "@/components/kit/button"; const cx = (...c: (string | false | null | undefined)[]) => c.filter(Boolean).join(" "); const EASE = "ease-[cubic-bezier(.16,1,.3,1)]"; export interface FooterColumn { heading: string; links: { label: string; href: string }[]; } export interface FooterProps { brand: ReactNode; /** Big word along the bottom edge. */ wordmark: string; columns: FooterColumn[]; tagline?: string; /** Called with the email; resolve to confirm, reject to show an error. */ onSubscribe?: (email: string) => Promise<void>; legal?: ReactNode; className?: string; } /** Email field that turns into a confirmation in place. */ export function Newsletter({ onSubscribe }: { onSubscribe?: (email: string) => Promise<void> }) { const [email, setEmail] = useState(""); const [state, setState] = useState<"idle" | "busy" | "done" | "error">("idle"); const [msg, setMsg] = useState(""); const field = useRef<HTMLInputElement>(null); const submit = async (e: FormEvent) => { e.preventDefault(); if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email.trim())) { setMsg(email.trim() ? "Enter an email like [email protected]." : "Enter your email to subscribe."); setState("error"); field.current?.focus(); return; } setState("busy"); try { await (onSubscribe?.(email.trim()) ?? new Promise((r) => setTimeout(r, 900))); setState("done"); } catch { setMsg("Couldn't subscribe right now. Try again in a moment."); setState("error"); } }; return ( <div className="relative"> <form onSubmit={submit} noValidate aria-hidden={state === "done" || undefined} className={cx( "flex h-11 items-center gap-1 rounded-[10px] bg-paper/10 p-1 pl-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--color-paper)_14%,transparent)] transition-[opacity,transform,box-shadow] duration-500 focus-within:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--color-paper)_45%,transparent)]", EASE, state === "done" && "pointer-events-none -translate-y-2 opacity-0", state === "error" && "shadow-[inset_0_0_0_1.5px_var(--color-paper)]", )} > <label htmlFor="kit-footer-email" className="sr-only"> Email address </label> <input ref={field} id="kit-footer-email" name="email" type="email" autoComplete="email" inputMode="email" autoCapitalize="none" spellCheck={false} value={email} onChange={(e) => { setEmail(e.target.value); if (state === "error") setState("idle"); }} placeholder="[email protected]" aria-invalid={state === "error" || undefined} aria-describedby="kit-footer-msg" tabIndex={state === "done" ? -1 : undefined} className="min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14px] text-paper outline-none placeholder:text-paper/40" /> <Button type="submit" variant="accent" size="sm" shape="pill" loading={state === "busy"} className="shadow-none" tabIndex={state === "done" ? -1 : undefined}> Subscribe </Button> </form> <p className={cx( "absolute inset-0 flex items-center gap-2 pl-1 text-[14px] text-paper transition-[opacity,transform] duration-500", EASE, state === "done" ? "opacity-100" : "pointer-events-none translate-y-2 opacity-0", )} aria-hidden={state !== "done"} > <span className="flex h-6 w-6 items-center justify-center rounded-full bg-brand text-on-brand"> <svg viewBox="0 0 24 24" className="h-3.5 w-3.5" fill="none" stroke="currentColor" strokeWidth="3.3" strokeLinecap="round" strokeLinejoin="round" aria-hidden> <path d="m5 12.5 4.5 4.5L19 7.5" strokeDasharray="20" style={{ strokeDashoffset: state === "done" ? 0 : 20, transition: "stroke-dashoffset .5s .2s" }} /> </svg> </span> You're in. First letter lands next week. </p> <p id="kit-footer-msg" role="status" className="mt-2 h-4 text-[12px] text-paper"> {state === "error" ? msg : ""} </p> </div> ); } /** First index whose value is >= v in a sorted array (binary search). */ function lowerBound(a: number[], v: number) { let lo = 0; let hi = a.length; while (lo < hi) { const mid = (lo + hi) >> 1; if (a[mid] < v) lo = mid + 1; else hi = mid; } return lo; } type Letters = { els: HTMLSpanElement[]; c: number[]; w: number[]; reach: number; left: number; still: boolean }; /** * Letters near the pointer lift a little and brighten; the rest stay put. Letter centres are measured * once on enter (and again after a resize), so a pointer move is a binary search plus a few writes in one frame. */ function Wordmark({ text }: { text: string }) { const box = useRef<HTMLDivElement>(null); const cache = useRef<Letters | null>(null); const live = useRef<[number, number]>([0, 0]); const px = useRef<number | null>(null); const raf = useRef(0); const measure = () => { const el = box.current; if (!el) return null; const left = el.getBoundingClientRect().left; const els = [...el.querySelectorAll<HTMLSpanElement>("span[data-l]")]; const c: number[] = []; const w: number[] = []; let reach = 0; for (const s of els) { const r = s.getBoundingClientRect(); c.push(r.left - left + r.width / 2); w.push(r.width); reach = Math.max(reach, r.width * 2.5); } return (cache.current = { els, c, w, reach, left, still: window.matchMedia("(prefers-reduced-motion: reduce)").matches }); }; const flush = () => { raf.current = 0; const d = cache.current; if (!d) return; const x = px.current === null ? null : px.current - d.left; const [a0, b0] = live.current; let a = 0; let b = 0; if (x !== null && !d.still) { a = lowerBound(d.c, x - d.reach); b = lowerBound(d.c, x + d.reach); } for (let i = a0; i < b0; i++) { if (i >= a && i < b) continue; d.els[i].style.transform = ""; d.els[i].style.opacity = ""; } for (let i = a; i < b; i++) { const k = Math.max(0, 1 - Math.abs(x! - d.c[i]) / (d.w[i] * 2.5)); d.els[i].style.transform = `translateY(${-k * 14}%)`; d.els[i].style.opacity = String(0.22 + k * 0.78); } live.current = [a, b]; }; const move = (x: number | null) => { if (!cache.current) measure(); px.current = x; if (!raf.current) raf.current = requestAnimationFrame(flush); }; useEffect(() => { const el = box.current; if (!el) return; cache.current = null; live.current = [0, 0]; const ro = new ResizeObserver(() => { cache.current = null; }); ro.observe(el); return () => { ro.disconnect(); cancelAnimationFrame(raf.current); raf.current = 0; }; }, [text]); return ( <div ref={box} aria-hidden onPointerEnter={(e) => { measure(); move(e.clientX); }} onPointerMove={(e) => move(e.clientX)} onPointerLeave={() => move(null)} className="-mb-[0.18em] mt-6 flex select-none justify-center overflow-hidden pt-[0.1em] text-[clamp(3rem,19.5cqw,13rem)] font-semibold leading-[0.9] tracking-[-0.06em]" > {text.split("").map((c, i) => ( <span key={i} data-l className={cx("inline-block opacity-[0.22] transition-[transform,opacity] duration-500", EASE)}> {c} </span> ))} </div> ); } /** * Footer on an inverted panel: brand and newsletter, link columns, legal line and a big wordmark that * reacts to the pointer. Columns go 2-up below 620px of container width (wrap it in `@container`). */ export function Footer({ brand, wordmark, columns, tagline, onSubscribe, legal, className }: FooterProps) { return ( <footer className={cx("@container overflow-hidden rounded-2xl bg-ink px-6 pt-8 text-paper sm:px-8", className)}> <div className="grid gap-8 @min-[620px]:grid-cols-[1.3fr_2fr]"> <div className="flex min-w-0 flex-col gap-4"> <div className="flex items-center gap-2 text-[15px] font-semibold tracking-[-0.02em]">{brand}</div> {tagline && <p className="max-w-[30ch] text-[13.5px] leading-relaxed text-paper/60">{tagline}</p>} <Newsletter onSubscribe={onSubscribe} /> </div> <nav aria-label="Footer" className="grid grid-cols-2 gap-6 @min-[420px]:grid-cols-3"> {columns.map((c) => ( <div key={c.heading}> <p className="text-[12px] text-paper/45">{c.heading}</p> <ul className="mt-3 flex flex-col gap-2"> {c.links.map((l) => ( <li key={l.label}> <a href={l.href} className="group/fl inline-flex items-center gap-1 rounded text-[13.5px] text-paper/80 outline-none transition-colors hover:text-paper focus-visible:ring-2 focus-visible:ring-brand/60" > {l.label} <span aria-hidden className={cx("-translate-x-1 text-[11px] opacity-0 transition-[translate,opacity] duration-300 group-hover/fl:translate-x-0 group-hover/fl:opacity-60", EASE)}> ↗ </span> </a> </li> ))} </ul> </div> ))} </nav> </div> {legal && <div className="mt-8 flex flex-wrap justify-between gap-2 text-[12px] text-paper/45">{legal}</div>} <Wordmark text={wordmark} /> </footer> ); } export default Footer;"use client"; import { useEffect, useRef, useState, type FormEvent, type ReactNode } from "react"; import { Button } from "@/components/kit/base/button"; const cx = (...c: (string | false | null | undefined)[]) => c.filter(Boolean).join(" "); const EASE = "ease-[cubic-bezier(.16,1,.3,1)]"; export interface FooterColumn { heading: string; links: { label: string; href: string }[]; } export interface FooterProps { brand: ReactNode; /** Big word along the bottom edge. */ wordmark: string; columns: FooterColumn[]; tagline?: string; /** Called with the email; resolve to confirm, reject to show an error. */ onSubscribe?: (email: string) => Promise<void>; legal?: ReactNode; className?: string; } /** Email field that turns into a confirmation in place. */ export function Newsletter({ onSubscribe }: { onSubscribe?: (email: string) => Promise<void> }) { const [email, setEmail] = useState(""); const [state, setState] = useState<"idle" | "busy" | "done" | "error">("idle"); const [msg, setMsg] = useState(""); const field = useRef<HTMLInputElement>(null); const submit = async (e: FormEvent) => { e.preventDefault(); if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email.trim())) { setMsg(email.trim() ? "Enter an email like [email protected]." : "Enter your email to subscribe."); setState("error"); field.current?.focus(); return; } setState("busy"); try { await (onSubscribe?.(email.trim()) ?? new Promise((r) => setTimeout(r, 900))); setState("done"); } catch { setMsg("Couldn't subscribe right now. Try again in a moment."); setState("error"); } }; return ( <div className="relative"> <form onSubmit={submit} noValidate aria-hidden={state === "done" || undefined} className={cx( "flex h-11 items-center gap-1 rounded-[10px] bg-paper/10 p-1 pl-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--color-paper)_14%,transparent)] transition-[opacity,transform,box-shadow] duration-500 focus-within:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--color-paper)_45%,transparent)]", EASE, state === "done" && "pointer-events-none -translate-y-2 opacity-0", state === "error" && "shadow-[inset_0_0_0_1.5px_var(--color-paper)]", )} > <label htmlFor="kit-footer-email" className="sr-only"> Email address </label> <input ref={field} id="kit-footer-email" name="email" type="email" autoComplete="email" inputMode="email" autoCapitalize="none" spellCheck={false} value={email} onChange={(e) => { setEmail(e.target.value); if (state === "error") setState("idle"); }} placeholder="[email protected]" aria-invalid={state === "error" || undefined} aria-describedby="kit-footer-msg" tabIndex={state === "done" ? -1 : undefined} className="min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14px] text-paper outline-none placeholder:text-paper/40" /> <Button type="submit" variant="accent" size="sm" shape="pill" loading={state === "busy"} className="shadow-none" tabIndex={state === "done" ? -1 : undefined}> Subscribe </Button> </form> <p className={cx( "absolute inset-0 flex items-center gap-2 pl-1 text-[14px] text-paper transition-[opacity,transform] duration-500", EASE, state === "done" ? "opacity-100" : "pointer-events-none translate-y-2 opacity-0", )} aria-hidden={state !== "done"} > <span className="flex h-6 w-6 items-center justify-center rounded-full bg-brand text-on-brand"> <svg viewBox="0 0 24 24" className="h-3.5 w-3.5" fill="none" stroke="currentColor" strokeWidth="3.3" strokeLinecap="round" strokeLinejoin="round" aria-hidden> <path d="m5 12.5 4.5 4.5L19 7.5" strokeDasharray="20" style={{ strokeDashoffset: state === "done" ? 0 : 20, transition: "stroke-dashoffset .5s .2s" }} /> </svg> </span> You're in. First letter lands next week. </p> <p id="kit-footer-msg" role="status" className="mt-2 h-4 text-[12px] text-paper"> {state === "error" ? msg : ""} </p> </div> ); } /** First index whose value is >= v in a sorted array (binary search). */ function lowerBound(a: number[], v: number) { let lo = 0; let hi = a.length; while (lo < hi) { const mid = (lo + hi) >> 1; if (a[mid] < v) lo = mid + 1; else hi = mid; } return lo; } type Letters = { els: HTMLSpanElement[]; c: number[]; w: number[]; reach: number; left: number; still: boolean }; /** * Letters near the pointer lift a little and brighten; the rest stay put. Letter centres are measured * once on enter (and again after a resize), so a pointer move is a binary search plus a few writes in one frame. */ function Wordmark({ text }: { text: string }) { const box = useRef<HTMLDivElement>(null); const cache = useRef<Letters | null>(null); const live = useRef<[number, number]>([0, 0]); const px = useRef<number | null>(null); const raf = useRef(0); const measure = () => { const el = box.current; if (!el) return null; const left = el.getBoundingClientRect().left; const els = [...el.querySelectorAll<HTMLSpanElement>("span[data-l]")]; const c: number[] = []; const w: number[] = []; let reach = 0; for (const s of els) { const r = s.getBoundingClientRect(); c.push(r.left - left + r.width / 2); w.push(r.width); reach = Math.max(reach, r.width * 2.5); } return (cache.current = { els, c, w, reach, left, still: window.matchMedia("(prefers-reduced-motion: reduce)").matches }); }; const flush = () => { raf.current = 0; const d = cache.current; if (!d) return; const x = px.current === null ? null : px.current - d.left; const [a0, b0] = live.current; let a = 0; let b = 0; if (x !== null && !d.still) { a = lowerBound(d.c, x - d.reach); b = lowerBound(d.c, x + d.reach); } for (let i = a0; i < b0; i++) { if (i >= a && i < b) continue; d.els[i].style.transform = ""; d.els[i].style.opacity = ""; } for (let i = a; i < b; i++) { const k = Math.max(0, 1 - Math.abs(x! - d.c[i]) / (d.w[i] * 2.5)); d.els[i].style.transform = `translateY(${-k * 14}%)`; d.els[i].style.opacity = String(0.22 + k * 0.78); } live.current = [a, b]; }; const move = (x: number | null) => { if (!cache.current) measure(); px.current = x; if (!raf.current) raf.current = requestAnimationFrame(flush); }; useEffect(() => { const el = box.current; if (!el) return; cache.current = null; live.current = [0, 0]; const ro = new ResizeObserver(() => { cache.current = null; }); ro.observe(el); return () => { ro.disconnect(); cancelAnimationFrame(raf.current); raf.current = 0; }; }, [text]); return ( <div ref={box} aria-hidden onPointerEnter={(e) => { measure(); move(e.clientX); }} onPointerMove={(e) => move(e.clientX)} onPointerLeave={() => move(null)} className="-mb-[0.18em] mt-6 flex select-none justify-center overflow-hidden pt-[0.1em] text-[clamp(3rem,19.5cqw,13rem)] font-semibold leading-[0.9] tracking-[-0.06em]" > {text.split("").map((c, i) => ( <span key={i} data-l className={cx("inline-block opacity-[0.22] transition-[transform,opacity] duration-500", EASE)}> {c} </span> ))} </div> ); } /** * Footer on an inverted panel: brand and newsletter, link columns, legal line and a big wordmark that * reacts to the pointer. Columns go 2-up below 620px of container width (wrap it in `@container`). */ export function Footer({ brand, wordmark, columns, tagline, onSubscribe, legal, className }: FooterProps) { return ( <footer className={cx("@container overflow-hidden rounded-2xl bg-ink px-6 pt-8 text-paper sm:px-8", className)}> <div className="grid gap-8 @min-[620px]:grid-cols-[1.3fr_2fr]"> <div className="flex min-w-0 flex-col gap-4"> <div className="flex items-center gap-2 text-[15px] font-semibold tracking-[-0.02em]">{brand}</div> {tagline && <p className="max-w-[30ch] text-[13.5px] leading-relaxed text-paper/60">{tagline}</p>} <Newsletter onSubscribe={onSubscribe} /> </div> <nav aria-label="Footer" className="grid grid-cols-2 gap-6 @min-[420px]:grid-cols-3"> {columns.map((c) => ( <div key={c.heading}> <p className="text-[12px] text-paper/45">{c.heading}</p> <ul className="mt-3 flex flex-col gap-2"> {c.links.map((l) => ( <li key={l.label}> <a href={l.href} className="group/fl inline-flex items-center gap-1 rounded text-[13.5px] text-paper/80 outline-none transition-colors hover:text-paper focus-visible:ring-2 focus-visible:ring-brand/60" > {l.label} <span aria-hidden className={cx("-translate-x-1 text-[11px] opacity-0 transition-[translate,opacity] duration-300 group-hover/fl:translate-x-0 group-hover/fl:opacity-60", EASE)}> ↗ </span> </a> </li> ))} </ul> </div> ))} </nav> </div> {legal && <div className="mt-8 flex flex-wrap justify-between gap-2 text-[12px] text-paper/45">{legal}</div>} <Wordmark text={wordmark} /> </footer> ); } export default Footer;Or ask your AI agent
Paste this into Claude Code, Cursor, Codex, v0 or Lovable. Fill in the last line. More in Prompts.
Add the Astabyte UI Footer component to my project. Link columns, a newsletter field and a wordmark. It includes: columns, newsletter, wordmark. Install it (Radix build): ```sh pnpm dlx asta-ui@latest add footer --radix ``` Or with the shadcn CLI: ```sh pnpm dlx shadcn@latest add https://ui.astabyte.com/r/footer.json ``` If the project isn't set up yet, run `pnpm dlx asta-ui@latest init --radix` first: it runs `shadcn init` when needed and adds the @astabyte registry (Next.js, Vite, React Router, Astro, TanStack Start; Tailwind CSS v4). Import it like this: ```tsx import { Footer, type FooterColumn } from "@/components/astabyte/footer"; ``` Usage example and props: https://ui.astabyte.com/footer Full catalogue for context: https://ui.astabyte.com/llms.txt Rules: - Keep the colour tokens (paper, paper-2, ink, ink-2, mute, brand). Don't restyle with hard-coded colours; rebrand by changing the token values in the CSS. - Keep the motion as it is: transform and opacity only, and the prefers-reduced-motion fallback. - Keep keyboard, focus and ARIA behaviour (interactive pieces are built on Radix primitives from the radix-ui package). - Stay on Radix: install other Astabyte UI components with `--radix` so the project uses one primitive library. - Use fake data and fake brand names in examples. Use it to: [describe where it goes and what it should do]Add the Astabyte UI Footer component to my project. Link columns, a newsletter field and a wordmark. It includes: columns, newsletter, wordmark. Install it (Base UI build): ```sh pnpm dlx asta-ui@latest add footer ``` Or with the shadcn CLI: ```sh pnpm dlx shadcn@latest add https://ui.astabyte.com/r/base/footer.json ``` If the project isn't set up yet, run `pnpm dlx asta-ui@latest init` first: it runs `shadcn init` when needed and adds the @astabyte registry (Next.js, Vite, React Router, Astro, TanStack Start; Tailwind CSS v4). Import it like this: ```tsx import { Footer, type FooterColumn } from "@/components/astabyte/footer"; ``` Usage example and props: https://ui.astabyte.com/footer Full catalogue for context: https://ui.astabyte.com/llms.txt Rules: - Keep the colour tokens (paper, paper-2, ink, ink-2, mute, brand). Don't restyle with hard-coded colours; rebrand by changing the token values in the CSS. - Keep the motion as it is: transform and opacity only, and the prefers-reduced-motion fallback. - Keep keyboard, focus and ARIA behaviour (interactive pieces are built on Base UI primitives from the @base-ui/react package). - Stay on Base UI: install other Astabyte UI components without `--radix` so the project uses one primitive library. - Use fake data and fake brand names in examples. Use it to: [describe where it goes and what it should do]Or use plain HTML + CSS
Not on React? Use it from Django, Rails, Laravel, Go
html/template, htmx or a static page. Loadasta.cssandasta.jsonce (thehead.htmltab), then paste the markup. Theui.astabyte.com/cdnlink is temporary: pin a version from jsDelivr for production. More in HTML + CSS.<!-- The newsletter form needs a server (POST, e.g. hx-post) and asta.js for the done/error states; the rest is static. --> <footer class="asta-footer"> <div class="asta-footer-grid"> <div class="asta-footer-intro"> <div class="asta-footer-brand"><span style="display:grid;height:24px;width:24px;place-items:center;border-radius:6px;background:var(--brand);font-size:12px;font-weight:600;color:#fff">A</span><span>Astabyte</span></div> <p class="asta-footer-tagline">Web apps and the kit behind them.</p> <div class="asta-newsletter" data-asta-newsletter data-state="idle"> <form class="asta-newsletter-form" novalidate> <label for="ex-newsletter-email" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)">Email address</label> <input id="ex-newsletter-email" class="asta-newsletter-input" type="email" name="email" placeholder="[email protected]" autocomplete="email" inputmode="email" autocapitalize="none" spellcheck="false" aria-describedby="ex-newsletter-email-msg"> <button type="submit" class="asta-btn asta-btn-accent asta-btn-sm asta-btn-pill"><span class="asta-btn-label">Subscribe</span></button> </form> <p aria-hidden="true" data-asta-newsletter-done class="asta-newsletter-done"><span><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3.5 8.5 3 3 6-7" pathLength="1" stroke-dasharray="1"/></svg></span>You're in. First letter lands next week.</p> <p id="ex-newsletter-email-msg" role="status" class="asta-newsletter-msg"><span class="asta-newsletter-error">That doesn't look like an email address.</span><span class="asta-newsletter-done-sr">You're in. First letter lands next week.</span></p> </div> </div> <nav aria-label="Footer" class="asta-footer-nav"> <div><p class="asta-footer-heading">Product</p><ul class="asta-footer-links"><li><a href="#footer" class="asta-footer-link">Kit <span aria-hidden="true">↗</span></a></li><li><a href="#footer" class="asta-footer-link">Motion <span aria-hidden="true">↗</span></a></li></ul></div> <div><p class="asta-footer-heading">Company</p><ul class="asta-footer-links"><li><a href="#footer" class="asta-footer-link">About <span aria-hidden="true">↗</span></a></li><li><a href="#footer" class="asta-footer-link">Contact <span aria-hidden="true">↗</span></a></li></ul></div> <div><p class="asta-footer-heading">Resources</p><ul class="asta-footer-links"><li><a href="#footer" class="asta-footer-link">Docs <span aria-hidden="true">↗</span></a></li><li><a href="#footer" class="asta-footer-link">GitHub <span aria-hidden="true">↗</span></a></li></ul></div> </nav> </div> <div class="asta-footer-legal"><span>© 2026 Astabyte</span><span style="display:flex;gap:16px"><a href="#footer">Privacy</a><a href="#footer">Terms</a></span></div> <div data-asta-wordmark aria-hidden="true" class="asta-footer-wordmark"><span data-l>A</span><span data-l>s</span><span data-l>t</span><span data-l>a</span><span data-l>b</span><span data-l>y</span><span data-l>t</span><span data-l>e</span></div> </footer>
Usage
The demo above, as code.
"use client";
import { Footer, type FooterColumn } from "@/components/astabyte/footer";
const COLUMNS: FooterColumn[] = [
{ heading: "Product", links: [{ label: "Analytics", href: "#" }, { label: "Automations", href: "#" }, { label: "Pricing", href: "#" }] },
{ heading: "Company", links: [{ label: "About", href: "#" }, { label: "Careers", href: "#" }, { label: "Blog", href: "#" }] },
{ heading: "Help", links: [{ label: "Docs", href: "#" }, { label: "Status", href: "#" }, { label: "Contact", href: "#" }] },
];
export default function FooterDemo() {
return (
<div className="flex min-h-[420px] w-full items-center justify-center p-4 sm:p-8">
<Footer
className="w-full max-w-[880px]"
brand={
<>
<span className="h-4 w-4 rounded-full bg-brand" /> Astabyte
</>
}
tagline="Revenue analytics for teams that ship. One short letter a month."
columns={COLUMNS}
wordmark="Astabyte"
legal={
<>
<span>© 2026 Astabyte</span>
<span>Privacy · Terms</span>
</>
}
/>
</div>
);
}