2020-06-27 02:50:13 +00:00
|
|
|
<template>
|
|
|
|
<div
|
2021-01-17 23:31:52 +00:00
|
|
|
:id="`scene-${release.id}`"
|
2020-07-02 23:28:22 +00:00
|
|
|
:class="{ new: release.isNew }"
|
2020-06-27 02:50:13 +00:00
|
|
|
class="tile"
|
|
|
|
>
|
2021-01-19 15:31:02 +00:00
|
|
|
<Details
|
|
|
|
:release="release"
|
|
|
|
class="details-compact"
|
|
|
|
/>
|
|
|
|
|
2021-01-17 22:31:49 +00:00
|
|
|
<div class="tile-body">
|
|
|
|
<span class="poster">
|
|
|
|
<a
|
|
|
|
:href="`/scene/${release.id}/${release.slug || ''}`"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="link"
|
2020-06-27 02:50:13 +00:00
|
|
|
>
|
|
|
|
<img
|
2021-01-17 22:31:49 +00:00
|
|
|
v-if="release.poster"
|
2021-02-22 01:33:39 +00:00
|
|
|
:src="getPath(release.poster, 'thumbnail')"
|
|
|
|
:style="{ 'background-image': getBgPath(release.poster, 'lazy') }"
|
2020-06-27 02:50:13 +00:00
|
|
|
:alt="release.title"
|
2021-01-17 22:31:49 +00:00
|
|
|
class="thumbnail"
|
2020-12-26 22:51:27 +00:00
|
|
|
loading="lazy"
|
2020-06-27 02:50:13 +00:00
|
|
|
>
|
|
|
|
|
2021-02-08 01:10:56 +00:00
|
|
|
<img
|
|
|
|
v-else-if="release.photos && release.photos.length > 0"
|
2021-02-22 01:33:39 +00:00
|
|
|
:src="getPath(release.photos[0], 'thumbnail')"
|
|
|
|
:style="{ 'background-image': getBgPath(release.photos[0], 'lazy') } "
|
2021-02-08 01:10:56 +00:00
|
|
|
:alt="release.title"
|
|
|
|
class="thumbnail"
|
|
|
|
loading="lazy"
|
2020-06-27 02:50:13 +00:00
|
|
|
>
|
2021-01-17 22:31:49 +00:00
|
|
|
|
|
|
|
<div
|
|
|
|
v-else
|
|
|
|
:title="release.title"
|
2021-01-25 22:24:51 +00:00
|
|
|
class="thumbnail unavailable"
|
|
|
|
><Icon icon="blocked" />No thumbnail available</div>
|
2021-01-17 22:31:49 +00:00
|
|
|
</a>
|
2020-06-27 02:50:13 +00:00
|
|
|
</span>
|
|
|
|
|
2021-01-17 22:31:49 +00:00
|
|
|
<div class="info">
|
|
|
|
<Details
|
|
|
|
:release="release"
|
|
|
|
class="details-wide"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<a
|
|
|
|
:href="`/scene/${release.id}/${release.slug || ''}`"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="row link"
|
2020-06-27 02:50:13 +00:00
|
|
|
>
|
2021-01-17 22:31:49 +00:00
|
|
|
<h3
|
|
|
|
v-if="release.title"
|
|
|
|
v-tooltip.bottom="release.title"
|
|
|
|
:title="release.title"
|
|
|
|
class="title"
|
|
|
|
>{{ release.title }}</h3>
|
|
|
|
|
|
|
|
<h3
|
|
|
|
v-else-if="release.actors.length > 0"
|
|
|
|
class="title title-composed"
|
|
|
|
>{{ release.actors[0].name }} for {{ release.entity.name }}</h3>
|
|
|
|
|
|
|
|
<h3
|
|
|
|
v-else
|
|
|
|
class="title title-empty"
|
|
|
|
>{{ release.entity.name }}</h3>
|
|
|
|
</a>
|
|
|
|
|
2021-03-14 03:54:43 +00:00
|
|
|
<span
|
|
|
|
v-if="release.actors?.length > 0"
|
|
|
|
class="row"
|
|
|
|
>
|
2021-01-17 22:31:49 +00:00
|
|
|
<ul
|
|
|
|
class="actors nolist"
|
|
|
|
:title="release.actors.map(actor => actor.name).join(', ')"
|
2020-07-02 02:04:28 +00:00
|
|
|
>
|
2021-01-17 22:31:49 +00:00
|
|
|
<li
|
|
|
|
v-for="actor in release.actors"
|
|
|
|
:key="actor.id"
|
|
|
|
class="actor"
|
|
|
|
>
|
|
|
|
<router-link
|
|
|
|
:to="{ name: 'actor', params: { actorId: actor.id, actorSlug: actor.slug } }"
|
|
|
|
class="actor-link"
|
|
|
|
>{{ actor.name }}</router-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<div class="labels">
|
|
|
|
<router-link
|
|
|
|
v-if="release.shootId && release.studio"
|
|
|
|
:to="{ name: 'studio', params: { entitySlug: release.studio.slug } }"
|
|
|
|
:title="release.studio && release.studio.name"
|
|
|
|
class="shoot nolink"
|
|
|
|
>{{ release.shootId }}</router-link>
|
|
|
|
|
|
|
|
<span
|
|
|
|
v-else-if="release.shootId"
|
|
|
|
:title="release.studio && release.studio.name"
|
|
|
|
class="shoot nolink"
|
|
|
|
>{{ release.shootId }}</span>
|
|
|
|
|
|
|
|
<ul
|
2021-03-14 03:54:43 +00:00
|
|
|
v-if="release.tags?.length > 0"
|
2021-01-17 22:31:49 +00:00
|
|
|
:title="release.tags.map(tag => tag.name).join(', ')"
|
|
|
|
class="tags nolist"
|
|
|
|
>
|
|
|
|
<li
|
|
|
|
v-for="tag in release.tags"
|
|
|
|
:key="`tag-${tag.slug}`"
|
|
|
|
class="tag"
|
|
|
|
>
|
|
|
|
<router-link
|
|
|
|
:to="`/tag/${tag.slug}`"
|
|
|
|
class="tag-link"
|
|
|
|
>{{ tag.name }}</router-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-07-02 02:04:28 +00:00
|
|
|
</div>
|
2020-06-27 02:50:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-07-02 02:04:28 +00:00
|
|
|
import Details from './tile-details.vue';
|
|
|
|
|
2020-06-27 02:50:13 +00:00
|
|
|
export default {
|
2020-07-02 02:04:28 +00:00
|
|
|
components: {
|
|
|
|
Details,
|
|
|
|
},
|
2020-06-27 02:50:13 +00:00
|
|
|
props: {
|
|
|
|
release: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-01-17 22:31:49 +00:00
|
|
|
@import 'breakpoints';
|
2020-06-27 02:50:13 +00:00
|
|
|
|
|
|
|
.tile {
|
|
|
|
background: var(--background);
|
2021-01-17 23:31:52 +00:00
|
|
|
position: relative;
|
2020-06-27 02:50:13 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 100%;
|
2021-01-17 23:31:52 +00:00
|
|
|
box-shadow: 0 0 3px var(--darken-weak);
|
2020-07-02 23:28:22 +00:00
|
|
|
|
2021-01-19 15:33:35 +00:00
|
|
|
&.new .poster::after {
|
2021-01-17 23:31:52 +00:00
|
|
|
content: '★';
|
2020-07-02 23:28:22 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2021-01-17 23:31:52 +00:00
|
|
|
left: 0;
|
2021-03-18 03:01:35 +00:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: .1rem;
|
2021-01-17 23:31:52 +00:00
|
|
|
border-radius: 0 0 .5rem 0;
|
2020-07-02 23:28:22 +00:00
|
|
|
color: var(--text-light);
|
|
|
|
background: var(--primary);
|
|
|
|
font-size: .8rem;
|
|
|
|
font-weight: bold;
|
2021-03-18 03:01:35 +00:00
|
|
|
line-height: 1;
|
2020-07-02 23:28:22 +00:00
|
|
|
}
|
2020-06-27 02:50:13 +00:00
|
|
|
}
|
|
|
|
|
2021-01-17 22:31:49 +00:00
|
|
|
.tile-body {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2020-06-27 02:50:13 +00:00
|
|
|
.poster {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.covers {
|
|
|
|
background: var(--profile);
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.cover {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbnail {
|
|
|
|
width: 100%;
|
|
|
|
height: 14rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
object-fit: cover;
|
|
|
|
background-position: center;
|
|
|
|
background-size: cover;
|
|
|
|
background-color: var(--shadow-hint);
|
|
|
|
color: var(--shadow);
|
|
|
|
text-shadow: 1px 1px 0 var(--highlight);
|
2021-01-25 22:24:51 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: none;
|
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
|
|
|
fill: var(--shadow-hint);
|
|
|
|
}
|
2020-06-27 02:50:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.row {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 .5rem;
|
2021-01-19 15:31:02 +00:00
|
|
|
margin: 0 0 .1rem 0;
|
2020-06-27 02:50:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
2021-01-17 22:31:49 +00:00
|
|
|
overflow: hidden;
|
2020-06-27 02:50:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2020-07-19 17:40:21 +00:00
|
|
|
margin: 0;
|
2020-06-27 02:50:13 +00:00
|
|
|
color: var(--text);
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.5;
|
2020-07-02 23:28:22 +00:00
|
|
|
white-space: nowrap;
|
2020-06-27 02:50:13 +00:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2020-07-08 00:53:46 +00:00
|
|
|
.title-composed,
|
|
|
|
.title-empty {
|
2020-07-03 02:12:56 +00:00
|
|
|
color: var(--shadow);
|
|
|
|
}
|
|
|
|
|
2020-06-27 02:50:13 +00:00
|
|
|
.actors {
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
2020-07-02 02:04:28 +00:00
|
|
|
max-height: 1.5rem;
|
2020-06-27 02:50:13 +00:00
|
|
|
line-height: 1.5rem;
|
2020-07-02 02:04:28 +00:00
|
|
|
margin: 0 0 .25rem 0;
|
2020-06-27 02:50:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.actor:not(:last-of-type)::after {
|
|
|
|
content: ",";
|
2020-07-02 02:04:28 +00:00
|
|
|
margin: 0 .25rem 0 0;
|
2020-06-27 02:50:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.actor-link {
|
2020-07-02 02:04:28 +00:00
|
|
|
color: var(--link);
|
2020-06-27 02:50:13 +00:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
.labels {
|
2021-01-19 15:31:02 +00:00
|
|
|
padding: 0 .5rem 1.5rem .5rem;
|
2020-07-02 02:04:28 +00:00
|
|
|
max-height: .5rem;
|
|
|
|
overflow-y: hidden;
|
2020-07-19 17:40:21 +00:00
|
|
|
font-size: 0;
|
|
|
|
line-height: 2;
|
2020-07-02 02:04:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.shoot {
|
|
|
|
display: inline;
|
2020-07-19 17:40:21 +00:00
|
|
|
padding: .25rem .5rem;
|
|
|
|
background: var(--primary);
|
|
|
|
color: var(--text-light);
|
|
|
|
font-size: 0.75rem;
|
2020-07-02 02:04:28 +00:00
|
|
|
font-weight: bold;
|
2020-07-19 17:40:21 +00:00
|
|
|
box-shadow: inset 0 0 3px var(--shadow-weak);
|
2020-07-02 02:04:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tags {
|
|
|
|
display: inline;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag {
|
2020-07-19 17:40:21 +00:00
|
|
|
margin: 0 0 1rem 0;
|
2021-01-19 15:31:02 +00:00
|
|
|
|
|
|
|
&:not(:first-child) .tag-link {
|
|
|
|
border-left: none;
|
|
|
|
}
|
2020-06-27 02:50:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tag-link {
|
2020-07-19 17:40:21 +00:00
|
|
|
background: var(--background);
|
2020-06-27 02:50:13 +00:00
|
|
|
color: var(--shadow);
|
|
|
|
display: inline-block;
|
2020-07-19 17:40:21 +00:00
|
|
|
padding: .25rem .5rem;
|
2021-01-19 15:31:02 +00:00
|
|
|
border: solid 1px var(--shadow-hint);
|
2020-06-27 02:50:13 +00:00
|
|
|
font-size: .75rem;
|
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
|
|
|
line-height: 1;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2021-01-17 22:31:49 +00:00
|
|
|
|
|
|
|
.details-wide {
|
|
|
|
margin: 0 0 .5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.details-compact {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(max-width: $breakpoint-kilo) {
|
|
|
|
.tile-body {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poster {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbnail {
|
|
|
|
width: 9rem;
|
2021-02-06 00:39:01 +00:00
|
|
|
height: 6rem;
|
2021-01-25 22:24:51 +00:00
|
|
|
font-size: 0;
|
2021-01-19 15:31:02 +00:00
|
|
|
box-shadow: 0 0 3px var(--shadow-weak);
|
2021-01-25 22:24:51 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: block;
|
|
|
|
}
|
2021-01-17 22:31:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
padding: .5rem .25rem 0 .25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row {
|
|
|
|
margin: 0 0 .15rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title,
|
|
|
|
.actor-link {
|
|
|
|
font-size: .9rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.details-wide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.details-compact {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shoot {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-01-19 15:33:35 +00:00
|
|
|
|
2021-01-19 15:36:17 +00:00
|
|
|
.tile.new .poster::after {
|
2021-01-19 15:33:35 +00:00
|
|
|
bottom: 0;
|
|
|
|
top: auto;
|
|
|
|
border-radius: 0 .5rem 0 0;
|
|
|
|
}
|
2021-01-17 22:31:49 +00:00
|
|
|
}
|
2020-06-27 02:50:13 +00:00
|
|
|
</style>
|