File tree Expand file tree Collapse file tree 5 files changed +43
-7
lines changed Expand file tree Collapse file tree 5 files changed +43
-7
lines changed Original file line number Diff line number Diff line change 6
6
},
7
7
"dependencies" : {
8
8
"@vue/repl" : " ^0.4.3" ,
9
- "@vue/theme" : " ^0.1.15 " ,
9
+ "@vue/theme" : " ^0.1.16 " ,
10
10
"vue" : " ^3.2.23"
11
11
},
12
12
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export interface Member {
9
9
languages : string [ ]
10
10
website ?: Link
11
11
socials : Socials
12
+ sponsor ?: string
12
13
}
13
14
14
15
export interface Link {
Original file line number Diff line number Diff line change 5
5
VTIconCodePen ,
6
6
VTIconGitHub ,
7
7
VTIconGlobe ,
8
+ VTIconHeart ,
8
9
VTIconLink ,
9
10
VTIconLinkedIn ,
10
11
VTIconMapPin ,
@@ -24,6 +25,10 @@ const avatarUrl = computed(() => {
24
25
25
26
<template >
26
27
<article class =" TeamMember" >
28
+ <VTLink v-if =" member.sponsor" class =" sponsor" :href =" member.sponsor" no-icon >
29
+ <VTIconHeart class =" sponsor-icon" /> Sponsor
30
+ </VTLink >
31
+
27
32
<figure class =" avatar" >
28
33
<img class =" avatar-img" :src =" avatarUrl" :alt =" `${member.name}'s Profile Picture`" >
29
34
</figure >
@@ -142,6 +147,7 @@ const avatarUrl = computed(() => {
142
147
143
148
<style scoped>
144
149
.TeamMember {
150
+ position : relative ;
145
151
background-color : var (--vt-c-bg-soft );
146
152
transition : background-color 0.5s ;
147
153
}
@@ -158,6 +164,33 @@ const avatarUrl = computed(() => {
158
164
}
159
165
}
160
166
167
+ .sponsor {
168
+ position : absolute ;
169
+ top : 16px ;
170
+ right : 16px ;
171
+ display : flex ;
172
+ align-items : center ;
173
+ border : 1px solid #fd1d7c ;
174
+ border-radius : 4px ;
175
+ padding : 4px 8px ;
176
+ font-size : 12px ;
177
+ font-weight : 500 ;
178
+ color : #fd1d7c ;
179
+ transition : color 0.25s , background-color 0.25s ;
180
+ }
181
+
182
+ .sponsor :hover {
183
+ color : var (--vt-c-white );
184
+ background-color : #fd1d7c ;
185
+ }
186
+
187
+ .sponsor-icon {
188
+ margin-right : 6px ;
189
+ width : 14px ;
190
+ height : 14px ;
191
+ fill : currentColor ;
192
+ }
193
+
161
194
.avatar {
162
195
flex-shrink : 0 ;
163
196
padding : 32px 32px 0 ;
Original file line number Diff line number Diff line change 22
22
"socials" : {
23
23
"github" : " yyx990803" ,
24
24
"twitter" : " youyuxi"
25
- }
25
+ },
26
+ "sponsor" : " https://github.com/sponsors/yyx990803"
26
27
},
27
28
{
28
29
"name" : " Ben Hong" ,
478
479
"socials" : {
479
480
"github" : " kiaking" ,
480
481
"twitter" : " KiaKing85"
481
- }
482
+ },
483
+ "sponsor" : " https://github.com/sponsors/kiaking"
482
484
},
483
485
{
484
486
"name" : " Anthony Fu" ,
You can’t perform that action at this time.
0 commit comments