Skip to content

Commit 8f044f8

Browse files
ani-2008DuskyElf
authored andcommitted
implemented issue #3
1 parent 722c6b6 commit 8f044f8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/User.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
interface UserProps {
22
username: string;
33
avatarUrl: string;
4+
githubUrl: string;
45
}
56

67
export default function User(props: UserProps) {
78
return (
8-
<div class="flex items-center space-x-4 rounded p-5 text-2xl transition hover:bg-slate-600">
9+
<a href = {props.githubUrl} target="_blank" class="flex items-center space-x-4 rounded p-5 text-2xl transition hover:bg-slate-600">
910
<img
1011
src={props.avatarUrl}
1112
alt="Discord Profile Picture"
1213
class="h-12 w-12 rounded-full shadow-md shadow-black"
1314
/>
1415
<span class="text font-mono text-slate-200">{props.username}</span>
15-
</div>
16+
</a>
1617
);
1718
}

src/sections/Members.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,35 @@ export default function Members() {
99
<User
1010
username="Thatmagicalcat"
1111
avatarUrl="https://cdn.discordapp.com/avatars/815189874478546954/fba107a0a4978c1e11063386102ba7ff.png?size=1024"
12+
githubUrl="https://github.com/thatmagicalcat"
1213
/>
1314
</li>
1415
<li>
1516
<User
1617
username="Wicks"
1718
avatarUrl="https://cdn.discordapp.com/avatars/1159829981803860009/80e4790205157fa6b4152f07c4f27ecf.png?size=1024"
19+
githubUrl="https://github.com/Wickslynx"
1820
/>
1921
</li>
2022
<li>
2123
<User
2224
username="DuskyElf"
2325
avatarUrl="https://cdn.discordapp.com/avatars/820957214264000513/fed1f113e379ef2b2921afb54b154394.png?size=1024"
26+
githubUrl="https://github.com/DuskyElf"
2427
/>
2528
</li>
2629
<li>
2730
<User
2831
username="ItsCoral"
2932
avatarUrl="https://cdn.discordapp.com/avatars/950347120962064464/460f6977493399d10b689174924db21f.png?size=1024"
33+
githubUrl="https://github.com/ItsCoral0301"
3034
/>
3135
</li>
3236
<li>
3337
<User
3438
username="The master of rick rolls"
3539
avatarUrl="https://cdn.discordapp.com/avatars/950521169432432700/92b68d623d59a2be9650b80999d0e345.png?size=1024"
40+
githubUrl="https://github.com/Diego-evaristo-crtl"
3641
/>
3742
</li>
3843
</ul>

0 commit comments

Comments
 (0)