1
1
<script setup>
2
2
import { computed , defineProps } from ' vue'
3
3
import { VTIconGitHub , VTIconTwitter } from ' @vue/theme'
4
+ import IconCode from ' ./IconCode.vue'
4
5
5
6
const props = defineProps ({
6
7
profile: {
@@ -32,16 +33,24 @@ const imageAlt = computed(() => {
32
33
<span v-if =" profile.company" >@ {{ profile.company }}</span >
33
34
</p >
34
35
<div class =" member-details" >
35
- <h4 v-if =" profile.projectList.length > 0" class =" sr-only" >Projects</h4 >
36
- <ul v-if =" profile.projectList.length > 0" class =" member-language-list" >
37
- <li
38
- v-for =" project in profile.projectList"
39
- :key =" `${profile.name}-project-${project}`"
40
- class =" member-language"
36
+ <div class =" member-project-wrapper" >
37
+ <h4 v-if =" profile.projectList.length > 0" class =" sr-only" >
38
+ Projects
39
+ </h4 >
40
+ <IconCode />
41
+ <ul
42
+ v-if =" profile.projectList.length > 0"
43
+ class =" member-language-list"
41
44
>
42
- <a :href =" project.url" >{{ project.label }}</a >
43
- </li >
44
- </ul >
45
+ <li
46
+ v-for =" project in profile.projectList"
47
+ :key =" `${profile.name}-project-${project}`"
48
+ class =" member-language"
49
+ >
50
+ <a :href =" project.url" >{{ project.label }}</a >
51
+ </li >
52
+ </ul >
53
+ </div >
45
54
<address >{{ profile.location.label }}</address >
46
55
<h4 class =" sr-only" >Languages</h4 >
47
56
<ul class =" member-language-list" >
@@ -115,6 +124,9 @@ const imageAlt = computed(() => {
115
124
.member-language {
116
125
margin-right : 34px ;
117
126
}
127
+ .member-language :first-child {
128
+ margin-left : 10px ;
129
+ }
118
130
119
131
.member-language :first-child :before {
120
132
display : none ;
@@ -132,6 +144,11 @@ const imageAlt = computed(() => {
132
144
border-radius : 50% ;
133
145
}
134
146
147
+ .member-project-wrapper {
148
+ display : flex ;
149
+ align-items : center ;
150
+ }
151
+
135
152
.member-social-icon {
136
153
width : 24px ;
137
154
height : 24px ;
0 commit comments