Skip to content

Commit

Permalink
Added Team Entry as Component for nuxt content
Browse files Browse the repository at this point in the history
  • Loading branch information
Mocca101 committed Aug 22, 2023
1 parent 44018ac commit f6c253c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions components/content/TeamEntry.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<template>
<v-card class="my-4 px-2">
<div class="d-flex flex-no-wrap">
<v-avatar v-if="picture && picture !== ''" size="150" color="primary" class="my-2" :image="picture">
<nuxt-img :src="picture" :alt="name + ' profile picture'" />
</v-avatar>
<div class="mx-0 text-left">
<v-card-title>
{{ name }}
</v-card-title>
<v-card-subtitle v-if="role && role !== ''">
{{ role }}
</v-card-subtitle>
<v-card-text>
<ContentSlot :use="$slots.default" unwrap="p" />
</v-card-text>
</div>
</div>
</v-card>
</template>
<script setup lang="ts">
defineProps({
picture: {
type: String,
default: ''
},
name: {
type: String,
default: 'Lorem Ipsum'
},
role: {
type: String,
default: ''
}
});
</script>

0 comments on commit f6c253c

Please sign in to comment.