Improved campaign component, added various banners.

This commit is contained in:
DebaucheryLibrarian
2021-06-28 05:13:41 +02:00
parent 729ca0f968
commit 0a343dfa98
34 changed files with 308 additions and 45 deletions

View File

@@ -1,5 +1,13 @@
<template>
<div class="photos">
<Campaign
:tag="tag"
:min-height="240"
:max-ratio="1.5"
class="photo-link photo"
@campaign="campaign => $emit('campaign', campaign)"
/>
<a
v-for="photo in photos"
:key="`photo-${photo.id}`"
@@ -37,6 +45,7 @@
<script>
import Logo from '../album/logo.vue';
import Campaign from '../campaigns/campaign.vue';
function photos() {
if (this.tag.poster && this.$store.state.ui.sfw) {
@@ -57,6 +66,7 @@ function photos() {
export default {
components: {
Logo,
Campaign,
},
props: {
tag: {
@@ -64,7 +74,7 @@ export default {
default: null,
},
},
emits: ['load'],
emits: ['load', 'campaign'],
computed: {
photos,
},
@@ -150,4 +160,9 @@ export default {
transform: translateY(100%);
transition: transform .25s ease;
}
::v-deep(.campaign) .campaign-banner {
max-height: 15rem;
width: auto;
}
</style>