VueTube/NUXT/pages/channel/_id.vue

48 lines
1.3 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 primary">
2022-05-14 04:16:15 +00:00
<img :src="$store.state.channel.avatar" />
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-05 23:09:28 +00:00
<v-btn
:aria-label="subscribeAlt"
class="mt-2"
text
color="primary"
style="height: 1rem"
>
2022-05-14 04:16:15 +00:00
{{ $store.state.channel.subscribe }}
2022-05-05 23:09:28 +00:00
</v-btn>
2022-05-05 23:39:41 +00:00
<div style="font-size: 0.75rem" class="mt-2">
2022-05-14 04:16:15 +00:00
{{ $store.state.channel.subscribers }} &middot;
{{ $store.state.channel.videos }}
2022-05-05 23:39:41 +00:00
</div>
2022-05-14 04:16:15 +00:00
<v-card
flat
to="/channel/about?text=AboutDescription"
style="
font-size: 0.75rem;
height: 2rem;
text-oveflow: ellipsis;
overflow: hidden;
"
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>