feat(WIP): comments front end

This commit is contained in:
Alex 2022-04-14 00:54:06 +12:00
parent 7bf54990c6
commit 786960e2d2
2 changed files with 27 additions and 5 deletions

View File

@ -0,0 +1,3 @@
<template>
<div class="swipeableBottomSheet" :open-state="state ? 1 : 0"></div>
</template>

View File

@ -1,9 +1,6 @@
<template>
<div class="background" id="watch-body">
<div
class="player-container"
style="position: sticky; top: 0; z-index: 696969"
>
<div class="player-container">
<!-- Stock Player -->
<videoPlayer
:vid-src="vidSrc"
@ -135,7 +132,11 @@
</div>
<!-- Comments -->
<div class="comment-container" v-if="loaded && video.commentData">
<div
class="comment-container"
v-if="loaded && video.commentData"
@click="showComments = !showComments"
>
<v-card flat class="background comment-renderer">
<v-text class="comment-count keep-spaces">
<template v-for="text in video.commentData.headerText.runs">
@ -150,6 +151,23 @@
<v-divider />
</div>
<v-dialog
v-model="showComments"
fullscreen
hide-overlay
transition="dialog-bottom-transition"
>
<v-card>
<v-toolbar dark color="background">
<v-btn icon dark @click="showComments = false">
<v-icon>mdi-close</v-icon>
</v-btn>
<v-toolbar-title class="font-weight-bold">Comments</v-toolbar-title>
</v-toolbar>
<v-subheader>Hello World</v-subheader>
</v-card>
</v-dialog>
<!-- Related Videos -->
<div class="loaders" v-if="!loaded">
<v-skeleton-loader
@ -329,6 +347,7 @@ export default {
},
],
showMore: false,
showComments: false,
// share: false,
vidSrc: null,
sources: [],