2020-02-16 18:30:00 +00:00
|
|
|
<template>
|
2020-03-16 18:09:10 +00:00
|
|
|
<ft-card class="relative watchVideoInfo">
|
2020-02-16 18:30:00 +00:00
|
|
|
<p
|
|
|
|
class="videoTitle"
|
|
|
|
>
|
|
|
|
{{ title }}
|
|
|
|
</p>
|
|
|
|
<div
|
|
|
|
class="channelInformation"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="channelThumbnail"
|
|
|
|
class="channelThumbnail"
|
|
|
|
@click="goToChannel"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="channelName"
|
|
|
|
@click="goToChannel"
|
|
|
|
>
|
|
|
|
{{ channelName }}
|
|
|
|
</span>
|
|
|
|
<ft-button
|
|
|
|
:label="subscribedText"
|
|
|
|
class="subscribeButton"
|
|
|
|
background-color="var(--primary-color)"
|
|
|
|
@click="handleSubscription"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<ft-flex-box class="videoOptions">
|
2020-02-18 20:59:01 +00:00
|
|
|
<ft-button
|
|
|
|
label="Toggle Theatre Mode"
|
|
|
|
class="theatreModeButton"
|
|
|
|
@click="$emit('theatreMode')"
|
|
|
|
/>
|
2020-02-16 18:30:00 +00:00
|
|
|
<ft-list-dropdown
|
|
|
|
:title="formatTypeLabel"
|
|
|
|
:label-names="formatTypeNames"
|
|
|
|
:label-values="formatTypeValues"
|
|
|
|
class="formatTypeDropdown"
|
2020-02-19 03:31:10 +00:00
|
|
|
@click="handleFormatChange"
|
2020-02-16 18:30:00 +00:00
|
|
|
/>
|
|
|
|
<ft-list-dropdown
|
|
|
|
:title="shareLabel"
|
|
|
|
:label-names="shareNames"
|
|
|
|
:label-values="shareValues"
|
|
|
|
class="shareDropdown"
|
|
|
|
@click="handleShare"
|
|
|
|
/>
|
|
|
|
</ft-flex-box>
|
|
|
|
<p class="viewCount">
|
|
|
|
{{ parsedViewCount }}
|
|
|
|
</p>
|
|
|
|
<div class="likeBarContainer">
|
|
|
|
<div
|
|
|
|
class="likeBar"
|
|
|
|
:style="{ width: likePercentageRatio + '%' }"
|
|
|
|
/>
|
|
|
|
<div class="dislikeBar" />
|
|
|
|
</div>
|
|
|
|
<p class="likeCountContainer">
|
|
|
|
<font-awesome-icon
|
|
|
|
icon="thumbs-up"
|
|
|
|
/>
|
|
|
|
{{ likeCount }}
|
|
|
|
|
|
|
|
<font-awesome-icon
|
|
|
|
icon="thumbs-down"
|
|
|
|
/>
|
|
|
|
{{ dislikeCount }}
|
|
|
|
</p>
|
|
|
|
</ft-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./watch-video-info.js" />
|
|
|
|
<style scoped src="./watch-video-info.css" />
|