docs: display cta avatars client only

This commit is contained in:
Benjamin Canac
2023-09-07 15:56:51 +02:00
parent 98e1d1b90e
commit 02bbc9b9cf

View File

@@ -116,28 +116,30 @@
</template> </template>
<template #links> <template #links>
<UAvatarGroup :max="xlAndLarger ? 13 : lgAndLarger ? 10 : mdAndLarger ? 16 : 8" size="md" class="flex-wrap-reverse [&_span:first-child]:text-xs justify-center"> <ClientOnly>
<UTooltip <UAvatarGroup :max="xlAndLarger ? 13 : lgAndLarger ? 10 : mdAndLarger ? 16 : 8" size="md" class="flex-wrap-reverse [&_span:first-child]:text-xs justify-center">
v-for="(contributor, index) of module.contributors" <UTooltip
:key="index" v-for="(contributor, index) of module.contributors"
:text="contributor.username" :key="index"
class="rounded-full" :text="contributor.username"
:ui="{ background: 'bg-gray-50 dark:bg-gray-800/50' }" class="rounded-full"
:popper="{ offsetDistance: 16 }" :ui="{ background: 'bg-gray-50 dark:bg-gray-800/50' }"
> :popper="{ offsetDistance: 16 }"
<UAvatar
:alt="contributor.username"
:src="`https://ipx.nuxt.com/s_40x40/gh_avatar/${contributor.username}`"
:srcset="`https://ipx.nuxt.com/s_80x80/gh_avatar/${contributor.username} 2x`"
class="lg:hover:scale-125 lg:hover:ring-2 lg:hover:ring-primary-500 dark:lg:hover:ring-primary-400 transition-transform"
size="md"
> >
<NuxtLink :to="`https://github.com/${contributor.username}`" target="_blank" class="focus:outline-none" tabindex="-1"> <UAvatar
<span class="absolute inset-0" aria-hidden="true" /> :alt="contributor.username"
</NuxtLink> :src="`https://ipx.nuxt.com/s_40x40/gh_avatar/${contributor.username}`"
</UAvatar> :srcset="`https://ipx.nuxt.com/s_80x80/gh_avatar/${contributor.username} 2x`"
</UTooltip> class="lg:hover:scale-125 lg:hover:ring-2 lg:hover:ring-primary-500 dark:lg:hover:ring-primary-400 transition-transform"
</UAvatarGroup> size="md"
>
<NuxtLink :to="`https://github.com/${contributor.username}`" target="_blank" class="focus:outline-none" tabindex="-1">
<span class="absolute inset-0" aria-hidden="true" />
</NuxtLink>
</UAvatar>
</UTooltip>
</UAvatarGroup>
</ClientOnly>
</template> </template>
<div class="flex flex-col sm:flex-row items-center justify-center gap-8 lg:gap-16"> <div class="flex flex-col sm:flex-row items-center justify-center gap-8 lg:gap-16">