You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
754 B
38 lines
754 B
<template>
|
|
<div
|
|
class="teacher-bar"
|
|
:class="{ 'teacher-bar--simple': isSimpleLayout }"
|
|
>
|
|
<div
|
|
v-for="user in teachers"
|
|
:key="user.id"
|
|
class="teacher-bar__item"
|
|
>
|
|
<Avatar
|
|
:image="`${user.illustrationUrl}?w=80&h=80&fit=crop`"
|
|
shape="circle"
|
|
/>
|
|
<div
|
|
v-if="isSimpleLayout"
|
|
class="teacher-bar__item-caption"
|
|
>
|
|
<span v-text="user.fullName" />
|
|
<span v-t="'Coach'" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import Avatar from 'primevue/avatar';
|
|
|
|
// eslint-disable-next-line no-undef
|
|
const props = defineProps({
|
|
teachers: {
|
|
required: true,
|
|
type: Array
|
|
}
|
|
});
|
|
|
|
const isSimpleLayout = props.teachers.length < 3;
|
|
</script>
|
|
|