2023-11-12 02:38:15 +01:00
|
|
|
<template>
|
2023-12-24 06:47:17 +01:00
|
|
|
<GNuxtLink :to="member.id === 'crowdin' ? `https://crowdin.com/profile/${member.username}` : `https://github.com/${member.username}`" target="_blank" class="flex items-center p-4 bg-slate-100 hover:bg-slate-200 dark:bg-slate-800 dark:hover:bg-slate-700 rounded-lg">
|
2023-11-12 02:38:15 +01:00
|
|
|
<div class="flex space-x-4 items-center">
|
2023-12-24 06:47:17 +01:00
|
|
|
<img :src="member.id === 'crowdin' ? member.avatar : `https://avatars.githubusercontent.com/u/${member.id}?s=80&v=4`" class="block aspect-square flex-shrink-0 h-10 rounded-full" loading="lazy" />
|
2023-11-12 02:38:15 +01:00
|
|
|
<div>
|
|
|
|
<div class="text-lg">{{ member.name ?? '@' + member.username }}</div>
|
|
|
|
<div v-if="member.name" class="text-sm opacity-80">{{ '@' + member.username }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</GNuxtLink>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import type { MiHubMember } from '@/assets/data/team-members';
|
|
|
|
|
|
|
|
defineProps<{
|
|
|
|
member: MiHubMember;
|
|
|
|
}>();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
</style>
|