This commit is contained in:
tree 2023-04-27 05:07:19 +02:00
rodič 56a5af507b
revize ec4215e42c
3 změnil soubory, kde provedl 5 přidání a 6 odebrání

Zobrazit soubor

@ -13,7 +13,7 @@
export let offer = false; export let offer = false;
export let bundle = null; export let bundle = null;
export let currentItem = null; export let currentItem = null;
export let thumb = '300'; export let thumb = null;
function findObject(it) { function findObject(it) {
if (!bundle) { if (!bundle) {

Zobrazit soubor

@ -6,7 +6,7 @@
export let width = 'w-10'; export let width = 'w-10';
export let aspect = 'aspect-square'; export let aspect = 'aspect-square';
export let rounded = 'rounded'; export let rounded = 'rounded';
export let thumb = '300'; export let thumb = null;
if (width.match(/^w-48/)) { if (width.match(/^w-48/)) {
thumb = '500'; thumb = '500';
@ -17,7 +17,7 @@
{#if item[img]} {#if item[img]}
<img <img
src={item[img].replace(/\.([^.]+)$/, `_${thumb}px.webp`)} src={thumb ? item[img].replace(/\.([^.]+)$/, `_${thumb}px.webp`) : item[img]}
class="{width} {rounded} {aspect} object-cover dark:bg-white drop-shadow-xl z-10" class="{width} {rounded} {aspect} object-cover dark:bg-white drop-shadow-xl z-10"
alt={item.name} alt={item.name}
/> />

Zobrazit soubor

@ -57,7 +57,7 @@
<div <div
class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6 my-6 text-center text-2xl" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6 my-6 text-center text-2xl"
> >
<CollectionList arr={conferences} thumb="500" img="logo" col="event" {entry} offer={true} /> <CollectionList arr={conferences} img="logo" col="event" {entry} offer={true} />
</div> </div>
<h2 class="text-2xl uppercase font-bold pbw-text-color-secondary"> <h2 class="text-2xl uppercase font-bold pbw-text-color-secondary">
@ -66,7 +66,7 @@
<div <div
class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6 my-6 text-center text-2xl" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6 my-6 text-center text-2xl"
> >
<CollectionList arr={otherEvents} thumb="500" img="logo" col="event" {entry} /> <CollectionList arr={otherEvents} img="logo" col="event" {entry} />
</div> </div>
<h2 class="text-2xl uppercase font-bold mt-10 pbw-text-color-secondary"> <h2 class="text-2xl uppercase font-bold mt-10 pbw-text-color-secondary">
<a href="/{entry}/speakers">Speakers</a> ({speakers.length}) <a href="/{entry}/speakers">Speakers</a> ({speakers.length})
@ -111,7 +111,6 @@
> >
<CollectionList <CollectionList
arr={data.bundle.places} arr={data.bundle.places}
thumb="500"
col="place" col="place"
img="photo" img="photo"
{entry} {entry}