diff --git a/.chatgpt_config.yaml b/.chatgpt_config.yaml new file mode 100644 index 0000000..cfe7910 --- /dev/null +++ b/.chatgpt_config.yaml @@ -0,0 +1,5 @@ +default_prompt_blocks: + - "basic-prompt" + - "typo3-development" +directories: + - "packages/base/ContentBlocks" diff --git a/data/test.sql.gz b/data/test.sql.gz new file mode 100644 index 0000000..a34c6de Binary files /dev/null and b/data/test.sql.gz differ diff --git a/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css b/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css index 267088c..4448beb 100644 --- a/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css +++ b/packages/base/ContentBlocks/ContentElements/hero/assets/frontend.css @@ -1,73 +1,155 @@ .frame-type-cloonar_hero { - position: relative; - display: flex; - flex-direction: column; - padding-bottom: 3rem; /* Space for overlap */ - background: #f9f9f9; + background: #f9f9f9; + padding: 1rem; /* Mobile-first padding */ } -.frame-type-cloonar_hero .hero-header { - text-align: center; - margin-bottom: 2rem; - font-size: 2.5rem; - color: #3c3c3c; +/* Mobile-first: stacked layout */ +.frame-type-cloonar_hero .hero { + display: flex; + flex-direction: column; + align-items: flex-start; } -.frame-type-cloonar_hero .hero-content { - display: flex; - flex-direction: row; - align-items: center; - justify-content: space-between; - gap: 2rem; +.frame-type-cloonar_hero .hero-subheader { + font-size: 1rem; + color: #3c6418; + margin-bottom: 0.5rem; +} + +.frame-type-cloonar_hero .hero-title { + font-size: 1.5rem; + font-weight: bold; + color: #3c6418; + margin: 0 0 1rem 0; + line-height: 1.2; + text-transform: uppercase; } .frame-type-cloonar_hero .hero-text { - flex: 1; - font-size: 1.2rem; - color: #3c3c3c; - line-height: 1.6; -} - -.frame-type-cloonar_hero .hero-image-wrapper { - position: relative; - flex: 1; -} - -.frame-type-cloonar_hero .hero-image { - max-width: 100%; - height: auto; - border-radius: 8px; + font-size: 0.9rem; + color: #333; + line-height: 1.4; + margin-bottom: 1rem; + max-width: 45ch; } .frame-type-cloonar_hero .hero-social-icons { - position: absolute; - right: -10%; - top: 50%; - transform: translateY(-50%); - display: flex; - flex-direction: column; - gap: 0.5rem; + display: flex; + gap: 0.5rem; + margin-bottom: 1rem; } .frame-type-cloonar_hero .social-icon { - display: inline-block; - width: 40px; - height: 40px; - background-color: #3c3c3c; - color: #fff; - text-align: center; - line-height: 40px; - border-radius: 50%; - text-decoration: none; + display: inline-flex; + align-items: center; + justify-content: center; + background: #3c6418; + color: #fff; + font-size: 1rem; + text-decoration: none; + border-radius: 50%; + width: 2rem; + height: 2rem; + transition: background 0.3s; +} + +.frame-type-cloonar_hero .social-icon:hover { + background: #1e3810; +} + +.frame-type-cloonar_hero .hero-image-wrapper { + margin-top: 1rem; +} + +.frame-type-cloonar_hero .hero-image { + max-width: 200px; + width: 100%; + height: auto; + border-radius: 0.5rem; +} + +/* Medium devices (≥768px) - slightly larger text and icons */ +@media (min-width: 768px) { + .frame-type-cloonar_hero .hero-subheader { font-size: 1.2rem; + } + + .frame-type-cloonar_hero .hero-title { + font-size: 2rem; + margin-bottom: 1.2rem; + } + + .frame-type-cloonar_hero .hero-text { + font-size: 1rem; + } + + .frame-type-cloonar_hero .social-icon { + width: 2.5rem; + height: 2.5rem; + font-size: 1.2rem; + } + + .frame-type-cloonar_hero .hero-image { + max-width: 250px; + } } -.frame-type-cloonar_hero .next-section-overlap { - position: absolute; - bottom: 2rem; - width: 100%; - height: 2rem; - background: #ffffff; - z-index: 10; -} +/* Large devices (≥992px): Switch to 3-column layout */ +@media (min-width: 992px) { + .frame-type-cloonar_hero { + padding: 2rem; + } + /* Three-column grid: text (left), image (middle), icons (right) */ + .frame-type-cloonar_hero .hero { + display: grid; + grid-template-columns: 1fr auto auto; + grid-template-areas: + "subheader image icons" + "title image icons" + "text image icons" + "social image icons"; + align-items: start; + justify-items: start; + text-align: left; + } + + .frame-type-cloonar_hero .hero-subheader { + grid-area: subheader; + font-size: 1.5rem; + margin-bottom: 0.5rem; + } + + .frame-type-cloonar_hero .hero-title { + grid-area: title; + font-size: 3rem; + margin-bottom: 1.5rem; + } + + .frame-type-cloonar_hero .hero-text { + grid-area: text; + font-size: 1rem; + max-width: 40ch; + margin-bottom: 1.5rem; + } + + .frame-type-cloonar_hero .hero-social-icons { + grid-area: social; + flex-direction: column; + gap: 1rem; + margin-bottom: 0; + align-items: flex-start; + } + + .frame-type-cloonar_hero .hero-image-wrapper { + grid-area: image; + margin-top: 0; + display: flex; + align-items: center; + justify-content: center; + } + + .frame-type-cloonar_hero .hero-image { + max-width: 300px; /* Slightly larger on desktop, but not too big */ + } +} diff --git a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html index 24aba2c..8181cc2 100644 --- a/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html +++ b/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html @@ -1,30 +1,31 @@ + + + +
-
-

{data.header}

-
-
-
- {data.bodytext} -
-
- - - - - -

No image available

-
-
-
- - - -
-
+
{data.subheader}
+

{data.header}

+
+ {data.bodytext} +
+
+ + + +
+
+ + + + + +

No image available

+
+
diff --git a/packages/base/Resources/Private/ContentElements/Layouts/Default.html b/packages/base/Resources/Private/ContentElements/Layouts/Default.html index 1add022..ee7e1bb 100644 --- a/packages/base/Resources/Private/ContentElements/Layouts/Default.html +++ b/packages/base/Resources/Private/ContentElements/Layouts/Default.html @@ -1,8 +1,13 @@
-
-

{data.header}

-
- + +
+ + +
+

{data.header}

+
+
+ diff --git a/packages/base/Resources/Public/Scss/abstracts/_variables.scss b/packages/base/Resources/Public/Scss/abstracts/_variables.scss index 3912431..c7fd041 100644 --- a/packages/base/Resources/Public/Scss/abstracts/_variables.scss +++ b/packages/base/Resources/Public/Scss/abstracts/_variables.scss @@ -9,3 +9,15 @@ $breakpoint-sm: 576px; $breakpoint-md: 768px; $breakpoint-lg: 992px; $breakpoint-xl: 1200px; +// variables.scss + +// Breakpoint Variables +:root { + --breakpoint-xs: 480px; + --breakpoint-sm: 576px; + --breakpoint-md: 768px; + --breakpoint-lg: 992px; + --breakpoint-xl: 1200px; +} + +// Additional global variables can be added here