Update and rework project structure with new pagebuilder concept. (based on RK Architekten and SFU Politik configs and sources)

This commit is contained in:
2022-11-17 16:01:52 +00:00
parent 825dfc18f9
commit 30c05143fe
1421 changed files with 3875 additions and 4975 deletions

View File

@@ -0,0 +1,28 @@
<script lang="ts">
import modules from "./modules"
export let content: Content
</script>
{#if content?.pageBuilder && content?.pageBuilder?.length}
<div class="page-builder">
{#each content.pageBuilder as row}
<div class="page-builder-row">
{#each Object.entries(row.columns) as [index, column]}
{#if row.publish}
{#if column.module || (column.html && column.html !== "")}
<div class="{column.width !== '' ? `page-builder-col-${column.width}` : ''}">
{#if column.html}
{@html column.html}
{/if}
{#if column.module}
<svelte:component this="{modules[column.module]}" content="{content}" />
{/if}
</div>
{/if}
{/if}
{/each}
</div>
{/each}
</div>
{/if}