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.
Looks exactly like arc.net: brings its fonts and colours, namespaced so your own theme stays untouched.
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
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> ); }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-border bg-bar-glow bg-card backdrop-blur-xl shadow-obsidian-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-obsidian-body-lg text-foreground">{title}</p> <p className="font-sans text-obsidian-ui text-muted-foreground">{subtitle}</p> </div> <div className="flex items-center gap-4 sm:gap-8"> <a href={linkHref} className="font-sans text-obsidian-ui text-muted-foreground transition-colors duration-200 hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring" > {linkLabel} </a> <a href={buttonHref} className="inline-flex items-center gap-2 rounded-xl border border-foreground bg-background px-6 py-4 font-sans text-obsidian-ui text-primary-foreground transition-[background-color,color] duration-200 hover:bg-primary hover:text-primary-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-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- Accessible: not passedElements must meet minimum color contrast ratio thresholds (2 elements)
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.