This commit is contained in:
Robin Grenzdörfer 2023-09-01 14:05:36 +00:00
parent 10eade80ae
commit 1b44964f9c
3 changed files with 14 additions and 3 deletions
api/collections/fields
frontend/src/lib/components/Pagebuilder

@ -15,6 +15,12 @@ subFields:
label: Oberer Titel
helperText: "Dieser Titel wird in der Zeile oben angezeigt."
- name: topTitleUpperCase
type: boolean
meta:
label: Oberer Titel in Großbuchstaben
helperText: "Ist dies aktiviert, so wird der obere Titel in Großbuchstaben angezeigt."
- name: title
type: string
meta:

@ -131,7 +131,7 @@
}
h2 {
font-size: 1.2rem !important;
font-size: 1.6rem !important;
line-height: 1;
font-family: "Libre Franklin", sans-serif;
font-weight: 500;

@ -39,7 +39,12 @@
{#if Object.keys(row).length}
{#if row.topTitle}
<h3 style="text-transform: uppercase; font-size: 14px;" class:red="{row.topTitleRed}">{row.topTitle}</h3>
<h3
style="{row.topTitleUpperCase ? 'text-transform: uppercase; font-size: 1rem;' : 'font-size: 1.6rem'}"
class:red="{row.topTitleRed}"
>
{row.topTitle}
</h3>
{/if}
{#if nestedPath}
<h3
@ -68,7 +73,7 @@
class:dominant="{row.columns.some((col) => col.contentType == 'iconCycleCircle')}"
>
{#each row?.columns as col}
<div class="col" class:dominant="{col.contentType == 'iconCycleCircle'}">
<div class="col" class:dominant="{col.contentType == 'iconCycleCircle'}">
{#if col?.contentType == "text"}
<Text text="{col?.text}" />
{:else if col?.contentType == "textLink"}