2019-11-10 03:20:22 +00:00
|
|
|
<template>
|
|
|
|
<div class="tile">
|
|
|
|
<span class="banner">
|
|
|
|
<span class="details">
|
|
|
|
<a
|
2019-11-14 04:13:38 +00:00
|
|
|
v-if="release.site.independent"
|
|
|
|
:href="`/network/${release.network.slug}`"
|
|
|
|
class="site site-link"
|
|
|
|
>{{ release.network.name }}</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
v-else
|
2019-11-14 00:18:19 +00:00
|
|
|
v-tooltip.bottom="`Part of ${release.network.name}`"
|
2019-11-12 00:22:20 +00:00
|
|
|
:title="`Part of ${release.network.name}`"
|
2019-11-14 00:18:19 +00:00
|
|
|
:href="`/site/${release.site.slug}`"
|
2019-11-10 03:20:22 +00:00
|
|
|
class="site site-link"
|
|
|
|
>{{ release.site.name }}</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
v-if="release.date"
|
2019-11-14 00:18:19 +00:00
|
|
|
v-tooltip.bottom="`View scene on ${release.site.name}`"
|
|
|
|
:title="`View scene on ${release.site.name}`"
|
2019-11-10 03:20:22 +00:00
|
|
|
:href="release.url"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="date"
|
|
|
|
>{{ formatDate(release.date, 'MMM D, YYYY') }}</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
v-else
|
|
|
|
:href="release.url"
|
|
|
|
title="Scene date N/A, showing date added"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="date"
|
|
|
|
>{{ `(${formatDate(release.dateAdded, 'MMM D, YYYY')})` }}`</a>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<a
|
|
|
|
:href="`/scene/${release.id}`"
|
|
|
|
class="link"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
v-if="release.poster"
|
2019-11-11 02:20:00 +00:00
|
|
|
:src="`/media/${release.poster.thumbnail}`"
|
2019-11-10 03:20:22 +00:00
|
|
|
:alt="release.title"
|
|
|
|
class="thumbnail"
|
|
|
|
>
|
|
|
|
|
|
|
|
<img
|
|
|
|
v-else-if="release.photos.length > 0"
|
2019-11-11 02:20:00 +00:00
|
|
|
:src="`/media/${release.photos[0].thumbnail}`"
|
2019-11-10 03:20:22 +00:00
|
|
|
:alt="release.title"
|
|
|
|
class="thumbnail"
|
|
|
|
>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-else
|
|
|
|
:title="release.title"
|
|
|
|
class="thumbnail"
|
|
|
|
>No thumbnail available</div>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<div class="info">
|
|
|
|
<a
|
|
|
|
:href="`/scene/${release.id}`"
|
|
|
|
class="row link"
|
|
|
|
>
|
|
|
|
<h3
|
|
|
|
:title="release.title"
|
|
|
|
class="title"
|
|
|
|
>{{ release.title }}</h3>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<span class="row">
|
|
|
|
<ul class="actors nolist">
|
|
|
|
<li
|
|
|
|
v-for="actor in release.actors"
|
|
|
|
:key="actor.id"
|
|
|
|
class="actor"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`/actor/${actor.slug}`"
|
|
|
|
class="actor-link"
|
|
|
|
>{{ actor.name }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
|
2019-11-14 00:18:19 +00:00
|
|
|
<ul
|
2019-11-10 03:20:22 +00:00
|
|
|
:title="release.tags.map(tag => tag.name).join(', ')"
|
2019-11-14 00:18:19 +00:00
|
|
|
class="tags nolist"
|
2019-11-10 03:20:22 +00:00
|
|
|
>
|
2019-11-14 00:18:19 +00:00
|
|
|
<li
|
|
|
|
v-for="tag in release.tags"
|
|
|
|
:key="`tag-${tag.slug}`"
|
|
|
|
class="tag"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`/tag/${tag.slug}`"
|
|
|
|
class="tag-link"
|
|
|
|
>{{ tag.name }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2019-11-10 03:20:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
release: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
|
|
|
|
.tile {
|
2019-11-14 00:18:19 +00:00
|
|
|
background: $background;
|
2019-11-10 03:20:22 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 0 .5rem 0;
|
|
|
|
overflow: hidden;
|
2019-11-14 04:13:38 +00:00
|
|
|
box-shadow: 0 0 3px $shadow-weak;
|
2019-11-10 03:20:22 +00:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.banner {
|
|
|
|
position: relative;
|
|
|
|
margin: 0 0 .5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbnail {
|
|
|
|
width: 100%;
|
2019-11-11 04:18:28 +00:00
|
|
|
height: 12rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-11-10 03:20:22 +00:00
|
|
|
object-fit: cover;
|
|
|
|
background-position: center;
|
|
|
|
background-size: cover;
|
|
|
|
background-color: $shadow-hint;
|
|
|
|
color: $shadow;
|
|
|
|
text-shadow: 1px 1px 0 $highlight;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 .5rem;
|
2019-11-14 04:13:38 +00:00
|
|
|
margin: 0 0 .25rem 0;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.details {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site,
|
|
|
|
.date {
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(0, 0, 0, .5);
|
|
|
|
font-size: .8rem;
|
|
|
|
padding: .25rem;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
2019-11-14 00:18:19 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-11-10 03:20:22 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
color: $text;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 1rem;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
|
|
|
max-height: 3rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.network {
|
|
|
|
color: #555;
|
|
|
|
margin: 0 .25rem 0 0;
|
|
|
|
font-size: .8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.actors {
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
2019-11-14 04:13:38 +00:00
|
|
|
max-height: 2.75rem;
|
|
|
|
line-height: 1.5rem;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tags {
|
2019-11-14 04:13:38 +00:00
|
|
|
max-height: 2.85rem;
|
2019-11-14 00:18:19 +00:00
|
|
|
padding: .25rem .5rem 1rem .5rem;
|
2019-11-10 03:20:22 +00:00
|
|
|
line-height: 1.25rem;
|
2019-11-14 00:18:19 +00:00
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-y: hidden;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.actor {
|
2019-11-14 00:18:19 +00:00
|
|
|
margin: 0 .25rem 0 0;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tag {
|
2019-11-14 04:13:38 +00:00
|
|
|
margin: 0 .25rem .25rem 0;
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
2019-11-14 00:18:19 +00:00
|
|
|
.actor:not(:last-of-type)::after {
|
2019-11-10 03:20:22 +00:00
|
|
|
content: ",";
|
|
|
|
}
|
|
|
|
|
2019-11-14 00:18:19 +00:00
|
|
|
.actor-link {
|
2019-11-10 03:20:22 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.actor-link {
|
|
|
|
color: $link;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag-link {
|
2019-11-14 00:18:19 +00:00
|
|
|
color: $shadow;
|
2019-11-14 04:13:38 +00:00
|
|
|
display: inline-block;
|
2019-11-14 00:18:19 +00:00
|
|
|
padding: .25rem;
|
|
|
|
box-shadow: 0 0 2px $shadow-weak;
|
|
|
|
font-size: .75rem;
|
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
}
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
</style>
|