Light Release Notes Header
Light #fbfcfd page with large dark display title 'Release Notes', muted subline and glass email subscribe pill plus 'View demo' button; contrasts with the dark home theme.
Rebuilt from mercury.com/releases in the Twilight Ledger style.
npx shadcn@latest add https://justyoink.it/r/twilight-ledger-0e1ecf/blocks/release-notes-header.json
Looks exactly like mercury.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/twilight-ledger-0e1ecf/mine/release-notes-header.json
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, placeholder, subscribeLabel, demoLabel, brand, and onSubscribe(email). Renders standalone on a light #fbfcfd background with nav, title, and glass subscribe pill.
components/release-notes-header.tsx
import { useState } from "react"; export default function LightReleaseNotesHeader({ title = "Product Updates", subtitle = "The newest Northwind releases, fixes and improvements.", placeholder = "Enter your email", subscribeLabel = "Get updates", demoLabel = "View demo", brand = "NORTHWIND", onSubscribe, }: { title?: string; subtitle?: string; placeholder?: string; subscribeLabel?: string; demoLabel?: string; brand?: string; onSubscribe?: (email: string) => void; }) { const [email, setEmail] = useState(""); const links = ["Business", "Personal", "Solutions", "Resources", "About", "Pricing"]; return ( <header className="relative w-full bg-[#fbfcfd] font-sans text-ink-dark pb-16"> <nav className="flex items-center justify-between gap-4 px-4 py-4 md:px-8" aria-label="Primary"> <a href="#" className="flex items-center gap-3 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent"> <svg width="32" height="32" viewBox="0 0 32 32" fill="none" stroke="currentColor" strokeWidth="1.2" aria-hidden="true"> <circle cx="16" cy="16" r="14.5" /> <circle cx="16" cy="16" r="9" /> <circle cx="16" cy="16" r="3.5" /> <path d="M16 1.5v8M16 22.5v8M1.5 16h8M22.5 16h8" /> </svg> <span className="text-[18px] font-medium tracking-[0.22em]">{brand}</span> </a> <ul className="hidden items-center gap-2 lg:flex"> {links.map((l, i) => ( <li key={l}> <a href="#" className="flex items-center gap-1.5 rounded-pill px-4 py-2 text-[15px] transition-colors duration-hover-wash ease-hover-wash hover:bg-black/5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent"> {l} {i !== 1 && i !== 5 && ( <svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="1.4" aria-hidden="true"><path d="M2 4l4 4 4-4" /></svg> )} </a> </li> ))} </ul> <div className="flex items-center gap-2 text-[15px]"> <a href="#" className="hidden rounded-pill px-3 py-2 transition-colors duration-hover-wash hover:bg-black/5 sm:block">Log in</a> <a href="#" className="rounded-pill bg-black/[0.07] px-4 py-2 transition-colors duration-hover-wash ease-hover-wash hover:bg-black/10">Launch demo</a> <a href="#" className="rounded-pill bg-accent px-4 py-2 text-white transition-opacity duration-hover-wash hover:opacity-90">Open account</a> </div> </nav> <div className="mx-auto mt-16 max-w-[1024px] px-6 md:mt-20"> <h1 className="font-display text-5xl font-medium tracking-[-0.03em] md:text-[64px] md:leading-[1.1]">{title}</h1> <p className="mt-3 text-lg text-ink-dark-muted md:text-xl">{subtitle}</p> <form className="mt-10 flex flex-wrap items-center gap-2" onSubmit={(e) => { e.preventDefault(); onSubscribe?.(email); }} > <div className="flex h-12 w-full max-w-[411px] items-center rounded-pill border border-black/5 bg-black/[0.05] pl-5 pr-1 backdrop-blur-[20px]"> <input type="email" value={email} onChange={(e) => setEmail(e.target.value)} placeholder={placeholder} aria-label="Email address" className="min-w-0 flex-1 bg-transparent text-[17px] text-ink-dark placeholder:text-ink-dark-muted focus:outline-none" /> <button type="submit" className="h-10 rounded-pill bg-accent px-5 text-[17px] text-white transition-opacity duration-hover-wash hover:opacity-90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent"> {subscribeLabel} </button> </div> <button type="button" className="h-10 rounded-pill border border-black/5 bg-black/[0.05] px-5 text-[17px] backdrop-blur-[20px] transition-colors duration-hover-wash ease-hover-wash hover:bg-black/10 focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent"> {demoLabel} </button> </form> </div> </header> ); }import { useState } from "react"; export default function LightReleaseNotesHeader({ title = "Product Updates", subtitle = "The newest Northwind releases, fixes and improvements.", placeholder = "Enter your email", subscribeLabel = "Get updates", demoLabel = "View demo", brand = "NORTHWIND", onSubscribe, }: { title?: string; subtitle?: string; placeholder?: string; subscribeLabel?: string; demoLabel?: string; brand?: string; onSubscribe?: (email: string) => void; }) { const [email, setEmail] = useState(""); const links = ["Business", "Personal", "Solutions", "Resources", "About", "Pricing"]; return ( <header className="relative w-full bg-foreground font-sans text-background pb-16"> <nav className="flex items-center justify-between gap-4 px-4 py-4 md:px-8" aria-label="Primary"> <a href="#" className="flex items-center gap-3 rounded-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary"> <svg width="32" height="32" viewBox="0 0 32 32" fill="none" stroke="currentColor" strokeWidth="1.2" aria-hidden="true"> <circle cx="16" cy="16" r="14.5" /> <circle cx="16" cy="16" r="9" /> <circle cx="16" cy="16" r="3.5" /> <path d="M16 1.5v8M16 22.5v8M1.5 16h8M22.5 16h8" /> </svg> <span className="text-[18px] font-medium tracking-[0.22em]">{brand}</span> </a> <ul className="hidden items-center gap-2 lg:flex"> {links.map((l, i) => ( <li key={l}> <a href="#" className="flex items-center gap-1.5 rounded-full px-4 py-2 text-[15px] transition-colors duration-twilight-hover-wash ease-twilight-hover-wash hover:bg-background/5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary"> {l} {i !== 1 && i !== 5 && ( <svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="1.4" aria-hidden="true"><path d="M2 4l4 4 4-4" /></svg> )} </a> </li> ))} </ul> <div className="flex items-center gap-2 text-[15px]"> <a href="#" className="hidden rounded-full px-3 py-2 transition-colors duration-twilight-hover-wash hover:bg-background/5 sm:block">Log in</a> <a href="#" className="rounded-full bg-background/[0.07] px-4 py-2 transition-colors duration-twilight-hover-wash ease-twilight-hover-wash hover:bg-background/10">Launch demo</a> <a href="#" className="rounded-full bg-primary px-4 py-2 text-primary-foreground transition-opacity duration-twilight-hover-wash hover:opacity-90">Open account</a> </div> </nav> <div className="mx-auto mt-16 max-w-[1024px] px-6 md:mt-20"> <h1 className="font-sans text-5xl font-medium tracking-[-0.03em] md:text-[64px] md:leading-[1.1]">{title}</h1> <p className="mt-3 text-lg text-muted-foreground md:text-xl">{subtitle}</p> <form className="mt-10 flex flex-wrap items-center gap-2" onSubmit={(e) => { e.preventDefault(); onSubscribe?.(email); }} > <div className="flex h-12 w-full max-w-[411px] items-center rounded-full border border-background/5 bg-background/[0.05] pl-5 pr-1 backdrop-blur-[20px]"> <input type="email" value={email} onChange={(e) => setEmail(e.target.value)} placeholder={placeholder} aria-label="Email address" className="min-w-0 flex-1 bg-transparent text-[17px] text-muted-foreground placeholder:text-muted-foreground focus:outline-none" /> <button type="submit" className="h-10 rounded-full bg-primary px-5 text-[17px] text-primary-foreground transition-opacity duration-twilight-hover-wash hover:opacity-90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"> {subscribeLabel} </button> </div> <button type="button" className="h-10 rounded-full border border-background/5 bg-background/[0.05] px-5 text-[17px] backdrop-blur-[20px] transition-colors duration-twilight-hover-wash ease-twilight-hover-wash hover:bg-background/10 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary"> {demoLabel} </button> </form> </div> </header> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: not passedScrolls sideways at phone width (390px)
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (2 elements)
- 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.