Skip to content

feat(header): add hamburger menu with site navigation#192

Open
stophecom wants to merge 1 commit intodevfrom
feature/header-hamburger-menu
Open

feat(header): add hamburger menu with site navigation#192
stophecom wants to merge 1 commit intodevfrom
feature/header-hamburger-menu

Conversation

@stophecom
Copy link
Copy Markdown
Owner

Summary

  • Adds a hamburger dropdown at the top-right of the header exposing site-wide navigation (Use Cases, Product, Company, Support).
  • "Use Cases" ships as disabled Coming soon placeholders — phase 2 will build the actual landing pages (IT & Security first).
  • Dropdown scales in from the trigger position via --bits-floating-transform-origin + Svelte scale transition; icon swaps Menu → X when open; caret points to the trigger.
  • 2-column grid on sm+, scrollable within viewport on mobile.
  • Compact logged-out auth CTAs — Sign in → ghost sm, Sign up → outline sm. "Sign up free" → "Sign up" across locales.

Test plan

  • Logged-out: visit /, open hamburger, navigate to Product → Pricing.
  • Logged-in: + quick-action dropdown + hamburger + avatar all render side-by-side.
  • Disabled Use Cases items show "Coming soon" badge, aren't clickable.
  • Keyboard: Tab to hamburger, Enter opens, Escape closes, arrows move between items.
  • Mobile (375px): dropdown scrolls within viewport.
  • Desktop (≥640px): dropdown lays out in 2 columns.
  • Icon swaps Menu ↔ X on open/close.
  • Open/close scale transition originates from the hamburger.
  • All locales render the compact "Sign up" label.

🤖 Generated with Claude Code

Adds a hamburger dropdown at the top-right of the header exposing
site-wide navigation (Use Cases, Product, Company, Support). Use Cases
ships as disabled "Coming soon" placeholders — phase 2 will build the
actual landing pages.

- New useCasesMenu() + mainNav() in src/lib/data/menu.ts
- Hamburger trigger swaps Menu → X when open
- Dropdown arrow points to the trigger
- 2-column grid on sm+, scrollable within viewport on mobile
- Svelte scale transition emanating from trigger position via
  --bits-floating-transform-origin
- Requires bits-ui forceMount + child snippet pattern for exit animation
- Compact logged-out auth CTAs: Sign in → ghost sm, Sign up → outline sm
- "Sign up free" → "Sign up" across locales

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
scrt-link-v2 Ready Ready Preview, Comment Apr 22, 2026 0:58am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant