generated from cms/tibi-docs
This commit is contained in:
parent
dfa8496c93
commit
296458a7cf
@ -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
|
||||
})
|
||||
|
@ -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}">
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user