A clean startup footer built with Tailwind CSS for SaaS and product websites. This website footer example combines a brand block with a newsletter signup, Product, Company and Resources link columns, a card that links to the latest changelog release, and a legal row with social links, so the bottom of a landing page or marketing site feels as finished as the top.
How it works
The component root is footer.slf-footer with the data-slf hook; a thin bg-slate-50 call-to-action strip above it only stands in for the end of your page. From the lg breakpoint a 12-column grid gives five columns to the brand and newsletter area and seven to the link columns. On phones everything stacks and the three nav columns become a two-column grid.
The newsletter form (data-slf-form) validates inline against EMAIL_RE: an empty or incomplete address (on submit or on blur) sets aria-invalid="true" and writes a message into the data-slf-msg status line, which clears once the address is valid. A valid address triggers a short simulated request, then the data-slf-success panel replaces the form and receives focus; "Use a different email" brings the form back. Replace the setTimeout in initNewsletter with a fetch() call to your email provider.
The changelog card (.slf-changelog) shows the latest version, its headline and a release date. initRelease computes that date from today using data-slf-days-ago, fills the datetime attribute and prints it as month and day, so the entry never looks months old. The copyright year in data-slf-year is set by the script as well.
Customization
--slf-accentinstyle.css: changes hover colors, focus outlines and social icon hover in one place; also replace#7c3aedin the markup for the badge and buttons.--slf-radiusinstyle.css: rounds the changelog card; the form fields userounded-xlin the markup.data-slf-days-agoon thetimeelement: sets how many days ago the shown release went out.lg:col-span-5andlg:col-span-7: rebalance the brand and link areas..slf-linkand.slf-legalinstyle.css: adjust link color and the 40 px tap height used on small screens.HINTinscript.js: the helper text shown under the email field.
Use cases
- SaaS marketing sites: product links, docs and a monthly update signup in one footer.
- Developer tools: the changelog card points visitors to what shipped this week.
- Startup landing pages: a compact but complete footer with careers and press links.
Accessibility
Each link column is a nav labelled by its heading, the legal links have aria-label="Legal", and contact details sit in an address element. The email field has a label, aria-describedby and aria-invalid; the data-slf-msg line and a hidden data-slf-live region use aria-live="polite" to announce errors and success. Social links use generic icons with the network name in sr-only text. All links and buttons have a visible focus outline and a 40 px tap height on mobile.
Usage notes
The Plus Jakarta Sans font loads from Google Fonts via externalLibs.