File tree Expand file tree Collapse file tree 2 files changed +47
-8
lines changed Expand file tree Collapse file tree 2 files changed +47
-8
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,20 @@ const imageAlt = computed(() => {
31
31
{{ profile.title }}
32
32
<span v-if =" profile.company" >@ {{ profile.company }}</span >
33
33
</p >
34
- <address >{{ profile.location.label }}</address >
35
- <ul >
36
- <li v-for =" language in profile.languageList" >
37
- {{ language }}
38
- </li >
39
- </ul >
40
- <a :href =" profile.website.url" >{{ profile.website.label }}</a >
34
+ <div class =" member-details" >
35
+ <address >{{ profile.location.label }}</address >
36
+ <h4 class =" sr-only" >Languages</h4 >
37
+ <ul class =" member-language-list" >
38
+ <li
39
+ v-for =" language in profile.languageList"
40
+ :key =" `${profile.name}-language-${language}`"
41
+ class =" member-language"
42
+ >
43
+ {{ language }}
44
+ </li >
45
+ </ul >
46
+ <a :href =" profile.website.url" >{{ profile.website.label }}</a >
47
+ </div >
41
48
<ul class =" member-social-list" >
42
49
<li
43
50
v-for =" (handle, platform) in profile.social"
@@ -62,6 +69,17 @@ const imageAlt = computed(() => {
62
69
</template >
63
70
64
71
<style scoped>
72
+ .sr-only {
73
+ position : absolute ;
74
+ width : 1px ;
75
+ height : 1px ;
76
+ padding : 0 ;
77
+ margin : -1px ;
78
+ overflow : hidden ;
79
+ clip : rect (0 , 0 , 0 , 0 );
80
+ border : 0 ;
81
+ }
82
+
65
83
.team-card {
66
84
--grid-column : 32px ;
67
85
display : grid ;
@@ -77,6 +95,27 @@ const imageAlt = computed(() => {
77
95
margin : 0 ;
78
96
}
79
97
98
+ .member-details {
99
+ display : grid ;
100
+ grid-row-templates : repeat (4 , 1fr );
101
+ grid-row-gap : 4px ;
102
+ margin : 20px 0 ;
103
+ }
104
+
105
+ .member-language {
106
+ margin-right : 34px ;
107
+ }
108
+
109
+ .member-language :first-child :before {
110
+ display : none ;
111
+ }
112
+
113
+ .member-language-list {
114
+ margin : 0 ;
115
+ padding : 0 ;
116
+ display : flex ;
117
+ }
118
+
80
119
.member-profile-image {
81
120
width : 80px ;
82
121
height : 80px ;
Original file line number Diff line number Diff line change 7
7
"location" : {
8
8
"label" : " New Jersey, NJ, USA"
9
9
},
10
- "languageList" : [" Chinese " , " English" ],
10
+ "languageList" : [" 中文 " , " English" ],
11
11
"website" : {
12
12
"label" : " patreon.com/evanyou" ,
13
13
"url" : " https://www.patreon.com/evanyou"
You can’t perform that action at this time.
0 commit comments