Skip to content

Commit b8db4df

Browse files
authored
Merge pull request #86 from jordanopensource/patch/clickable-github-organization
Add organization github profile url to organization card
2 parents 788a6cf + d0dcdcb commit b8db4df

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

components/OrganizationCard.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@
99
<div class="block w-full pl-2 lg:px-3 mt-8 lg:mt-12">
1010
<div class="flex flex-col">
1111
<h3 class="full-name">{{ name }}</h3>
12-
<p class="user-name">{{ username }}</p>
12+
<div>
13+
<a :href="profileUrl" target="_blank" class="username-container">
14+
<img
15+
class="h-5 pr-1"
16+
src="~assets/images/footer/icon-github.svg"
17+
alt="Github Account"
18+
width="auto"
19+
height="20"
20+
loading="lazy"
21+
/>
22+
{{ username }}</a
23+
>
24+
</div>
1325
</div>
1426
</div>
1527
<div class="self-center">
@@ -40,6 +52,7 @@ export default {
4052
repositoriesNumber: { type: Number, default: 0 },
4153
repositoriesStars: { type: Number, required: true },
4254
membersCount: { type: Number, required: true },
55+
profileUrl: { type: String, default: '#' },
4356
imageUrl: { type: String, required: true },
4457
rank: { type: Number, required: true, default: 0 },
4558
},
@@ -63,9 +76,9 @@ export default {
6376
@apply text-sm font-semibold lg:text-lg;
6477
}
6578
66-
.user-name {
79+
.username-container {
6780
font-family: 'IBM Mono';
68-
@apply text-xs lg:text-sm font-light;
81+
@apply flex text-xs lg:text-sm font-light items-center pb-2;
6982
}
7083
7184
.has-border {

components/Organizations.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
:repositories-stars="org.repositories_stars_count"
1919
:repositories-number="org.repositories_count"
2020
:members-count="org.members_count"
21+
:profile-url="org.profile_url"
2122
:rank="org.currentRank"
2223
/>
2324
</div>

0 commit comments

Comments
 (0)