Skip to content

feat: add Avatar/Profile Image component (#431)#450

Open
abrak01 wants to merge 1 commit into
Web3Novalabs:mainfrom
abrak01:feat/avatar-component-431
Open

feat: add Avatar/Profile Image component (#431)#450
abrak01 wants to merge 1 commit into
Web3Novalabs:mainfrom
abrak01:feat/avatar-component-431

Conversation

@abrak01
Copy link
Copy Markdown

@abrak01 abrak01 commented Apr 28, 2026

  • Displays user avatar image from URL

  • Fallback to generated initials when no image or on error

  • Size variants: sm, md, lg

  • Loading skeleton state with animate-pulse

  • Accessible role/aria-label on all states

  • Mobile responsive via Tailwind CSS

    What changed

    • nevo_frontend/components/Avatar.tsx — new reusable Avatar component
    • nevo_frontend/components/index.ts — exports Avatar

    How it works

    • Renders a user image from a URL; falls back to generated initials on error or
      when no src is provided
    • Shows a skeleton pulse animation while the image loads
    • Three size variants: sm (32px), md (40px), lg (56px)
    • Accessible role="img" and aria-label on all render states

    Checklist

    • Displays user avatar image
    • Fallback to initials if no image / on error
    • Size variants: sm, md, lg
    • Loading skeleton state
    • Accessible alt text
    • Mobile responsive
    • Build succeeds (npm run build ✓)

Closes #431

- Displays user avatar image from URL
- Fallback to generated initials when no image or on error
- Size variants: sm, md, lg
- Loading skeleton state with animate-pulse
- Accessible role/aria-label on all states
- Mobile responsive via Tailwind CSS
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 28, 2026

@abrak01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Avatar/Profile Image component

1 participant