Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | 15x 4x 4x 4x 15x 15x 15x | <template>
<section
:aria-labelledby="id"
class="grid grid-cols-[auto_1fr] gap-x-5 gap-y-3 border-t-2 border-inverted pt-6"
>
<UAvatar
:src="author.avatar?.url"
:text="authorInitials"
size="3xl"
aria-hidden="true"
class="size-14 md:size-18"
/>
<div class="self-center">
<p class="text-kicker">
{{ $t("authorCard.kicker") }}
</p>
<h2 :id class="mt-1 font-serif text-h3 text-highlighted">
{{ author.name }}
</h2>
</div>
<div class="col-span-2 md:col-span-1 md:col-start-2">
<p v-if="author.bio" class="font-serif text-base/relaxed text-toned">
{{ author.bio }}
</p>
<UButton
variant="link"
:label="
count === undefined
? $t('authorCard.profile')
: $t('authorCard.profileCount', { count }, count)
"
trailing-icon="i-lucide-arrow-right"
:to
class="mt-2 -ml-3 print:hidden"
/>
</div>
</section>
</template>
<script setup lang="ts">
import type { RouteLocationRaw } from "vue-router";
interface Props {
author: Author;
to: RouteLocationRaw;
count?: number;
}
const props = defineProps<Props>();
const id = useId();
const authorInitials = computed<string>(() => initials(props.author.name));
</script>
|