This commit is contained in:
2026-02-07 19:17:55 +01:00
parent 629c3afef0
commit 9d9f0f2f32
2 changed files with 65 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import Rank from "@/components/app/Rank";
import { Badge } from "@/components/ui/badge";
import { Card, CardContent } from "@/components/ui/card";
export default function ProfileCard({
user,
}: {
user: { username: string; rank: number };
}) {
return (
<Card className="relative w-full h-full overflow-hidden">
<div className="absolute inset-0 bg-linear-to-r from-primary/10 via-transparent to-transparent" />
<CardContent className="relative flex flex-row gap-6 w-full h-full">
{/* Avatar */}
<div className="relative shrink-0 w-1/3 h-full flex items-center justify-center">
<img
src="http://github.com/selimaj-dev.png"
alt="Img"
className="rounded-2xl aspect-square max-h-full w-auto object-contain"
/>
<div className="absolute -bottom-2 -right-2 w-8 h-8">
<Rank rank={user.rank} />
</div>
</div>
{/* User Info */}
<div className="flex-1 flex flex-col justify-center w-full">
<h1 className="text-lg font-bold mb-2">{user.username}</h1>
<Badge>WR Holder</Badge>
</div>
</CardContent>
</Card>
);
}