Navbar — Floating pill

A rounded navigation pill with four links and one action floats above a quiet section, and its mobile menu opens as a separate two-column card. Use it above a sparse landing page where navigation should float clear of the content.

1440 × 900

Open in new tab

Pattern notes

When to use
Use above a sparse landing page where navigation should float clear of the content. Choose navbar-links-actions for a full-width site header. Variations: shorten the link set, use a Contact action, or place the pill over a media placeholder.
Hierarchy
Logo leads, followed by four 14px links and one Get started action. Keep link labels to 1–2 words and the action to 2 words. The rounded-full silhouette and space below distinguish the bar from an ordinary header.
Responsive
Below 768px the four desktop links hide and the native mobile menu appears. At 768px the links return, the mobile menu hides and the same floating section height remains. The menu grid stays two columns at 320px.
Layout
A neutral-50 section reserves 288px (min-h-72), with 16px outer padding. A max-w-4xl 896px white rounded-full bar is 56px tall, has 16px horizontal padding, a neutral-200 border and shadow-sm. The desktop links are centred with 24px gaps. A mobile absolute card begins 8px below the bar, spans its width and has a rounded-lg border, shadow-lg and 16px padding; its four links form two equal columns with 12px gaps above a full-width action.
States
Text links change from neutral-900 to neutral-600 on hover. The primary action has a neutral-900 fill, neutral-700 hover fill, 44px height and a pill radius. The mobile 40px round summary shows bars when closed and a cross when open. The details is initially open. Every enabled control shows a 2px keyboard-focus outline offset 2px. There are no disabled controls.
Desktop wireframe
┌──────────────────────────────────────────────────────────────┐
│       ┌──────────────────────────────────────────────┐       │
│       │ Logo     Four page links       [Get started] │       │
│       └──────────────────────────────────────────────┘       │
│                                                              │
│                   Open space below the pill                  │
└──────────────────────────────────────────────────────────────┘