2020-07-02 02:04:28 +00:00
|
|
|
<template>
|
|
|
|
<span
|
|
|
|
class="details"
|
|
|
|
:class="{ new: release.isNew }"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
v-if="release.entity.type !== 'network' && !release.entity.independent && release.entity.parent"
|
|
|
|
class="site"
|
|
|
|
>
|
|
|
|
<router-link
|
|
|
|
v-tooltip.bottom="`Part of ${release.entity.parent.name}`"
|
|
|
|
:title="`Part of ${release.entity.parent.name}`"
|
|
|
|
:to="`/${release.entity.parent.type}/${release.entity.parent.slug}`"
|
|
|
|
class="site-link"
|
2021-01-17 22:31:49 +00:00
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.entity.parent.slug}/favicon_light.png`"
|
|
|
|
class="favicon favicon-light"
|
|
|
|
>
|
|
|
|
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.entity.parent.slug}/favicon_dark.png`"
|
|
|
|
class="favicon favicon-dark"
|
|
|
|
>
|
|
|
|
</router-link>
|
2020-07-02 02:04:28 +00:00
|
|
|
|
|
|
|
<router-link
|
|
|
|
v-tooltip.bottom="`More from ${release.entity.name}`"
|
|
|
|
:title="`More from ${release.entity.name}`"
|
|
|
|
:to="`/${release.entity.type}/${release.entity.slug}`"
|
|
|
|
class="site-link"
|
|
|
|
>{{ release.entity.name }}</router-link>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<router-link
|
|
|
|
v-else
|
|
|
|
:to="`/${release.entity.type}/${release.entity.slug}`"
|
|
|
|
class="site site-link"
|
2021-01-17 22:31:49 +00:00
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.entity.slug}/favicon_light.png`"
|
|
|
|
class="favicon favicon-light"
|
|
|
|
>
|
|
|
|
|
|
|
|
<img
|
|
|
|
:src="`/img/logos/${release.entity.slug}/favicon_dark.png`"
|
|
|
|
class="favicon favicon-dark"
|
|
|
|
>{{ release.entity.name }}
|
|
|
|
</router-link>
|
2020-07-02 02:04:28 +00:00
|
|
|
|
|
|
|
<a
|
|
|
|
v-if="release.date"
|
2020-08-12 01:30:20 +00:00
|
|
|
v-tooltip.bottom="release.url && `View release on ${release.entity.name}`"
|
|
|
|
:title="release.url && `View release on ${release.entity.name}`"
|
2020-07-02 02:04:28 +00:00
|
|
|
:href="release.url"
|
|
|
|
:class="{ upcoming: isAfter(release.date, new Date()) }"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="date"
|
2021-01-17 23:49:00 +00:00
|
|
|
><Icon
|
|
|
|
v-if="release.url"
|
|
|
|
icon="share2"
|
|
|
|
/>{{ formatDate(release.date, 'MMMM D, YYYY', release.datePrecision) }}</a>
|
2020-07-02 02:04:28 +00:00
|
|
|
|
|
|
|
<a
|
|
|
|
v-else
|
|
|
|
:href="release.url"
|
|
|
|
title="Scene date N/A, showing date added"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
class="date"
|
2020-12-28 00:29:34 +00:00
|
|
|
>{{ `(${formatDate(release.createdAt, 'MMMM D, YYYY')})` }}</a>
|
2020-07-02 02:04:28 +00:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
release: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-01-17 22:31:49 +00:00
|
|
|
@import 'breakpoints';
|
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
.details {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2020-08-15 00:05:35 +00:00
|
|
|
white-space: nowrap;
|
2020-07-02 02:04:28 +00:00
|
|
|
background: var(--profile);
|
|
|
|
font-size: 0;
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
.favicon {
|
2021-01-18 14:27:07 +00:00
|
|
|
width: 2rem;
|
2021-01-17 22:31:49 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: .5rem;
|
2020-07-02 02:04:28 +00:00
|
|
|
}
|
|
|
|
|
2020-07-05 02:10:35 +00:00
|
|
|
/*
|
|
|
|
&.new .date::before {
|
|
|
|
content: '';
|
|
|
|
width: .5rem;
|
|
|
|
height: .5rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin: 0 .25rem 0 0;
|
|
|
|
background: var(--primary);
|
2020-07-02 02:04:28 +00:00
|
|
|
}
|
2020-07-05 02:10:35 +00:00
|
|
|
*/
|
2020-07-02 02:04:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.site,
|
|
|
|
.date {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
|
|
|
font-size: .8rem;
|
|
|
|
padding: .5rem;
|
|
|
|
color: var(--text-light);
|
|
|
|
text-decoration: none;
|
|
|
|
|
2020-07-17 21:27:59 +00:00
|
|
|
.icon {
|
|
|
|
fill: var(--lighten-weak);
|
2021-01-19 15:31:02 +00:00
|
|
|
margin: 0 .25rem 0 0;
|
2020-07-17 21:27:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .icon {
|
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
2020-07-02 02:04:28 +00:00
|
|
|
}
|
|
|
|
|
2021-01-17 22:31:49 +00:00
|
|
|
.site {
|
|
|
|
padding: 0 .5rem 0 0;
|
|
|
|
}
|
|
|
|
|
2020-07-02 02:04:28 +00:00
|
|
|
.site-link {
|
|
|
|
display: flex;
|
|
|
|
color: var(--text-light);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-01-17 22:31:49 +00:00
|
|
|
|
|
|
|
.favicon-dark {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(max-width: $breakpoint-kilo) {
|
|
|
|
/* light details bar
|
|
|
|
.details {
|
|
|
|
background: var(--background);
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
.favicon-dark {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.favicon-light {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-link,
|
|
|
|
.date {
|
|
|
|
color: var(--text);
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2021-01-19 15:31:02 +00:00
|
|
|
.details .favicon {
|
2021-01-25 22:01:07 +00:00
|
|
|
padding: .35rem .5rem .35rem .5rem;
|
2021-01-19 15:31:02 +00:00
|
|
|
}
|
|
|
|
|
2021-01-17 23:49:00 +00:00
|
|
|
.date {
|
2021-01-25 22:01:07 +00:00
|
|
|
padding: .35rem .5rem;
|
2021-01-17 23:49:00 +00:00
|
|
|
}
|
|
|
|
|
2021-01-17 22:31:49 +00:00
|
|
|
.site {
|
|
|
|
padding: 0 .5rem 0 0;
|
|
|
|
}
|
|
|
|
}
|
2020-07-02 02:04:28 +00:00
|
|
|
</style>
|