0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-25 20:55:17 +00:00
VueTube/NUXT/pages/channel/index.vue
2022-05-19 15:00:02 -04:00

45 lines
1.5 KiB
Vue

<template>
<div class="d-flex flex-column align-center">
<v-img
height="120"
:src="$store.state.channel.banner"
class="background"
:class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'"
></v-img>
<v-avatar
size="60"
class="mt-2 background"
:class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'"
>
<img
v-if="!$store.state.channel.loading"
:src="$store.state.channel.avatar"
/>
<v-progress-circular v-else indeterminate color="primary" size="60" />
</v-avatar>
<h2 class="mt-2">{{ $store.state.channel.title }}</h2>
<v-btn :aria-label="subscribeAlt" class="py-2" text color="primary">
{{ $store.state.channel.subscribe }}
</v-btn>
<div v-if="!$store.state.channel.loading" style="font-size: 0.75rem">
{{ $store.state.channel.subscribers }} &middot;
{{ $store.state.channel.videosCount }}
</div>
<v-card
v-if="!$store.state.channel.loading"
flat
to="/channel/about"
style="font-size: 0.75rem; text-oveflow: ellipsis; overflow: hidden"
class="background background--text text-center px-4"
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
>
{{ $store.state.channel.descriptionPreview }}
<v-icon
class="background--text"
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
>
mdi-chevron-right
</v-icon>
</v-card>
</div>
</template>