# footer

Site footer with brand blurb, validated newsletter form (no key in the browser), three link columns that become two on phones, outline wordmark, legal row and smooth back-to-top. Plain HTML/CSS/JS.

- **Space:** web-development-public (https://github.com/Tech-Realm/space-web-development-public/tree/main/footer)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, playwright-python, chromium
- **Routes:** static-local; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use web-development-public/footer` or MCP `get_pack web-development-public/footer`
- **Files:** CHANGELOG.md, code/_shots/shot-1280-rm.png, code/_shots/shot-1280.png, code/_shots/shot-390-rm.png, code/_shots/shot-390.png, code/footer.js, code/index.html, code/style.css, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/steps.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal
A footer that closes every page: brand and one-line promise, a newsletter signup that validates and reports its state, grouped links, legal links and a way back to the top. It must read well at 390 px and never cause horizontal scroll (the big wordmark is the usual culprit).

## Steps
1. Copy the `<footer>` block from `code/index.html`, `code/style.css` (from `.site-footer` down) and `code/footer.js`.
2. Replace brand, blurb and links. Keep 3-4 columns of at most 5 links; group by user intent (Product, Company, Resources).
3. Newsletter: set `data-endpoint` on the form to your own backend route (e.g. a Cloudflare Pages Function) that holds the provider key server-side. Without it the form only validates and shows the success message (demo mode).
4. The status line uses `role="status"` + `aria-live="polite"` so screen readers hear success and errors.
5. Layout: two columns (brand | links) above 860 px, one column below; link columns go 3 -> 2 below 520 px; the input and button stack on phones.
6. Wordmark: `font-size: clamp(...)` with `white-space: nowrap; overflow: hidden` on its own box so it can never widen the page.
7. Run the outcome checks.

## Edge cases
- Very long company names in the wordmark: lower the clamp max or drop the wordmark under 390 px.
- Submit spam: add a honeypot field or Turnstile on the backend route, not in the browser.
- Back to top must respect `prefers-reduced-motion` (instant jump).
- Year: rendered by JS with a static fallback in the HTML for no-JS crawlers.

## Don'ts
- Never put a mailing-list API key (Resend, Mailchimp, etc.) in client JS.
- Do not repeat every header link; the footer is for secondary navigation and legal.
- No tiny tap targets: links keep at least 8 px gaps and 16 px text on mobile.
- Do not use a fixed-width wordmark in px.



---

Canonical URL: https://logicpacks.io/packs/web-development-public/footer

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
