diff --git a/assets/style.css b/assets/style.css index 9cfaf75..cb351f4 100644 --- a/assets/style.css +++ b/assets/style.css @@ -17,6 +17,16 @@ margin: 0; } + /* deco-hero-compact — image-less hero: comfortable padding, no viewport-height balloon. */ + .deco-hero-compact { padding-top: 4rem; padding-bottom: 4rem; } + @media (min-width: 768px) { + .deco-hero-compact { padding-top: 6rem; padding-bottom: 6rem; } + } + + /* deco-stats — capacity/minimum figure row: guaranteed column gap so values never collide. */ + .deco-stats { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; } + .deco-stats-center { justify-content: center; } + /* deco-frame — stepped ziggurat frame, layered borders + clipped corners. */ .deco-frame { position: relative; diff --git a/blocks/chef_signature.ninjatpl b/blocks/chef_signature.ninjatpl index 2b74741..36a9413 100644 --- a/blocks/chef_signature.ninjatpl +++ b/blocks/chef_signature.ninjatpl @@ -1,5 +1,5 @@ {# chef_signature persona block — centred signature-dish feature with sunburst crests. Media via {% img %}. #} -
+
{% if eyebrow %}
{{ eyebrow }}
{% endif %} {% if image %}
{% img image alt=dish class="w-full h-auto object-cover" %}
{% endif %} diff --git a/blocks/private_dining.ninjatpl b/blocks/private_dining.ninjatpl index b1c5e24..70a45aa 100644 --- a/blocks/private_dining.ninjatpl +++ b/blocks/private_dining.ninjatpl @@ -1,14 +1,13 @@ -{# private_dining persona block — framed room image + gilded details panel. Media via {% img %}. #} -
-
-
- {% if image %}
{% img image alt=title class="w-full h-auto object-cover" %}
{% endif %} -
-
- {% if eyebrow %}
{{ eyebrow }}
{% endif %} +{# private_dining persona block — framed room image + gilded details panel. Media via {% img %}. With no image, collapses to a single centred column so the empty media half never balloons. #} +{% set hasImage = image %} +
+
+ {% if hasImage %}
{% img image alt=title class="w-full h-auto object-cover" %}
{% endif %} +
+ {% if eyebrow %}
{{ eyebrow }}{% if not hasImage %}{% endif %}
{% endif %} {% if title %}

{{ title }}

{% endif %} - {% if description %}
{{ description|safe }}
{% endif %} - {% if seats or minimum %}
{% if seats %}
Capacity
{{ seats }}
{% endif %}{% if minimum %}
Minimum
{{ minimum }}
{% endif %}
{% endif %} + {% if description %}
{{ description|safe }}
{% endif %} + {% if seats or minimum %}
{% if seats %}
Capacity
{{ seats }}
{% endif %}{% if minimum %}
Minimum
{{ minimum }}
{% endif %}
{% endif %} {% if enquireUrl %}{{ enquireLabel|default:"Enquire" }}{% endif %}
diff --git a/manifest.yaml b/manifest.yaml index 97c3db4..8700749 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -128,6 +128,16 @@ css: margin: 0; } + /* deco-hero-compact — image-less hero: comfortable padding, no viewport-height balloon. */ + .deco-hero-compact { padding-top: 4rem; padding-bottom: 4rem; } + @media (min-width: 768px) { + .deco-hero-compact { padding-top: 6rem; padding-bottom: 6rem; } + } + + /* deco-stats — capacity/minimum figure row: guaranteed column gap so values never collide. */ + .deco-stats { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; } + .deco-stats-center { justify-content: center; } + /* deco-frame — stepped ziggurat frame, layered borders + clipped corners. */ .deco-frame { position: relative; diff --git a/master_pages.json b/master_pages.json index 4713d0c..9c998f7 100644 --- a/master_pages.json +++ b/master_pages.json @@ -16,7 +16,7 @@ "page_templates": ["landing", "full-width"], "blocks": [ { "block_key": "navbar", "title": "Gilded Navigation", "content": { "menuName": "main", "logoType": "text", "logoText": { "text": "Maison Doré" } }, "slot": "marquee", "sort_order": 0 }, - { "block_key": "art-deco:reservation", "title": "Reservation Strip", "content": { "phone": "", "openTable": "", "hours": [] }, "slot": "marquee", "sort_order": 1 }, + { "block_key": "art-deco:reservation", "title": "Reservation Strip", "content": { "phone": "+1 555 0126", "openTable": "/contact", "hours": ["Dinner Tuesday to Sunday", "6pm to late"] }, "slot": "marquee", "sort_order": 1 }, { "block_key": "slot", "title": "Main Content", "content": { "slotName": "main" }, "slot": "main", "sort_order": 0 }, { "block_key": "divider", "title": "CTA Fan Divider", "content": { "variant": "ornament", "icon": "lucide:diamond" }, "slot": "cta", "sort_order": 0 }, { "block_key": "footer", "title": "Site Footer", "content": { "layout": "centered", "companyName": "Maison Doré", "tagline": "A supper club in the grand manner." }, "slot": "footer", "sort_order": 0 } diff --git a/templates/art-deco/article.ninjatpl b/templates/art-deco/article.ninjatpl index 2a3f335..9e83cb4 100644 --- a/templates/art-deco/article.ninjatpl +++ b/templates/art-deco/article.ninjatpl @@ -3,18 +3,14 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
-
{{ slots.header|safe }}
-
+
{{ slots.header|safe }}
{% if slots.main %}
{{ slots.main|safe }}
{% else %}

No content blocks assigned to this page.

{% endif %}
-
-
{{ slots.footer|safe }}
-
+
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/art-deco/default.ninjatpl b/templates/art-deco/default.ninjatpl index 15ba46e..2a85921 100644 --- a/templates/art-deco/default.ninjatpl +++ b/templates/art-deco/default.ninjatpl @@ -3,15 +3,11 @@ {{ head_html|safe }} {{ admin_banner_html|safe }} -
-
{{ slots.header|safe }}
-
+
{{ slots.header|safe }}
{% if slots.main %}{{ slots.main|safe }}{% else %}

No content blocks assigned to this page.

{% endif %}
-
-
{{ slots.footer|safe }}
-
+
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/art-deco/landing.ninjatpl b/templates/art-deco/landing.ninjatpl index 56b97f2..fc8d6c1 100644 --- a/templates/art-deco/landing.ninjatpl +++ b/templates/art-deco/landing.ninjatpl @@ -4,13 +4,11 @@ {{ admin_banner_html|safe }}
{{ slots.marquee|safe }}
-
- {% if slots.main %}
{{ slots.main|safe }}
{% endif %} +
+ {% if slots.main %}{{ slots.main|safe }}{% endif %}
{{ slots.cta|safe }}
-
-
{{ slots.footer|safe }}
-
+
{{ slots.footer|safe }}
{{ body_end_html|safe }} diff --git a/templates/overrides/art-deco/hero.ninjatpl b/templates/overrides/art-deco/hero.ninjatpl index b3259ca..63d0ec2 100644 --- a/templates/overrides/art-deco/hero.ninjatpl +++ b/templates/overrides/art-deco/hero.ninjatpl @@ -32,7 +32,7 @@ {% else %} {% set align = "center" %} {% if variant == "left-aligned" %}{% set align = "left" %}{% endif %} -
+
{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}
{% endif %}
{% endif %}
{{ herocontent(align) }}