explorer-app/components/Project/ProjectOpenessTeamMembers.vue

82 lines
1.6 KiB
Vue
Raw 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"
>
<div
flex
2024-09-12 08:41:48 +02:00
items-center
gap-12px
>
2024-09-12 08:41:48 +02:00
<!-- <template v-if="member.link">
<NuxtImg
:src="member.link"
width="48"
height="48"
:alt="member.name"
/>
2024-09-12 08:41:48 +02:00
</template> -->
<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>
</div>
</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>