Skip to content

Commit d0b1702

Browse files
committed
feature: add stlyes for title and image
1 parent 285bfa9 commit d0b1702

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/.vitepress/components/TeamCard.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ const imageAlt = computed(() => {
1919

2020
<template>
2121
<div class="team-card">
22-
<img :src="`../../about/images/${imageFileName}`" :alt="imageAlt" />
22+
<img
23+
:src="`../../about/images/${imageFileName}`"
24+
:alt="imageAlt"
25+
class="member-profile-image"
26+
/>
2327
<section>
2428
<h3 class="member-name">{{ profile.name }}</h3>
2529
<p>
@@ -51,7 +55,7 @@ const imageAlt = computed(() => {
5155
.team-card {
5256
--grid-column: 32px;
5357
display: grid;
54-
grid-template-columns: var(--grid-column) 1fr;
58+
grid-template-columns: 80px 1fr;
5559
grid-column-gap: var(--grid-column);
5660
margin-bottom: calc(var(--grid-column) / 2);
5761
padding: var(--grid-column);
@@ -60,6 +64,12 @@ const imageAlt = computed(() => {
6064
}
6165
6266
.team-card .member-name {
63-
margin-top: 0;
67+
margin: 0;
68+
}
69+
70+
.member-profile-image {
71+
width: 80px;
72+
height: 80px;
73+
border-radius: 50%;
6474
}
6575
</style>

0 commit comments

Comments
 (0)