Skip to content

Commit 7797d7d

Browse files
committed
feature: add basic card layout styles
1 parent 03fc419 commit 7797d7d

File tree

1 file changed

+39
-25
lines changed

1 file changed

+39
-25
lines changed

src/.vitepress/components/TeamCard.vue

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,45 @@ const imageAlt = computed(() => {
2020
<template>
2121
<div class="team-card">
2222
<img :src="`../../about/images/${imageFileName}`" :alt="imageAlt" />
23-
<p>{{ imageFileName }}</p>
24-
<h3>{{ profile.name }}</h3>
25-
<p>
26-
{{ profile.title }}
27-
<span v-if="profile.company">@ {{ profile.company }}</span>
28-
</p>
29-
<address>{{ profile.location.label }}</address>
30-
<ul>
31-
<li v-for="language in profile.languageList">
32-
{{ language }}
33-
</li>
34-
</ul>
35-
<a :href="profile.website.url">{{ profile.website.label }}</a>
36-
<ul>
37-
<li
38-
v-for="(handle, platform) in profile.social"
39-
:key="`${platform}-${handle}`"
40-
>
41-
<a :href="`https://www.${platform}.com/${handle}`">
42-
{{ platform }}: {{ handle }}
43-
</a>
44-
</li>
45-
</ul>
46-
<pre>{{ profile }}</pre>
23+
<section>
24+
<h3 class="member-name">{{ profile.name }}</h3>
25+
<p>
26+
{{ profile.title }}
27+
<span v-if="profile.company">@ {{ profile.company }}</span>
28+
</p>
29+
<address>{{ profile.location.label }}</address>
30+
<ul>
31+
<li v-for="language in profile.languageList">
32+
{{ language }}
33+
</li>
34+
</ul>
35+
<a :href="profile.website.url">{{ profile.website.label }}</a>
36+
<ul>
37+
<li
38+
v-for="(handle, platform) in profile.social"
39+
:key="`${platform}-${handle}`"
40+
>
41+
<a :href="`https://www.${platform}.com/${handle}`">
42+
{{ platform }}: {{ handle }}
43+
</a>
44+
</li>
45+
</ul>
46+
</section>
4747
</div>
4848
</template>
4949

50-
<style></style>
50+
<style scoped>
51+
.team-card {
52+
display: grid;
53+
grid-template-columns: 32px 1fr;
54+
grid-column-gap: 32px;
55+
margin-bottom: 16px;
56+
padding: 32px;
57+
border-radius: 8px;
58+
background-color: #f8f8f8;
59+
}
60+
61+
.team-card .member-name {
62+
margin-top: 0;
63+
}
64+
</style>

0 commit comments

Comments
 (0)