feat: webcore/old-web visual redesign
This commit is contained in:
@@ -23,16 +23,15 @@ export default function Avatar({ name, seed, size = 'md', online = false, classN
|
||||
return (
|
||||
<span className={`relative inline-flex shrink-0 ${className}`}>
|
||||
<span
|
||||
className={`inline-flex items-center justify-center rounded-full font-semibold text-white/95 shadow-inner ring-1 ring-white/10 ${SIZE_CLASSES[size]}`}
|
||||
style={{ backgroundImage: `linear-gradient(145deg, ${background}, color-mix(in srgb, ${background} 62%, #000))` }}
|
||||
className={`bevel pixelated inline-flex items-center justify-center font-bold text-white ${SIZE_CLASSES[size]}`}
|
||||
style={{ backgroundColor: background, textShadow: '1px 1px 0 rgba(0,0,0,0.6)' }}
|
||||
aria-hidden="true"
|
||||
>
|
||||
{initials({ display_name: name, username: name })}
|
||||
</span>
|
||||
{online && (
|
||||
<span
|
||||
className="absolute -right-0.5 -bottom-0.5 rounded-full border-2 border-panel bg-online"
|
||||
style={{ width: '30%', height: '30%', minWidth: 9, minHeight: 9 }}
|
||||
className="blink absolute -right-1 -bottom-1 h-3 w-3 border border-black bg-online"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
)}
|
||||
@@ -52,8 +51,8 @@ export function GroupAvatar({ name, seed, size = 'md', className = '' }: GroupAv
|
||||
return (
|
||||
<span className={`relative inline-flex shrink-0 ${className}`}>
|
||||
<span
|
||||
className={`inline-flex items-center justify-center rounded-full text-white/95 shadow-inner ring-1 ring-white/10 ${SIZE_CLASSES[size]}`}
|
||||
style={{ backgroundImage: `linear-gradient(145deg, ${background}, color-mix(in srgb, ${background} 62%, #000))` }}
|
||||
className={`bevel pixelated inline-flex items-center justify-center text-white ${SIZE_CLASSES[size]}`}
|
||||
style={{ backgroundColor: background, textShadow: '1px 1px 0 rgba(0,0,0,0.6)' }}
|
||||
aria-hidden="true"
|
||||
title={name}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user