fix
All checks were successful
deploy to production / deploy (push) Successful in 34s

This commit is contained in:
Robin Grenzdörfer 2023-11-18 16:20:51 +00:00
parent dfa8496c93
commit 296458a7cf
3 changed files with 9 additions and 8 deletions

View File

@ -26,7 +26,6 @@
export let i: number
export let page: Page
export let personPage: boolean
console.log("page", page, personPage)
window.addEventListener("popstate", function (event) {
$rerender = $rerender + 1
})

View File

@ -62,14 +62,15 @@
? 'margin-top: 0px; padding-top: 0px;'
: ''}"
>
{#if row.backgroundImage && mediaLibrary[row.backgroundImage]}
{#if row.backgroundImage && $mediaLibrary[row.backgroundImage]}
<div class="background-image">
<img
src="{`${apiBaseURL}medialib/${row?.backgroundImage}/${
mediaLibrary?.[row?.backgroundImage]?.file?.src
<svg
stroke="{'white'}"
fill="{'white'}"
data-src="{`${apiBaseURL}medialib/${row?.backgroundImage}/${
$mediaLibrary?.[row?.backgroundImage]?.file?.src
}`}"
alt="img"
/>
></svg>
</div>
{/if}
<div class="content" class:bright="{row.backgroundImage}">

View File

@ -4,12 +4,13 @@
export let pageId: string
export let col: Column
console.log("icons:", col.iconBlocks, $mediaLibrary, $mediaLibrary[col.iconBlocks[0].icon])
</script>
<div class="iconBlock">
{#each col.iconBlocks as icon}
<div class="icon">
<img src="{`${apiBaseURL}medialib/${icon.icon}/${mediaLibrary?.[icon?.icon]?.file?.src}`}" alt="img" />
<img src="{`${apiBaseURL}medialib/${icon.icon}/${$mediaLibrary?.[icon?.icon]?.file?.src}`}" alt="img" />
<div class="text">
<em>{icon.bigText}</em>
<p>{icon.smallText}</p>