NRVM

Back to Discover
CardsIntermediate

Glass Card

A stunning card using CSS backdrop-filter to create an expensive glassmorphic look.

Live Preview

Glassmorphism

A sleek, semi-transparent card utilizing backdrop filters and subtle glow effects to create depth without harsh shadows.

export function GlassCard() {
  return (
    <div className="relative w-full max-w-sm overflow-hidden rounded-2xl border border-white/10 bg-white/5 p-8 backdrop-blur-xl shadow-2xl">
      <div className="absolute -right-20 -top-20 h-40 w-40 rounded-full bg-purple-500/20 blur-3xl" />
      <div className="absolute -bottom-20 -left-20 h-40 w-40 rounded-full bg-blue-500/20 blur-3xl" />
      <div className="relative z-10">
        <div className="mb-6 inline-flex h-12 w-12 items-center justify-center rounded-xl bg-white/10 border border-white/20">
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="text-white"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/></svg>
        </div>
        <h3 className="mb-2 text-xl font-medium text-white">Glassmorphism</h3>
        <p className="text-sm text-white/70 leading-relaxed">
          A sleek, semi-transparent card utilizing backdrop filters and subtle glow effects to create depth without harsh shadows.
        </p>
      </div>
    </div>
  );
}