From b6f077a8c42fce5d696414adf9ca9163bd98d5a1 Mon Sep 17 00:00:00 2001 From: Tobias Feigel Date: Sun, 6 Jul 2025 17:00:58 +0200 Subject: [PATCH] feat: update layout and styling, extend memorial page content Enhanced layout snippet with conditional styling support for dark mode. Updated typography and grid classes for improved text and visual consistency. Added additional memorial section content, including headings and text fields for tributes. Expanded blueprint definitions with new block types (`line`, `gallery`, and `quote`). Adjusted chessboard piece and square dimensions in `pgn4web.css` for refined appearance. --- assets/css/{png4web.css => pgn4web.css} | 10 ++--- content/4_verein/5_memoriam/blockpage.txt | 52 +++++++++++++++++++++++ site/blueprints/pages/blockpage.yml | 3 ++ site/blueprints/pages/verein.yml | 3 +- site/snippets/blocks/pgn4web.php | 2 +- site/snippets/layout.php | 18 +++++--- site/snippets/titel.php | 2 +- site/templates/blockpage.php | 6 +-- site/templates/impressum.php | 2 +- src/css/input.css | 20 ++++----- 10 files changed, 89 insertions(+), 29 deletions(-) rename assets/css/{png4web.css => pgn4web.css} (98%) diff --git a/assets/css/png4web.css b/assets/css/pgn4web.css similarity index 98% rename from assets/css/png4web.css rename to assets/css/pgn4web.css index f795304..f0a8bb0 100644 --- a/assets/css/png4web.css +++ b/assets/css/pgn4web.css @@ -19,21 +19,19 @@ td { border-style: double; border-color: black; border-width: 3px; - width: 600px; - height: 600px; } .pieceImage { - width: 60px; - height: 60px; + width: 55px; + height: 55px; } .whiteSquare, .blackSquare, .highlightWhiteSquare, .highlightBlackSquare { - width: 55px; - height: 55px; + width: 60px; + height: 60px; border-style: solid; border-width: 1px; } diff --git a/content/4_verein/5_memoriam/blockpage.txt b/content/4_verein/5_memoriam/blockpage.txt index c216473..5bc39b0 100644 --- a/content/4_verein/5_memoriam/blockpage.txt +++ b/content/4_verein/5_memoriam/blockpage.txt @@ -5,6 +5,15 @@ Title: In Memoriam Blocks: [ + { + "content": { + "level": "h1", + "text": "Roland Martius - † 17.02.2016" + }, + "id": "a14dd385-7207-4f43-b5a7-4dd12ac06359", + "isHidden": false, + "type": "heading" + }, { "content": { "location": "kirby", @@ -55,6 +64,45 @@ Blocks: "id": "fb61c744-c18b-4b43-b1b1-fcb91602a9aa", "isHidden": false, "type": "pgn4web" + }, + { + "content": [], + "id": "da7c4d70-4f23-4dfa-aeb9-a274799147f2", + "isHidden": false, + "type": "line" + }, + { + "content": { + "level": "h1", + "text": "Dieter Munzert - † 12.01.2021" + }, + "id": "15f0a908-83bd-452b-974b-1b0e93ac2170", + "isHidden": false, + "type": "heading" + }, + { + "content": { + "text": "

Die Schachfreunde Bad Steben trauern um Gründungsmitglied Dieter Munzert.

" + }, + "id": "7202e67b-348e-40ab-bce1-28e89e27ab47", + "isHidden": false, + "type": "text" + }, + { + "content": { + "text": "

Unser Gründungsmitglied Dieter verstarb am 12. Januar 2021 im Alter von 67 Jahren im Krankenhaus. Unser Mitgefühl gilt seiner Frau Waltraud und allen Angehörigen!

" + }, + "id": "e2e32907-05a9-43c2-b0c5-0332004f6f3f", + "isHidden": false, + "type": "text" + }, + { + "content": { + "text": "

Wir werden Dieter, der immer ein zuverlässiger und eifriger Schachspieler war, stets in Erinnerung behalten!

" + }, + "id": "d38742d7-683c-4b12-8553-21ebcb4b994b", + "isHidden": false, + "type": "text" } ] @@ -64,4 +112,8 @@ Herotext: In ehrender Erinnerung gedenken wir unserer verstorbenen Mitglieder, d ---- +Dark: true + +---- + Uuid: ko01ys2cbv2pafa8 \ No newline at end of file diff --git a/site/blueprints/pages/blockpage.yml b/site/blueprints/pages/blockpage.yml index b295098..e07e067 100644 --- a/site/blueprints/pages/blockpage.yml +++ b/site/blueprints/pages/blockpage.yml @@ -8,6 +8,9 @@ fields: - heading - text - image + - line + - gallery + - quote - type: fen label: FEN-Diagramm preview: fields diff --git a/site/blueprints/pages/verein.yml b/site/blueprints/pages/verein.yml index 0cb27c7..d03f05a 100644 --- a/site/blueprints/pages/verein.yml +++ b/site/blueprints/pages/verein.yml @@ -16,5 +16,4 @@ columns: pages: type: pages files: - type: files - + type: files \ No newline at end of file diff --git a/site/snippets/blocks/pgn4web.php b/site/snippets/blocks/pgn4web.php index f06c325..7ae6daa 100644 --- a/site/snippets/blocks/pgn4web.php +++ b/site/snippets/blocks/pgn4web.php @@ -18,7 +18,7 @@ -
+
diff --git a/site/snippets/layout.php b/site/snippets/layout.php index 2b62285..8e0776b 100644 --- a/site/snippets/layout.php +++ b/site/snippets/layout.php @@ -36,11 +36,19 @@ -
-
- -
-
+ dark()->isNotEmpty()): ?> +
+
+ +
+
+ +
+
+ +
+
+