diff --git a/.chatgpt_config.yaml b/.chatgpt_config.yaml
index 569641c..e786a25 100644
--- a/.chatgpt_config.yaml
+++ b/.chatgpt_config.yaml
@@ -2,6 +2,5 @@ project_name: "lena-schilling-website"
default_prompt_blocks:
- "basic-prompt"
- "typo3-development"
-initial_files:
- - composer.json
- - package.json
+directories:
+ - "packages"
diff --git a/packages/base/Configuration/Sets/SitePackage/page.tsconfig b/packages/base/Configuration/Sets/SitePackage/page.tsconfig
index 21a0a4a..f4d7048 100644
--- a/packages/base/Configuration/Sets/SitePackage/page.tsconfig
+++ b/packages/base/Configuration/Sets/SitePackage/page.tsconfig
@@ -8,10 +8,14 @@ RTE {
TCEFORM {
pages {
+
}
tt_content {
+
}
}
TCEMAIN {
+
}
+
diff --git a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html
index a219a4b..8e4efe8 100644
--- a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html
+++ b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html
@@ -7,6 +7,7 @@
No image available
diff --git a/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css b/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css index 67399c3..ca9388e 100644 --- a/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css +++ b/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css @@ -2,6 +2,7 @@ margin: 2rem 0; } +/* Mobile-first: column layout by default */ .textimage-container { display: flex; flex-direction: column; @@ -12,48 +13,32 @@ width: 100%; } +.textimage-header { + font-size: 1.5rem; + font-weight: bold; + margin-bottom: 1rem; +} + .textimage-text { font-size: 1rem; line-height: 1.5; } .textimage-image-wrapper { + width: 100%; display: flex; align-items: center; justify-content: center; } -.textimage-picture { - display: block; - max-width: 100%; -} - .textimage-image { max-width: 100%; height: auto; border-radius: 0.5rem; - display: block; } -/* Image positions: 25 = left, 26 = right */ -.textimage-container.image-pos-25 { - flex-direction: column; -} - -.textimage-container.image-pos-26 { - flex-direction: column; -} - -/* 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 */ +/* Image positions: 25 = left, 26 = right + On larger screens, adjust the layout */ @media (min-width: 768px) { .textimage-container.image-pos-25 { flex-direction: row; @@ -63,7 +48,8 @@ flex-direction: row-reverse; } - .textimage-wrapper { - flex: 1; + .textimage-wrapper, + .textimage-image-wrapper { + flex: 1 1 50%; } } diff --git a/packages/base/ContentBlocks/ContentElements/textimage/config.yaml b/packages/base/ContentBlocks/ContentElements/textimage/config.yaml index 0406aea..6eae087 100644 --- a/packages/base/ContentBlocks/ContentElements/textimage/config.yaml +++ b/packages/base/ContentBlocks/ContentElements/textimage/config.yaml @@ -1,12 +1,11 @@ name: cloonar/textimage typeName: cloonar_textimage group: default -prefixFields: false +prefixFields: true +prefixType: full fields: - identifier: header useExistingField: true - - identifier: subheader - useExistingField: true - identifier: bodytext type: Textarea enableRichtext: true @@ -18,12 +17,3 @@ fields: useExistingField: true - identifier: imageorient useExistingField: true - - identifier: imagesize - type: Select - renderType: selectSingle - default: 2 - items: - - label: 25% - value: 1 - - label: 50% - value: 2 diff --git a/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html b/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html index 9af4553..93be9fb 100644 --- a/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html +++ b/packages/base/ContentBlocks/ContentElements/textimage/templates/frontend.html @@ -1,39 +1,14 @@No image available
@@ -43,7 +18,6 @@