Skip to content

Commit 45edfdb

Browse files
committed
feature: add code icon
1 parent 02dc632 commit 45edfdb

File tree

2 files changed

+46
-9
lines changed

2 files changed

+46
-9
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<svg
3+
width="16"
4+
height="16"
5+
viewBox="0 0 16 16"
6+
fill="none"
7+
xmlns="http://www.w3.org/2000/svg"
8+
>
9+
<path
10+
d="M10.3333 12.0833C10.1583 12.0833 10.0417 12.025 9.925 11.9083C9.69167 11.675 9.69167 11.325 9.925 11.0917L13.0167 7.99999L9.925 4.90832C9.69167 4.67499 9.69167 4.32499 9.925 4.09166C10.1583 3.85832 10.5083 3.85832 10.7417 4.09166L14.2417 7.59166C14.475 7.82499 14.475 8.17499 14.2417 8.40832L10.7417 11.9083C10.625 12.025 10.5083 12.0833 10.3333 12.0833Z"
11+
fill="#3C3C3C"
12+
fill-opacity="0.6"
13+
/>
14+
<path
15+
d="M5.66683 12.0833C5.49183 12.0833 5.37516 12.025 5.2585 11.9083L1.7585 8.40832C1.52516 8.17499 1.52516 7.82499 1.7585 7.59166L5.2585 4.09166C5.49183 3.85832 5.84183 3.85832 6.07516 4.09166C6.3085 4.32499 6.3085 4.67499 6.07516 4.90832L2.9835 7.99999L6.07516 11.0917C6.3085 11.325 6.3085 11.675 6.07516 11.9083C5.9585 12.025 5.84183 12.0833 5.66683 12.0833Z"
16+
fill="#3C3C3C"
17+
fill-opacity="0.6"
18+
/>
19+
</svg>
20+
</template>

src/.vitepress/components/TeamCard.vue

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup>
22
import { computed, defineProps } from 'vue'
33
import { VTIconGitHub, VTIconTwitter } from '@vue/theme'
4+
import IconCode from './IconCode.vue'
45
56
const props = defineProps({
67
profile: {
@@ -32,16 +33,24 @@ const imageAlt = computed(() => {
3233
<span v-if="profile.company">@ {{ profile.company }}</span>
3334
</p>
3435
<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"
4144
>
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>
4554
<address>{{ profile.location.label }}</address>
4655
<h4 class="sr-only">Languages</h4>
4756
<ul class="member-language-list">
@@ -115,6 +124,9 @@ const imageAlt = computed(() => {
115124
.member-language {
116125
margin-right: 34px;
117126
}
127+
.member-language:first-child {
128+
margin-left: 10px;
129+
}
118130
119131
.member-language:first-child:before {
120132
display: none;
@@ -132,6 +144,11 @@ const imageAlt = computed(() => {
132144
border-radius: 50%;
133145
}
134146
147+
.member-project-wrapper {
148+
display: flex;
149+
align-items: center;
150+
}
151+
135152
.member-social-icon {
136153
width: 24px;
137154
height: 24px;

0 commit comments

Comments
 (0)