From 907e03979e780b56d1836668282b57d6a4c83287 Mon Sep 17 00:00:00 2001 From: Osama Mabkhot <99215291+O2sa@users.noreply.github.com> Date: Sun, 11 Oct 2026 03:59:20 +0300 Subject: [PATCH 1/4] feat(profile): enhance developer avatar with responsive layout and visual accents - Add responsive centered column layout on mobile and row layout on desktop - Add ambient glow, gradient halo ring, and floating score badge to avatar - Wrap avatar in accessible GitHub profile link with hover micro-interaction - Support priority prop on Avatar and align skeleton to prevent layout shift --- src/components/layout/avatar.tsx | 11 +++- .../components/user-profile-client.tsx | 51 +++++++++++++++---- .../components/user-profile-skeleton.tsx | 6 +-- 3 files changed, 54 insertions(+), 14 deletions(-) diff --git a/src/components/layout/avatar.tsx b/src/components/layout/avatar.tsx index 8c2769e..7169598 100644 --- a/src/components/layout/avatar.tsx +++ b/src/components/layout/avatar.tsx @@ -6,6 +6,7 @@ type AvatarProps = { alt: string; size?: number; unoptimized?: boolean; + priority?: boolean; className?: string; }; @@ -13,7 +14,14 @@ type AvatarProps = { * Reusable avatar image component. * */ -export function Avatar({ src, alt, size = 32, unoptimized = true, className }: AvatarProps) { +export function Avatar({ + src, + alt, + size = 32, + unoptimized = true, + priority = false, + className, +}: AvatarProps) { return ( ); diff --git a/src/features/developer/components/user-profile-client.tsx b/src/features/developer/components/user-profile-client.tsx index 5757710..7760771 100644 --- a/src/features/developer/components/user-profile-client.tsx +++ b/src/features/developer/components/user-profile-client.tsx @@ -232,18 +232,49 @@ export function UserProfileClient({ user, location, countryParam }: Props) { {/* ── Header Profile Hero Section ────────────────────────────── */}
-
- +
+ {/* Interactive Avatar with Ambient Glow & Floating Score Badge */} + + {/* Ambient Glow */} +
diff --git a/src/features/developer/components/user-profile-skeleton.tsx b/src/features/developer/components/user-profile-skeleton.tsx index bd3fbab..ee62300 100644 --- a/src/features/developer/components/user-profile-skeleton.tsx +++ b/src/features/developer/components/user-profile-skeleton.tsx @@ -16,9 +16,12 @@ export function UserProfileSkeleton() { -
- - +
+ +
+ + +