mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 17:39:41 +05:00
refactor: start redesign of user page
This commit is contained in:
parent
68a7117a97
commit
8cf1bb534d
5 changed files with 211 additions and 185 deletions
20
app/components/Profile/Profile.Social.tsx
Normal file
20
app/components/Profile/Profile.Social.tsx
Normal 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>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue