Glow · Status
A one-line status banner lit emerald from the center, with glowing hairlines between its three readings. Recolor it by changing one CSS variable.
// The copy: change text here, not in the markup.
const COPY = {
subject: "All systems",
status: "Operational",
checked: "Checked 2 min ago",
} as const
/** A one-line status banner lit emerald from the center, with glowing hairlines between its three readings. Change `--glow` to recolor it. */
export default function BannerGlowStatus() {
return (
<div className="relative isolate w-full overflow-hidden rounded-2xl bg-slate-950 text-white [--glow:16_185_129]">
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgb(var(--glow)/0.3)_0%,transparent_80%)]"
/>
<div className="relative z-10 flex items-center gap-4 px-6 py-4">
<span className="text-sm/6 font-light">{COPY.subject}</span>
<div
aria-hidden="true"
className="h-px flex-1 bg-[linear-gradient(to_right,rgb(var(--glow)/0),rgb(var(--glow)/0.5),rgb(var(--glow)/0))]"
/>
<span className="text-sm/6 font-medium">{COPY.status}</span>
<div
aria-hidden="true"
className="h-px flex-1 bg-[linear-gradient(to_right,rgb(var(--glow)/0),rgb(var(--glow)/0.5),rgb(var(--glow)/0))]"
/>
<span className="text-sm/6 text-white/70">{COPY.checked}</span>
</div>
</div>
)
}
Installation
pnpm dlx shadcn@latest add @01orbital/banner-glow-statusnpx shadcn@latest add @01orbital/banner-glow-statusyarn dlx shadcn@latest add @01orbital/banner-glow-statusbunx --bun shadcn@latest add @01orbital/banner-glow-statusMake it yours
- Its words are in
COPYat the top ofcomponents/blocks/banner/banner-glow-status/index.tsx: change them there, not in the markup.
Last updated on