Navbar
Boarding-pass header with a flight code and music
A destination-wedding header like the top of a boarding pass: a “SVO → HAV” flight code with a plane and a live “days to departure” counter, handwritten names, sections in narrow caps, a music pill with sound lines and an accent “Check-in”. The bottom edge is a perforated tear line; on scroll the strip shrinks onto paper glass.
What you can change
- names, from, to, date (ISO), daysCaption, daysLabels, brandHref, links, actionLabel, actionHref
- music (track path; empty — no pill), musicLabel, playingLabel, placement, spy
- accent and background, tone
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/navbar-026?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
One file, zero dependencies, “use client” for scroll, the counter, the scroll spy and music. A position:fixed <header> (placement=static puts it in the flow for previews); the [data-part=veil] backdrop with backdrop-filter and a ::after perforation appears on data-scrolled (scrollY>40, first read from rAF) and when the menu is open. The day counter is a per-minute setInterval, empty on the server; it hides via max-height when shrunk. Sections are Oswald caps with a scaleX underline; the active one comes from an IntersectionObserver on the anchors (rootMargin -40 %/-55 %), aria-current. Music is <audio loop preload=none>, play() only on click, aria-pressed, four lines breathe via keyframes. Below 60rem the names and sections move into [data-part=sheet] behind “Menu”. Palette --vibeui-navbar-026-* is neutral: ink and paper via light-dark(), the site colours come through the accent, ink and background props; dark theme via .dark/[data-theme] or tone. Oswald, Lobster and Manrope come via <link precedence> from Google Fonts with system fallbacks. accent and background override colours, prefers-reduced-motion disables animations.
Tags
- wedding
- travel
- boarding pass
- navbar
- flight
- countdown
- music
- sticky
- cuba
- beach
- retro
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…