2021-01-22 06:24:50 +08:00
|
|
|
<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>
|
2021-01-22 06:24:50 +08:00
|
|
|
</v-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'nuxt-property-decorator';
|
2021-01-28 14:36:47 +08:00
|
|
|
import { Sponsor } from 'hangar-api';
|
2021-02-13 19:34:36 +08:00
|
|
|
import { Prop } from 'vue-property-decorator';
|
2021-01-22 06:24:50 +08:00
|
|
|
|
|
|
|
@Component
|
2021-01-28 14:36:47 +08:00
|
|
|
export default class HangarSponsor extends Vue {
|
2021-02-13 19:34:36 +08:00
|
|
|
@Prop({ required: true })
|
|
|
|
sponsor!: Sponsor;
|
2021-01-22 06:24:50 +08:00
|
|
|
}
|
|
|
|
</script>
|
2021-02-13 19:34:36 +08:00
|
|
|
|
|
|
|
<style lang="scss" scoped></style>
|