Overlays & feedback / Toasts & snackbars

Sticky Glass Promo Banner

Full-width frosted bar pinned to the viewport with blur and a soft shadow. Left has a title and a muted subtitle, right has a quiet text link and an outlined black button with a logo glyph.

Rebuilt from arc.net in the Obsidian Farewell Editorial style.

npx shadcn@latest add https://justyoink.it/r/obsidian-farewell-editorial/blocks/sticky-glass-banner.json

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

Usage

Props: title, subtitle, linkLabel, linkHref, buttonLabel, buttonHref, and fixed (true pins to viewport bottom; default sticks to the top of its container). Place it inside a scrolling page so it stays pinned.

components/sticky-glass-banner.tsx
export default function StickyGlassPromoBanner({
  title = "Bring your workspace over to Harbor",
  subtitle = "The new notes app from the team that built Linden",
  linkLabel = "Learn more about Harbor",
  linkHref = "#",
  buttonLabel = "Download Harbor",
  buttonHref = "#",
  fixed = false,
}: {
  title?: string;
  subtitle?: string;
  linkLabel?: string;
  linkHref?: string;
  buttonLabel?: string;
  buttonHref?: string;
  fixed?: boolean;
}) {
  return (
    <div className={(fixed ? "fixed inset-x-0 bottom-0 " : "sticky top-0 ") + "z-50 w-full"}>
      <aside
        aria-label="Promotion"
        className="w-full border-y border-hairline bg-bar-glow bg-bar-glass backdrop-blur-xl shadow-bar-glow"
      >
        <div className="mx-auto flex flex-col gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:px-8">
          <div className="min-w-0">
            <p className="font-sans text-body-lg text-ink">{title}</p>
            <p className="font-sans text-ui text-faint">{subtitle}</p>
          </div>
          <div className="flex items-center gap-4 sm:gap-8">
            <a
              href={linkHref}
              className="font-sans text-ui text-faint transition-colors duration-200 hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring"
            >
              {linkLabel}
            </a>
            <a
              href={buttonHref}
              className="inline-flex items-center gap-2 rounded-lg border border-ink bg-canvas px-6 py-4 font-sans text-ui text-ink transition-[background-color,color] duration-200 hover:bg-ink hover:text-canvas focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring"
            >
              <svg width="22" height="20" viewBox="0 0 22 20" fill="currentColor" aria-hidden="true">
                <path d="M1 19c0-8 4-15 10-15s10 7 10 15z" />
              </svg>
              {buttonLabel}
            </a>
          </div>
        </div>
      </aside>
    </div>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Farewell Editorial

The whole style →

Hairline FAQ Accordion

Accordions

Signature Scatter Hero

Heroes

Fading Vertical Timeline

Lists

Centered Serif Section Header

Other

Pill Tab Switcher

Tab bars

Frosted Browser Mockup Card

Media & mockups