Skip to content

Commit a11e882

Browse files
committed
feat(UserCard): make the user avatar clickable to redirect to github profiles
1 parent 610034c commit a11e882

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

components/UserCard.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22
<div class="flex mx-8 h-32 lg:h-40 content-center has-border pb-3">
33
<p class="rank hidden md:block">{{ rank }}.</p>
44
<div class="image-container">
5-
<img class="image" :src="imageUrl" alt="avatar" width="80" height="80" />
6-
<span class="image-filter"></span>
5+
<a :href="profileUrl" target="_blank">
6+
<img
7+
class="image"
8+
:src="imageUrl"
9+
alt="avatar"
10+
width="80"
11+
height="80"
12+
/>
13+
<span class="image-filter"></span>
14+
</a>
715
</div>
816

917
<div class="block w-full pl-2 lg:px-3 mt-6 lg:mt-8">
@@ -81,9 +89,6 @@ export default {
8189
@apply text-sm font-semibold lg:text-lg;
8290
}
8391
84-
.user-name {
85-
}
86-
8792
.has-border {
8893
border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
8994
}

0 commit comments

Comments
 (0)