mirror of
https://github.com/web3privacy/web
synced 2024-10-15 18:26:27 +02:00
update image generator
This commit is contained in:
parent
cf73b79372
commit
cf2a219fd5
1 changed files with 11 additions and 4 deletions
|
@ -76,6 +76,8 @@ eventSelected.subscribe((id, next) => {
|
||||||
}
|
}
|
||||||
if (event.design?.image) {
|
if (event.design?.image) {
|
||||||
imageSelected.set(event.design.image);
|
imageSelected.set(event.design.image);
|
||||||
|
} else {
|
||||||
|
imageSelected.set('');
|
||||||
}
|
}
|
||||||
return next
|
return next
|
||||||
})
|
})
|
||||||
|
@ -133,17 +135,22 @@ for (const path in imagesSrc) {
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2 text-[#909090]">{event.id} [{event.design?.image || '-'}]</div>
|
<div class="mb-2 text-[#909090]">{event.id} [{event.design?.image || '-'}]</div>
|
||||||
<div class="w-[380px] h-[570px] relative">
|
<div class="w-[380px] h-[570px] relative">
|
||||||
<div class="scale-50 absolute -left-[172px] -top-[270px] bg-red-200 {!event.design?.image ? 'opacity-50' : ''}" style="margin-left: -1rem;">
|
{#if event.images['poster-simple'] || event.images.poster}
|
||||||
|
<a href="/gen/event?id={event.id}"><img src={event.images['poster-simple'] || event.images.poster} /></a>
|
||||||
|
{:else}
|
||||||
|
<div class="scale-50 absolute -left-[172px] -top-[269px] bg-red-200 {!event.design?.image ? 'opacity-50' : ''}" style="margin-left: -1rem;">
|
||||||
<a href="/gen/event?id={event.id}"><PosterSimple {event} image={getImageUrl(event.design?.image)} {tools} /></a>
|
<a href="/gen/event?id={event.id}"><PosterSimple {event} image={getImageUrl(event.design?.image)} {tools} /></a>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="px-10 py-4">
|
<div class="px-10 py-0">
|
||||||
<a href="/gen/event" class="underline hover:no-underline">Back to events overview</a>
|
<a href="/gen/event" class="underline hover:no-underline">Back to events overview</a>
|
||||||
|
<div class="text-2xl mt-6 mb-10"><a href="/event/{event.id}" class="underline hover:no-underline uppercase">[{event.id}] {event.type} {event.city}</a></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-10 py-4">
|
<div class="px-10 py-4">
|
||||||
Image:
|
Image:
|
||||||
|
|
Loading…
Reference in a new issue