explorer-app/components/Project/ProjectOpenessTeamMembers.vue

76 lines
1.5 KiB
Vue
Raw Permalink Normal View History

2023-12-19 18:43:42 +01:00
<script setup lang="ts">
const props = defineProps<{
members: {
name?: string
2023-12-19 18:43:42 +01:00
role?: string
link?: string
}[] | undefined
}>()
</script>
<template>
<div>
<h3
text="14px sm:16px app-text-grey"
leading-24px
>
2023-12-19 18:43:42 +01:00
{{ 'Team members' }}
</h3>
<div
grid
grid-cols-1
gap-16px
mt-12px
sm:grid-cols-2
md:grid-cols-3
lg:grid-cols-4
>
2023-12-19 18:43:42 +01:00
<template v-if="props.members?.length">
<template
v-for="member in members"
:key="member.name"
>
2024-10-03 15:55:54 +02:00
<NuxtLink
:to="member.link"
target="_blank"
flex
2024-09-12 08:41:48 +02:00
items-center
gap-12px
>
<div
flex
items-center
justify-center
text-black
w="40px lg:48px"
h="40px lg:48px"
rounded-full
bg-app-bg-team-grey
>
<div
i-heroicons-solid-user
text-24px
/>
2024-09-12 08:41:48 +02:00
</div>
<div
flex
flex-col
>
<span
text="14px sm:16px"
font-700
>{{ member.name }}</span>
2023-12-19 18:43:42 +01:00
</div>
2024-10-03 15:55:54 +02:00
</NuxtLink>
2023-12-19 18:43:42 +01:00
</template>
</template>
<template v-else>
<span
text-14px
opacity-50
>{{ 'N/A' }}</span>
2023-12-19 18:43:42 +01:00
</template>
</div>
</div>
</template>