A marketplace footer built with Tailwind CSS for multi-vendor shops and e-commerce marketplaces. This website footer example speaks to both sides of the marketplace: separate Buy and Sell link columns, a help center search that filters popular articles as you type, a trust and safety row, app download links and a region select that switches the shown currency.
How it works
The component root is footer.mkf-footer with the data-mkf hook; the light strip above it only represents the end of your page. At the top, the .mkf-help panel holds a search field (data-mkf-search) and a list of help links (data-mkf-list). Each li carries search words in data-mkf-keys. While the field is empty the script shows the first POPULAR_COUNT links; for a query it shows every link whose text or keywords contain all typed words, up to MAX_RESULTS, and writes the result count into the data-mkf-count status line. Escape clears the search.
Below, a 12-column grid places the brand block with the address, the Buy and Sell columns, Company links and the app buttons; on phones Buy and Sell sit side by side. The trust row uses .mkf-trust links with .mkf-trust-icon badges.
The legal row holds the copyright (year from data-mkf-year), policy links, social links and the data-mkf-region select. Changing the region updates the data-mkf-region-note text, sets data-mkf-currency on the root and dispatches a bubbling mkf:regionchange event so your page can reload prices. The choice is saved in localStorage inside try/catch.
Customization
--mkf-accentand--mkf-accent-darkinstyle.css: change the emerald used for icons, chip hovers, focus outlines and link hovers.--mkf-radiusinstyle.css: rounds the help panel, app buttons and trust icons.data-mkf-keyson each helpli: add synonyms so more searches find that article.POPULAR_COUNTandMAX_RESULTSinscript.js: how many links show by default and per search.data-currencyon eachoption: the currency code shown in the note and sent withmkf:regionchange.lg:grid-cols-4on the trust list: use three columns if you keep three trust items.
Use cases
- Handmade and vintage marketplaces: separate guidance for shoppers and shop owners.
- Multi-vendor e-commerce sites: trust badges and a region select near checkout links.
- Rental and service marketplaces: help search cuts support tickets for both sides.
- Classifieds platforms: app links and safety reporting in every page footer.
Accessibility
Columns are nav elements labelled by their headings, the search wrapper has role="search" and a hidden label, and the result count is a polite live region. The region select has a visible label and its note is announced politely. Social icons are generic shapes with the network name in sr-only text. Links, chips and controls are at least 40 px tall and show a visible focus outline.
Usage notes
The Inter font loads from Google Fonts via externalLibs.