Headers & navigation / Headers & nav bars

Transparent Minimal Nav Bar

Transparent bar over imagery: logo mark left, muted text links, right-aligned text Log in and white pill Get started.

Rebuilt from silico.ai in the Moonlit Atelier style.

npx shadcn@latest add https://justyoink.it/r/moonlit-atelier/blocks/minimal-glass-nav.json

Looks exactly like silico.ai: brings its fonts and colours, namespaced so your own theme stays untouched.

ImagesSwap it for a library image or one of your own.All images in this style →

Choose an image

Image

Loading…

Usage

Props: brand, links ({label, href}[]), loginLabel, ctaLabel, imageSrc (backdrop photo). Renders standalone with defaults; links collapse into a toggle menu on mobile.

components/minimal-glass-nav.tsx
import { useState } from "react";

type Link = { label: string; href: string };

export default function TransparentMinimalNavBar({
  brand = "Orrin",
  links = [
    { label: "Overview", href: "#" },
    { label: "Why Orrin", href: "#" },
    { label: "Capabilities", href: "#" },
    { label: "Tools", href: "#" },
    { label: "Plans", href: "#" },
  ],
  loginLabel = "Sign in",
  ctaLabel = "Start now",
  imageSrc = "https://yoink-app.fly.dev/stock/texture-3.jpg",
}: {
  brand?: string;
  links?: Link[];
  loginLabel?: string;
  ctaLabel?: string;
  imageSrc?: string;
}) {
  const [open, setOpen] = useState(false);
  return (
    <header className="relative isolate w-full overflow-hidden bg-canvas font-sans text-body">
      <img src={imageSrc} alt="" width={1600} height={1067} className="absolute inset-0 -z-20 h-full w-full object-cover opacity-60" />
      <div className="absolute inset-0 -z-10 bg-scrim" />
      <nav aria-label="Main" className="mx-auto flex h-[72px] max-w-[1440px] items-center justify-between px-5 md:px-10">
        <div className="flex items-center gap-8 lg:gap-12">
          <a href="#" className="flex items-center gap-2 text-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-white">
            <svg width="26" height="26" viewBox="0 0 26 26" fill="none" stroke="currentColor" strokeWidth="1.6" aria-hidden="true">
              <path d="M13 2c5 0 9 4 9 9-4 0-9-2-9-9Z" />
              <path d="M24 13c0 5-4 9-9 9 0-4 2-9 9-9Z" />
              <path d="M13 24c-5 0-9-4-9-9 4 0 9 2 9 9Z" />
              <path d="M2 13c0-5 4-9 9-9 0 4-2 9-9 9Z" />
            </svg>
            <span className="font-medium">{brand}</span>
          </a>
          <ul className="hidden items-center gap-7 md:flex">
            {links.map((l) => (
              <li key={l.label}>
                <a href={l.href} className="text-white/80 transition-colors hover:text-white focus-visible:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-white">
                  {l.label}
                </a>
              </li>
            ))}
          </ul>
        </div>
        <div className="flex items-center gap-5">
          <button type="button" className="hidden text-white/80 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-white sm:block">
            {loginLabel}
          </button>
          <button type="button" className="rounded-full bg-white px-4 py-2.5 font-medium text-[#0f1011] transition-opacity duration-[180ms] ease-[cubic-bezier(0.23,1,0.32,1)] hover:opacity-85 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white">
            {ctaLabel}
          </button>
          <button type="button" aria-label="Toggle menu" aria-expanded={open} onClick={() => setOpen(!open)} className="text-white md:hidden">
            <svg width="22" height="22" viewBox="0 0 22 22" stroke="currentColor" strokeWidth="1.6" fill="none"><path d="M3 7h16M3 15h16" /></svg>
          </button>
        </div>
      </nav>
      {open && (
        <ul className="flex flex-col gap-3 border-t border-hairline px-5 py-4 md:hidden">
          {links.map((l) => (
            <li key={l.label}><a href={l.href} className="text-white/80 hover:text-white">{l.label}</a></li>
          ))}
        </ul>
      )}
    </header>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Moonlit Atelier

The whole style →

Inline Update Strip

Changelog

Hairline Capability Grid

Lists

Painted Landscape Hero

Heroes

Dark Prompt Composer

Prompt & chat inputs

Perspective Floating App Window

Media & mockups

Model Picker Popover

Popovers