Skip to content

Commit 177c892

Browse files
committed
fix markup
1 parent 7cb2640 commit 177c892

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

apps/web/app/components/namecard/Namecard.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ const { backgroundColor } = useUserRole()
1616
<template>
1717
<div class="namecard-root">
1818
<NamecardAvatar :user="user" :is-placeholder="isPlaceholder" />
19-
<div class="role" :style="{ '--background-color-role': backgroundColor(user.role ?? 'staff') }">
19+
<div
20+
class="namecard-role"
21+
:style="{ '--background-color-role': backgroundColor(user.role ?? 'staff') }"
22+
>
2023
{{ user.role }}
2124
</div>
22-
<div class="sponsor">
25+
<div class="namecard-sponsor">
2326
<img src="/namecard/support.svg" alt="Supported by Stockmark" />
2427
</div>
2528
</div>
@@ -40,7 +43,7 @@ const { backgroundColor } = useUserRole()
4043
}
4144
}
4245
43-
.role {
46+
.namecard-role {
4447
--background-color-role: color-mix(in srgb, var(--color-vue-blue), #000 20%);
4548
font-size: 1.3125rem;
4649
height: 2.0625rem;
@@ -52,7 +55,7 @@ const { backgroundColor } = useUserRole()
5255
background-color: var(--background-color-role);
5356
}
5457
55-
.sponsor {
58+
.namecard-sponsor {
5659
display: grid;
5760
place-items: center;
5861
height: 3.75rem;

apps/web/app/components/namecard/NamecardAvatar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const COLOR_AVATAR_NAME = {
2323
<img :alt="user.display_name" :src="user.avatar_url" class="avatar-logo" decoding="async" />
2424
</div>
2525
<div class="avatar-name-area">
26-
<h2
26+
<div
2727
class="avatar-name"
2828
:style="{
2929
'--color-avatar-name': isPlaceholder
@@ -32,9 +32,9 @@ const COLOR_AVATAR_NAME = {
3232
}"
3333
>
3434
{{ user.display_name }}
35-
</h2>
35+
</div>
3636
</div>
37-
<div class="avatar-footer">Vue Fes Japan 2024</div>
37+
<small class="avatar-footer">Vue Fes Japan 2024</small>
3838
</div>
3939
</template>
4040

0 commit comments

Comments
 (0)