VueTube/NUXT/pages/channel/index.vue

46 lines
1.5 KiB
Vue
Raw Normal View History

2022-05-05 23:09:28 +00:00
<template>
<div class="d-flex flex-column align-center">
<v-img
height="120"
2022-05-14 04:16:15 +00:00
:src="$store.state.channel.banner"
2022-05-05 23:09:28 +00:00
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" />
2022-05-05 23:09:28 +00:00
</v-avatar>
2022-05-14 04:16:15 +00:00
<h2 class="mt-2">{{ $store.state.channel.title }}</h2>
2022-05-19 19:00:02 +00:00
<v-btn :aria-label="subscribeAlt" class="py-2" text color="primary">
2022-05-14 04:16:15 +00:00
{{ $store.state.channel.subscribe }}
2022-05-05 23:09:28 +00:00
</v-btn>
2022-05-19 19:00:02 +00:00
<div v-if="!$store.state.channel.loading" style="font-size: 0.75rem">
2022-05-14 04:16:15 +00:00
{{ $store.state.channel.subscribers }} &middot;
2022-05-18 21:51:33 +00:00
{{ $store.state.channel.videosCount }}
2022-05-05 23:39:41 +00:00
</div>
2022-05-14 04:16:15 +00:00
<v-card
v-if="!$store.state.channel.loading"
2022-05-14 04:16:15 +00:00
flat
2022-05-14 04:36:56 +00:00
to="/channel/about"
2022-05-19 19:00:02 +00:00
style="font-size: 0.75rem; text-oveflow: ellipsis; overflow: hidden"
2022-05-14 04:16:15 +00:00
class="background background--text text-center px-4"
2022-05-05 23:09:28 +00:00
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
>
2022-05-14 04:16:15 +00:00
{{ $store.state.channel.descriptionPreview }}
2022-05-05 23:39:41 +00:00
<v-icon
class="background--text"
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
>
mdi-chevron-right
</v-icon>
2022-05-14 04:16:15 +00:00
</v-card>
2022-05-05 23:09:28 +00:00
</div>
</template>