Hero Sections

Search-first hero

A single query field carries the whole page

Live preview
Build a search-led hero with Tailwind CSS for a directory or documentation site. Centre everything in a max-w-3xl column on a white page with a subtle neutral-50 radial wash behind it. Stack a small pill announcing a new dataset with a green dot, a large tight headline, a one-line subhead, then an oversized search field: a rounded-2xl bordered shell with a magnifier glyph on the left, a placeholder about searching 24,000 records, a keyboard hint pill reading a slash key on the right, and a dark search button. Below the field, a row of muted "try" chips holding example queries, and under that a thin row of three small stats separated by dots — records indexed, sources, update frequency. Give the field a visible focus ring and make the chips wrap gracefully on narrow screens.