2020-02-16 18:30:00 +00:00
|
|
|
<template>
|
2020-06-04 14:30:01 +00:00
|
|
|
<ft-card class="watchVideoInfo">
|
|
|
|
<div>
|
|
|
|
<p
|
|
|
|
class="videoTitle"
|
2020-02-16 18:30:00 +00:00
|
|
|
>
|
2020-06-04 14:30:01 +00:00
|
|
|
{{ title }}
|
|
|
|
</p>
|
|
|
|
<div
|
|
|
|
class="channelInformation"
|
2020-02-16 18:30:00 +00:00
|
|
|
>
|
2020-06-04 14:30:01 +00:00
|
|
|
<div
|
|
|
|
class="profileRow"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<img
|
|
|
|
:src="channelThumbnail"
|
|
|
|
class="channelThumbnail"
|
|
|
|
@click="goToChannel"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="channelName"
|
|
|
|
@click="goToChannel"
|
|
|
|
>
|
|
|
|
{{ channelName }}
|
|
|
|
</div>
|
|
|
|
<ft-button
|
|
|
|
:label="subscribedText"
|
|
|
|
class="subscribeButton"
|
|
|
|
background-color="var(--primary-color)"
|
|
|
|
@click="handleSubscription"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-16 18:30:00 +00:00
|
|
|
</div>
|
2020-06-04 14:30:01 +00:00
|
|
|
<div>
|
|
|
|
<p class="viewCount">
|
|
|
|
{{ parsedViewCount }}
|
|
|
|
</p>
|
2020-06-16 16:11:23 +00:00
|
|
|
<div class="likeBarContainer">
|
2020-06-04 14:30:01 +00:00
|
|
|
<div
|
2020-06-16 16:11:23 +00:00
|
|
|
class="likeSection"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="likeBar"
|
|
|
|
:style="{ background: `linear-gradient(to right, var(--accent-color) ${likePercentageRatio}%, #9E9E9E ${likePercentageRatio}%` }"
|
|
|
|
></div>
|
|
|
|
<div class="likeCount">👍 {{ likeCount }}</div>
|
|
|
|
<div class="dislikeCount">{{ dislikeCount }} 👎</div>
|
2020-06-04 14:30:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-16 16:11:23 +00:00
|
|
|
<div class="videoOptions">
|
|
|
|
<ft-icon-button
|
|
|
|
title="Toggle Theatre Mode"
|
|
|
|
class="theatreModeButton option"
|
|
|
|
icon="expand-alt"
|
|
|
|
theme="secondary"
|
|
|
|
@click="$emit('theatreMode')"
|
|
|
|
/>
|
|
|
|
<ft-icon-button
|
|
|
|
title="Change Video Formats"
|
|
|
|
class="option"
|
|
|
|
theme="secondary"
|
|
|
|
icon="file-video"
|
|
|
|
:dropdown-names="formatTypeNames"
|
|
|
|
:dropdown-values="formatTypeValues"
|
|
|
|
@click="handleFormatChange"
|
|
|
|
/>
|
|
|
|
<ft-icon-button
|
|
|
|
title="Share Video"
|
|
|
|
class="option"
|
|
|
|
theme="secondary"
|
|
|
|
icon="share-alt"
|
|
|
|
:dropdown-names="shareNames"
|
|
|
|
:dropdown-values="shareValues"
|
|
|
|
@click="handleShare"
|
|
|
|
/>
|
|
|
|
</div>
|
2020-02-16 18:30:00 +00:00
|
|
|
</div>
|
|
|
|
</ft-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./watch-video-info.js" />
|
2020-06-04 14:30:01 +00:00
|
|
|
<style scoped src="./watch-video-info.sass" lang="sass" />
|