The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
at master 1.0 kB view raw
1/* eslint-disable @next/next/no-img-element */ 2import { cn } from "@/utils/cn"; 3 4interface GlowingImageProps { 5 src: string; 6 alt: string; 7 width: number; 8 height: number; 9 className?: string; 10} 11 12export function GlowingImage({ 13 src, 14 alt, 15 width, 16 height, 17 className 18}: GlowingImageProps) { 19 return ( 20 <div className={cn("relative inline-block", className)}> 21 <div className="absolute inset-0 -m-8 opacity-60"> 22 <img 23 src={src} 24 alt="" 25 width={width} 26 height={height} 27 className="w-full h-full object-cover blur-3xl scale-105" 28 /> 29 </div> 30 31 <div className="relative z-10"> 32 <img 33 src={src} 34 alt={alt} 35 width={width} 36 height={height} 37 className="rounded-xl" 38 /> 39 </div> 40 </div> 41 ); 42}