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 i: number
export let page: Page export let page: Page
export let personPage: boolean export let personPage: boolean
console.log("page", page, personPage)
window.addEventListener("popstate", function (event) { window.addEventListener("popstate", function (event) {
$rerender = $rerender + 1 $rerender = $rerender + 1
}) })

View File

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

View File

@ -4,12 +4,13 @@
export let pageId: string export let pageId: string
export let col: Column export let col: Column
console.log("icons:", col.iconBlocks, $mediaLibrary, $mediaLibrary[col.iconBlocks[0].icon])
</script> </script>
<div class="iconBlock"> <div class="iconBlock">
{#each col.iconBlocks as icon} {#each col.iconBlocks as icon}
<div class="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"> <div class="text">
<em>{icon.bigText}</em> <em>{icon.bigText}</em>
<p>{icon.smallText}</p> <p>{icon.smallText}</p>