refactor: start redesign of user page

This commit is contained in:
Kentai Radiquum 2025-04-03 21:07:44 +05:00
parent 68a7117a97
commit 8cf1bb534d
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 211 additions and 185 deletions

View file

@ -0,0 +1,20 @@
interface UserSocialProps {
icon: string;
url?: string;
nickname: string;
color: string;
}
export const UserSocial = ({ nickname, icon, color }: UserSocialProps) => {
return (
<div
className={`border border-[var(--color)] rounded-md`}
style={{ "--color": `#${color}` } as React.CSSProperties}
>
<div className="flex gap-1 items-center px-1.5 py-1">
<span className={`iconify w-6 h-6 bg-[var(--color)] ${icon}`}></span>
<p>{nickname}</p>
</div>
</div>
);
};