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

90 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>
<p class="viewCount">
{{ parsedViewCount }}
</p>
2020-02-16 19:30:00 +01:00
<div
2020-06-04 16:30:01 +02: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>
</div>
<!--
<ft-flex-box class="videoOptions">
<ft-button
label="Toggle Theatre Mode"
class="theatreModeButton"
@click="$emit('theatreMode')"
/>
<ft-list-dropdown
:title="formatTypeLabel"
:label-names="formatTypeNames"
:label-values="formatTypeValues"
class="formatTypeDropdown"
@click="handleFormatChange"
/>
<ft-list-dropdown
:title="shareLabel"
:label-names="shareNames"
:label-values="shareValues"
class="shareDropdown"
@click="handleShare"
/>
</ft-flex-box>
-->
<div class="optionsContainer">
<div v-for="i in [`download`, `star`, `bookmark`, `share`]" :key="i" class="option">
<font-awesome-icon
class="refreshIcon"
:icon="i"
/>
</div>
</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" />