adrema/resources/js/views/member/AgeGroups.vue

42 lines
1020 B
Vue
Raw Normal View History

2022-11-24 00:05:56 +01:00
<template>
<div class="flex gap-1 justify-center items-center">
<svg-sprite
2022-11-24 00:59:40 +01:00
class="flex-none"
2022-11-24 00:05:56 +01:00
v-if="member.is_leader"
2022-11-24 00:59:40 +01:00
:class="[ageColors.leiter, iconClass]"
2022-11-24 00:05:56 +01:00
src="lilie"
></svg-sprite>
<svg-sprite
2022-11-24 00:59:40 +01:00
class="flex-none"
2022-11-24 00:05:56 +01:00
v-if="member.age_group_icon"
2022-11-24 00:59:40 +01:00
:class="[ageColors[member.age_group_icon], iconClass]"
2022-11-24 00:05:56 +01:00
src="lilie"
></svg-sprite>
</div>
</template>
<script>
export default {
data: function () {
return {
ageColors: {
biber: 'text-biber',
woelfling: 'text-woelfling',
jungpfadfinder: 'text-jungpfadfinder',
pfadfinder: 'text-pfadfinder',
rover: 'text-rover',
leiter: 'text-leiter',
},
};
},
props: {
2022-11-24 00:59:40 +01:00
iconClass: {
default: 'w-3 h-3',
},
2022-11-24 00:05:56 +01:00
member: {
required: true,
},
},
};
</script>