Add channel credits

This commit is contained in:
Sam Carlton 2020-12-26 19:55:49 -06:00
parent d8f0c8b486
commit d6aaafea03
4 changed files with 62 additions and 5 deletions

View file

@ -0,0 +1,34 @@
<template>
<div
v-if="video.channel.id !== myChannelId"
class="channel-credit"
>
<LinkButton
:href="`https://www.youtube.com/channel/${video.channel.id}`"
target="_blank"
>Subscribe to {{ video.channel.name }}</LinkButton>
</div>
</template>
<script>
import LinkButton from '~/components/link-button.vue'
export default {
components: {
LinkButton
},
props: {
video: {
type: Object,
required: true
}
},
data: function () {
return {
myChannelId: 'UCB3jOb5QVjX7lYecvyCoTqQ'
}
}
}
</script>