From af666467753321c9446679928f451eb78ec7e893 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Sun, 15 Dec 2024 01:27:03 +0100 Subject: [PATCH] feat: add url to site config, add webp support, change image sizing --- config/sites/default/config.yaml | 8 ++++++- .../ContentElements/hero/assets/frontend.css | 3 ++- .../hero/templates/frontend.html | 14 +++++++++++- .../textimage/assets/frontend.css | 14 ++++++++---- .../ContentElements/textimage/config.yaml | 4 ++-- .../textimage/templates/frontend.html | 13 +++++++++++ .../Extensions/News/Partials/List/Item.html | 22 ++++++++++++++----- 7 files changed, 64 insertions(+), 14 deletions(-) diff --git a/config/sites/default/config.yaml b/config/sites/default/config.yaml index 240eb80..9b11f9b 100644 --- a/config/sites/default/config.yaml +++ b/config/sites/default/config.yaml @@ -1,4 +1,10 @@ -base: / +base: https://lena-schilling.at +baseVariants: + - base: https://lena-schilling.ddev.site + condition: 'applicationContext == "Development/Ddev"' + + - base: https://lena-schilling.cloonar.dev + condition: 'applicationContext == "Production/Staging"' dependencies: - georgringer/news - typo3/redirects diff --git a/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css b/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css index 036c05c..04345ba 100644 --- a/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css +++ b/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css @@ -8,7 +8,7 @@ } .frame-type-cloonar_hero + .frame { - margin-top: -10rem; + margin-top: -10.4rem; } .frame-type-cloonar_hero .container { padding-bottom: 3rem; @@ -81,6 +81,7 @@ .frame-type-cloonar_hero .hero-image-wrapper { margin-top: 1rem; align-self: flex-end; + width: 100%; } .frame-type-cloonar_hero .hero-image { diff --git a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html index dfdf877..fc89186 100644 --- a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html +++ b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html @@ -21,11 +21,23 @@ + + + + diff --git a/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css b/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css index 67399c3..af72376 100644 --- a/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css +++ b/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css @@ -46,11 +46,9 @@ /* Size classes apply at all viewports */ .textimage-image-wrapper.size-25 .textimage-picture { - max-width: 300px; } .textimage-image-wrapper.size-50 .textimage-picture { - max-width: 600px; } /* On larger screens, arrange horizontally for image position settings */ @@ -63,7 +61,15 @@ flex-direction: row-reverse; } - .textimage-wrapper { + .textimage-image-wrapper.size-25 { + flex: 0 0 25%; + } + + .textimage-image-wrapper.size-50 { + flex: 0 0 50%; + } + + .textimage-wrapper { flex: 1; - } + } } diff --git a/packages/base/ContentBlocks/ContentElements/textimage/config.yaml b/packages/base/ContentBlocks/ContentElements/textimage/config.yaml index 0406aea..25fb58d 100644 --- a/packages/base/ContentBlocks/ContentElements/textimage/config.yaml +++ b/packages/base/ContentBlocks/ContentElements/textimage/config.yaml @@ -14,7 +14,7 @@ fields: - identifier: image type: File properties: - allowed: [jpg, jpeg, png, gif] + allowed: [jpg, jpeg, png, gif, webp] useExistingField: true - identifier: imageorient useExistingField: true @@ -26,4 +26,4 @@ fields: - label: 25% value: 1 - label: 50% - value: 2 + value: 2 \ No newline at end of file diff --git a/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html b/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html index be2b5c5..56a7ba5 100644 --- a/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html +++ b/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html @@ -18,6 +18,18 @@ + + + + + - + + + + -