/** * This file is part of the SplendidBear Websites' projects. * * Copyright (c) 2026 @ www.splendidbear.org * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react'; export default function Avatar({ name, color, avatarUrl, bonusPoints = 0 }) { const isRed = 'red' === color; const initials = (name || '?').slice(0, 2).toUpperCase(); const gradient = isRed ? 'linear-gradient(135deg, rgba(173,10,5,0.6) 0%, rgba(246,125,82,0.4) 100%)' : 'linear-gradient(135deg, rgba(35,111,135,0.6) 0%, rgba(41,128,185,0.4) 100%)'; const glow = isRed ? '0 0 0 3px rgba(173,10,5,0.2), 0 0 28px rgba(173,10,5,0.35)' : '0 0 0 3px rgba(35,111,135,0.2), 0 0 28px rgba(35,111,135,0.35)'; const border = isRed ? 'rgba(173,10,5,0.5)' : 'rgba(35,111,135,0.5)'; const textColor = isRed ? '#f67d52' : '#95cff5'; return (