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

This commit is contained in:
2023-09-01 12:55:40 +00:00
parent 82b9b6ec36
commit 75269a3a30
4 changed files with 16 additions and 4 deletions

View File

@@ -45,14 +45,23 @@
{#if page}
{#if path == "/"}<Homepage />{/if}
{#each page.rows as row, i}
<div class="row" id="row-{i}">
<div
class="row"
id="row-{i}"
style="{path == '/' && i == page.rows.length - 1 ? 'padding-bottom: 300px;' : ''}"
>
{#if row.row.backgroundImage}
<div class="background-image">
<img src="{`${apiBaseURL}page/${page.id}/${row.row.backgroundImage?.src}`}" alt="img" />
</div>
{/if}
<div class="content" class:bright="{row.row.backgroundImage}">
<Pagebuilder row="{row.row}" pageId="{page.id}" bright="{!!row.row.backgroundImage}" />
<Pagebuilder
isHP="{path == '/'}"
row="{row.row}"
pageId="{page.id}"
bright="{!!row.row.backgroundImage}"
/>
</div>
</div>
{/each}