Skip to content

Commit

Permalink
Updated the html content
Browse files Browse the repository at this point in the history
  • Loading branch information
ritankarsaha committed Nov 2, 2024
1 parent afdac69 commit 59f3763
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<div class="profile-box">
<img class="profile-img" src="{{ avatar_url }}" />
<p class="profile-username">{{ login }}</p>
<p class="profile-contributions">{{ contributions }} contributions</p>
<img
class="profile-img"
[src]="avatar_url || 'path/to/default-avatar.jpg'"
alt="{{ login }}'s profile picture"
/>
<p class="profile-username">{{ login || 'Unknown User' }}</p>
<p class="profile-contributions">{{ contributions || 0 }} contributions</p>

<div class="profile-info">
<p>{{ followers }} followers</p>
<p>{{ following }} followings</p>
<p>{{ followers || 0 }} followers</p>
<p>{{ following || 0 }} followings</p>
</div>

<div class="profile-github">
<div class="github-icon">
<svg
Expand Down Expand Up @@ -37,9 +43,8 @@
<a
target="_blank"
class="github-username"
href="https://github.com/{{ login }}"
>
{{ login }}</a
[href]="'https://github.com/' + login"
>{{ login }}</a
>
</div>
</div>
Expand Down

0 comments on commit 59f3763

Please sign in to comment.