Hangar/frontend/components/layouts/Sponsor.vue

25 lines
677 B
Vue
Raw Normal View History

<template>
<v-card>
2021-01-23 05:06:44 +08:00
<v-card-subtitle v-text="$t('hangar.sponsoredBy')"></v-card-subtitle>
2021-02-13 19:34:36 +08:00
<v-card-text v-if="sponsor">
<a :href="sponsor.link">
<v-img :src="sponsor.image" :alt="sponsor.name" :title="sponsor.name" :height="50" contain />
</a>
</v-card-text>
</v-card>
</template>
<script lang="ts">
import { Component, Vue } from 'nuxt-property-decorator';
import { Sponsor } from 'hangar-api';
2021-02-13 19:34:36 +08:00
import { Prop } from 'vue-property-decorator';
@Component
export default class HangarSponsor extends Vue {
2021-02-13 19:34:36 +08:00
@Prop({ required: true })
sponsor!: Sponsor;
}
</script>
2021-02-13 19:34:36 +08:00
<style lang="scss" scoped></style>