Glow · Testimonial
A customer quotation in a glow-bordered card lit emerald from the top right, with a credit and a hairline. Recolor it by changing one CSS variable.
// The copy: change text here, not in the markup.
const COPY = {
quote:
"“One radial and a bordered card. Our dark pages stopped looking like error screens.”",
credit: "Priya Nand · Nightshift",
} as const
/** A testimonial in a glow-bordered card, lit emerald from the top right. Change `--glow` to recolor it. */
export default function BannerGlowTestimonial() {
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_right_top,rgb(var(--glow)/0.3)_0%,transparent_70%)]"
/>
<div className="relative z-10 p-6 sm:p-10">
<div className="relative max-w-3xl rounded-2xl bg-slate-900/80 shadow-[0_0_60px_rgb(var(--glow)/0.25)]">
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 rounded-2xl bg-[linear-gradient(to_bottom_right,rgb(var(--glow)/0.2),rgb(var(--glow)/0.06)_50%,transparent)]"
/>
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 rounded-2xl border border-[rgb(var(--glow)/0.3)] shadow-[inset_0_0_20px_rgb(var(--glow)/0.1)]"
/>
<figure className="relative z-10 p-6 md:p-8">
<blockquote className="text-2xl/9 font-light tracking-tight text-pretty">
{COPY.quote}
</blockquote>
<div className="mt-5 flex items-center gap-4">
<figcaption className="text-sm text-white/70">
{COPY.credit}
</figcaption>
<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))]"
/>
</div>
</figure>
</div>
</div>
</div>
)
}
Installation
pnpm dlx shadcn@latest add @01orbital/banner-glow-testimonialnpx shadcn@latest add @01orbital/banner-glow-testimonialyarn dlx shadcn@latest add @01orbital/banner-glow-testimonialbunx --bun shadcn@latest add @01orbital/banner-glow-testimonialMake it yours
- Its words are in
COPYat the top ofcomponents/blocks/banner/banner-glow-testimonial/index.tsx: change them there, not in the markup.
Last updated on