Marketing header
A sticky site header with an announcement bar, Product and Resources menus, sign-in and trial actions, and a mobile sheet menu.
bunx --bun @getweini/cli@latest add badge button icon-button navigation-menu sheetCustomize
- Two dropdown panels share one NavigationMenu: Product (`features`, a two-column grid with icons) and Resources (`resources`, a single column). Both also feed the mobile menu.
- The announcement bar above the header is optional: remove the paragraph or change `copy.announcement` and `copy.announcementLink`. The header itself is sticky, so the menus stay one click away while scrolling.
- Edit `features` to change the dropdown panel and `links` for the plain links. Both arrays also feed the mobile menu, so the two layouts always list the same destinations.
- The header emits `navigate` with the destination id and keeps `current` as the active link. Wire it to your router and keep `current` in sync so `aria-current` and the active style stay correct.
- The hero actions emit `cta` for the primary trial action and `navigate` with `demo` for the secondary demo action. Map those to your signup and demo routes.
- Below 1024px the desktop menu is replaced by a menu button that opens a Sheet. It traps focus, closes on Escape, and returns focus to the button.
- Put your logo in the `logo` slot. Set `copy.signIn`, `copy.cta` and the other labels to translate or rebrand the header; nothing is hard-coded elsewhere.
- The dropdown panel uses NavigationMenu, which opens on hover, click, or keyboard. Each feature row is a full-width link with an icon at the start, a title, and a short description.