'use client' import { motion } from 'framer-motion' interface AvatarWithBlobProps { roles: string[] } export function AvatarWithBlob({ roles }: AvatarWithBlobProps) { // Floating animation variants for each role blob const getBlobVariants = (index: number) => ({ animate: { y: [0, -20, 0], x: [0, Math.cos((index * 2 * Math.PI) / roles.length) * 10, 0], rotate: [0, 5, -5, 0], transition: { duration: 4 + index * 0.5, repeat: Infinity, ease: 'easeInOut', }, }, }) return (
{/* Animated background blobs */}
{/* Center circle glow */}
{/* Avatar center */}
RL
{/* Floating role blobs */} {roles.map((role, index) => { const angle = (index * 2 * Math.PI) / roles.length const radius = 120 const x = Math.cos(angle) * radius const y = Math.sin(angle) * radius return ( {role} ) })}
) }