Skip to content

Commit

Permalink
we should make this use the api to fetch avatar pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsderp authored Mar 6, 2024
1 parent d7cbdf9 commit 8d700ac
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/avatar/avatar.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const user = {
name: 'Me_rudy',
imageUrl: 'https://trampoline.turbowarp.org/avatars/by-username/Mr_rudy',
imageSize: 90,
};

export default function Profile() {
return (
<>
<h1>{user.name}</h1>
<img
className="avatar"
src={user.imageUrl}
alt={'Avatar of ' + user.name}
style={{
width: user.imageSize,
height: user.imageSize
}}
/>
</>
);
}

0 comments on commit 8d700ac

Please sign in to comment.