feat: add Vorstand page with structured content and layout

Introduced a new Vorstand page with content files and structured data for team details. Added associated blueprint, PHP template, and updated image assets for better organization and presentation.
This commit is contained in:
2025-07-06 15:11:17 +02:00
parent 0f8c960863
commit eaa7327516
6 changed files with 109 additions and 5 deletions
-5
View File
@@ -1,5 +0,0 @@
Title: Vorstand
----
Uuid: zl70xxrrqevgvku0
+47
View File
@@ -0,0 +1,47 @@
Title: Vorstand
----
Text: Bei der Jahreshauptversammlung am 05.04.2025 wurden in den aktuellen Vorstand gewählt:
----
Vorstandschaft:
-
name: Bernd Haberzettl
position: 1. Vorstand
-
name: Jürgen Franz
position: 2. Vorstand und Spielleiter
-
name: Tobias Feigel
position: Jugendleiter
-
name: Tanja Wolfrum
position: Kassier
-
name: Klaus Frommelt
position: Schriftführer
-
name: Alexander Döge
position: Kassenprüfer
-
name: Dominik Döge
position: Kassenprüfer
----
Herotext: Unser Vorstand setzt sich aus engagierten Mitgliedern zusammen, die die Geschicke des Vereins leiten. Gemeinsam arbeiten wir daran, Schach in Bad Steben zu fördern und neue Mitglieder zu gewinnen.
----
Herobutton: Kontaktieren Sie uns!
----
Buttonlink: /kontakt.html
----
Uuid: zl70xxrrqevgvku0

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.5 MiB

@@ -0,0 +1,5 @@
Sort: 1
----
Uuid: oii89r8tbby8z0e1
+28
View File
@@ -0,0 +1,28 @@
title: Vorstandschaft Page
columns:
main:
width: 2/3
sections:
fields:
type: fields
fields:
text:
type: textarea
size: small
vorstandschaft:
label: Vorstandschaft
type: structure
fields:
name:
label: Name des Vorstands
type: text
position:
label: Position des Vorstands
type: text
sidebar:
width: 1/3
sections:
image:
label: Bild der Vorstandschaft
type: files
+29
View File
@@ -0,0 +1,29 @@
<?php
$vorstand = $page->vorstandschaft()->toStructure();
?>
<?php snippet('layout', slots: true) ?>
<section class="py-8">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<img src="<?= $page->image()->url() ?>" alt="<?= $page->title()->html() ?>">
</div>
</section>
<section class="bg-sf_grau-50 py-8">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4">
<p class="text-2xl pt-4"><?= $page->text() ?></p>
<ul class="pt-6">
<?php foreach($vorstand as $vorstand): ?>
<li>
<p class="font-semibold text-xl">
<?= $vorstand->name() ?>
<span class="font-medium font-mono text-lg">
, <?= $vorstand->position() ?>
</span>
</p>
</li>
<?php endforeach ?>
</ul>
</div>
</section>
<?php endsnippet() ?>