FreeTube/src/renderer/components/watch-video-info/watch-video-info.vue

88 lines
2.3 KiB
Vue
Raw Normal View History

2020-02-16 19:30:00 +01:00
<template>
2020-06-04 16:30:01 +02:00
<ft-card class="watchVideoInfo">
<div>
<p
class="videoTitle"
2020-02-16 19:30:00 +01:00
>
2020-06-04 16:30:01 +02:00
{{ title }}
</p>
<div
class="channelInformation"
2020-02-16 19:30:00 +01:00
>
2020-06-04 16:30:01 +02: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 19:30:00 +01:00
</div>
2020-06-04 16:30:01 +02:00
<div>
<div class="datePublished">
{{ $t("Video.Published on") }} {{ dateString }}
</div>
<div class="viewCount">
2020-06-04 16:30:01 +02:00
{{ parsedViewCount }}
</div>
<div class="likeBarContainer">
2020-06-04 16:30:01 +02:00
<div
class="likeSection"
>
<div
class="likeBar"
:style="{ background: `linear-gradient(to right, var(--accent-color) ${likePercentageRatio}%, #9E9E9E ${likePercentageRatio}%` }"
2020-06-19 22:20:06 +02:00
/>
2020-06-17 13:37:36 +02:00
<div>
2020-06-19 22:20:06 +02:00
<span class="likeCount"><font-awesome-icon icon="thumbs-up" /> {{ likeCount }}</span>
<span class="dislikeCount"><font-awesome-icon icon="thumbs-down" /> {{ dislikeCount }}</span>
2020-06-17 13:37:36 +02:00
</div>
2020-06-04 16:30:01 +02:00
</div>
</div>
<div class="videoOptions">
<ft-icon-button
:title="$t('Toggle Theatre Mode')"
class="theatreModeButton option"
icon="expand-alt"
theme="secondary"
@click="$emit('theatreMode')"
/>
<ft-icon-button
:title="$t('Change Format.Change Video Formats')"
class="option"
theme="secondary"
icon="file-video"
:dropdown-names="formatTypeNames"
:dropdown-values="formatTypeValues"
@click="handleFormatChange"
/>
2020-06-17 15:36:44 +02:00
<ft-share-button
:id="id"
2020-06-19 22:20:06 +02:00
class="option"
2020-06-17 15:36:44 +02:00
/>
</div>
2020-02-16 19:30:00 +01:00
</div>
</ft-card>
</template>
<script src="./watch-video-info.js" />
2020-06-04 16:30:01 +02:00
<style scoped src="./watch-video-info.sass" lang="sass" />