Compare commits
7 Commits
27eabd3181
...
3cc213dfc3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cc213dfc3 | ||
|
|
27f08dde42 | ||
|
|
6f997fc7da | ||
|
|
11fb4e1e04 | ||
|
|
813aef8520 | ||
|
|
3c87e1f8e0 | ||
|
|
0a9a0ad927 |
18
docs/adr/0001-compiled-sites-render-whole-sections.md
Normal file
18
docs/adr/0001-compiled-sites-render-whole-sections.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Compiled sites render whole sections on earthen
|
||||||
|
|
||||||
|
Decided 2026-11-20 for earthen 0.5.2, from the website factory's visual review (orchestrator WO-094, ADR 0078).
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
The website factory compiles a customer's site onto this theme and renders every page at 1280 and 390 pixels wide. The review found template defects that show on a real site as an empty region, an unreadable hero or a page wider than a phone.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
- rich-section renders one column with the text at a readable width when the section has no image. It used to keep a two-column grid with an empty media cell, so a compiled site whose about or contact section was waiting for a photo showed half the section blank.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- earthen 0.5.2 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
|
||||||
|
- No schema field changes. A site that sets the old values renders as before wherever it has an image.
|
||||||
|
|
||||||
|
Keywords: earthen, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review
|
||||||
18
docs/adr/0002-the-light-hero-scrim-meets-contrast.md
Normal file
18
docs/adr/0002-the-light-hero-scrim-meets-contrast.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# The light hero scrim meets contrast on earthen
|
||||||
|
|
||||||
|
Decided 2026-11-20 for earthen 0.5.3, from the website factory's visual review (orchestrator WO-094, ADR 0078), after ADRs 0001 and 0002 shipped.
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
The website factory compiles a customer's site onto this theme and renders every page at 1280 and 390 pixels wide. The review found template defects that show on a real site as an empty region, an unreadable hero or a page wider than a phone.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
- The "light" hero scrim is the theme background at 82% opacity, set with an inline style. At 60% the muted subheadline measured 2.2:1 against a real photo in the render review, under the AA minimum; the inline style also keeps the scrim independent of which opacity classes the generated stylesheet holds.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- earthen 0.5.3 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
|
||||||
|
- No schema field changes. A site that sets the old values renders as before wherever it has an image.
|
||||||
|
|
||||||
|
Keywords: earthen, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
# The hero scrim lets the photo show, and the footer logo sits on a plate
|
||||||
|
|
||||||
|
Decided 2026-11-20 for earthen 0.5.5, from the website factory's final render pass (orchestrator WO-096, ADR 0084).
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
The website factory compiles a customer's site onto this theme. The render pass screenshots every page at 1280 and 390 pixels and measures text over images and every button against what is behind it.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
- The light hero scrim is a radial gradient of the theme background centred on the hero text (at 35% across for the left-aligned hero): 84% at the centre, 80% out to 55% of the radius and 40% at the corners. The flat 82% scrim of the last release met contrast but washed the photo out; the text keeps the same backing while the photo reads at the edges. The render harness measures every text element over the photo (orchestrator WO-096).
|
||||||
|
- An image logo in the footer sits on a plate of the theme background. The footer is the primary colour, and when the website factory sets the primary to the brand colour, a logo drawn in that colour vanished on it (orchestrator WO-086).
|
||||||
|
- Every preset's primary, secondary, accent and destructive colour meets AA (4.5:1) with its foreground in both schemes. The render pass measures every button, and these pairs were under it: ember-loam dark destructive; mossbed dark destructive; mossbed light accent; sage-morning dark destructive; sage-morning light accent; wet-loam dark destructive. Each colour moved the least lightness (at most ten points) that reaches 4.5 with its own foreground, and a colour that could not switched its foreground to white or near-black; a token that held the same colour (the ring) moved with it. The orchestrator's brand colour step keeps whatever contrast a preset has, so a preset under AA also left a branded site under it.
|
||||||
|
- On the primary-coloured call-to-action band the primary button is the background colour with foreground text. The accent button measured 1.8:1 to 2.6:1 against the band, so it had no visible edge.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- earthen 0.5.5 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
|
||||||
|
- No schema field changes.
|
||||||
|
|
||||||
|
Keywords: presets, AA, button contrast, primaryForeground, accentForeground, earthen, hero, overlayColor, scrim, radial-gradient, contrast, footer, logo, logo plate, brand colour, WO-096, website factory, render pass
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
# The eyebrow lines up with the headline, and footer icons take the link colour
|
||||||
|
|
||||||
|
Decided 2026-11-22 for earthen 0.5.6, from the website factory's launch runs (orchestrator WO-101, ADR 0092).
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
The website factory compiles a customer's site onto this theme. Twelve launch sites built on dev on 2026-11-22 showed defects on their home pages, recorded in the orchestrator's `docs/works/evidence/WO-090/runs/RESULTS.md`; the render pass now also renders a 60 to 80 character headline with long words on every theme.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
- A left-aligned hero eyebrow has no leading rule. The rule before the eyebrow text pushed it 44 pixels (Riverstone Remedial Massage) right of the headline on the split and left-aligned heroes; the centred hero keeps a rule on each side.
|
||||||
|
- Footer icons draw in the link colour (`fill: currentColor`). The icon sprites carry no fill and would render black on the primary-coloured footer, as they did on art-deco.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- earthen 0.5.6 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
|
||||||
|
- No schema field changes. Production sites on this theme pick the change up with the automatic theme update; the regression check for sites the factory did not build compared the production release with 0.5.6 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
|
||||||
|
|
||||||
|
Keywords: eyebrow, kicker, accent rule, footer, social icon, fill currentColor, WO-101, website factory, launch runs, earthen
|
||||||
18
docs/adr/0005-hero-text-over-a-photo-sits-on-a-panel.md
Normal file
18
docs/adr/0005-hero-text-over-a-photo-sits-on-a-panel.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Hero text over a photo sits on a panel
|
||||||
|
|
||||||
|
Decided 2026-11-22 for earthen 0.5.7, from the website factory's render pass over all thirty-six blueprint and theme pairs (orchestrator WO-101, ADR 0092).
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
The website factory compiles a customer's site onto this theme, and the render pass measures every text element drawn over a photo. Earthen's centred hero lays its text over the photo under the radial light scrim of ADR 0003 (86% of the background at the centre, 80% to half the radius). On the restaurant-cafe home page the primary-coloured eyebrow and the outline button's label, which measure about 5:1 on the plain background, fell to 3.2 and 3.6 at 1280 pixels over the dark plate in the photo, and the subheadline to 4.2 at 390. Earlier passes rendered earthen only with split heroes, whose text sits beside the photo.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
- A centred or left-aligned hero with a photo sets its text on a rounded panel of the theme background at 92%, inset one rem from each side. The photo still shows around the panel; the text keeps nearly its full contrast whatever the photo holds. The split hero and a hero without a photo are unchanged.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- earthen 0.5.7 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
|
||||||
|
- No schema field changes. Production sites with a full-width hero photo show the panel after the automatic theme update; the regression check for sites the factory did not build compared the production release with 0.5.7 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
|
||||||
|
|
||||||
|
Keywords: hero, photo, panel, scrim, radial-gradient, overlayColor light, contrast, eyebrow, outline button, centered hero, WO-101, website factory, render pass, earthen
|
||||||
@ -114,6 +114,9 @@ css:
|
|||||||
/* All colour values reference the 19-token HSL custom properties so they */
|
/* All colour values reference the 19-token HSL custom properties so they */
|
||||||
/* shift with the active preset (mossbed, clay-field, wet-loam). */
|
/* shift with the active preset (mossbed, clay-field, wet-loam). */
|
||||||
|
|
||||||
|
/* Icon sprites draw in the link's colour; with no fill they stay black on the primary footer. */
|
||||||
|
[data-block-override="earthen:footer"] a svg { fill: currentColor; }
|
||||||
|
|
||||||
/* Bundled faces. The host does not yet emit @font-face for fonts.json
|
/* Bundled faces. The host does not yet emit @font-face for fonts.json
|
||||||
* (LoadedPlugin.BundledFonts is inert), so the theme declares them itself
|
* (LoadedPlugin.BundledFonts is inert), so the theme declares them itself
|
||||||
* against the served /templates/earthen/fonts/... paths. Presets set
|
* against the served /templates/earthen/fonts/... paths. Presets set
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
name = "earthen"
|
name = "earthen"
|
||||||
display_name = "Earthen"
|
display_name = "Earthen"
|
||||||
scope = "@themes"
|
scope = "@themes"
|
||||||
version = "0.5.1"
|
version = "0.5.7"
|
||||||
description = "Botanical nonprofit theme in moss, clay, sage and cream — hand-illustrated motifs for cause-driven sites."
|
description = "Botanical nonprofit theme in moss, clay, sage and cream — hand-illustrated motifs for cause-driven sites."
|
||||||
kind = "theme"
|
kind = "theme"
|
||||||
categories = ["templates"]
|
categories = ["templates"]
|
||||||
|
|||||||
12
presets.json
12
presets.json
@ -22,7 +22,7 @@
|
|||||||
"secondaryForeground": "120 25% 18%",
|
"secondaryForeground": "120 25% 18%",
|
||||||
"muted": "40 18% 92%",
|
"muted": "40 18% 92%",
|
||||||
"mutedForeground": "100 12% 38%",
|
"mutedForeground": "100 12% 38%",
|
||||||
"accent": "18 55% 48%",
|
"accent": "18 55% 44%",
|
||||||
"accentForeground": "40 30% 96%",
|
"accentForeground": "40 30% 96%",
|
||||||
"destructive": "8 70% 45%",
|
"destructive": "8 70% 45%",
|
||||||
"destructiveForeground": "40 30% 96%",
|
"destructiveForeground": "40 30% 96%",
|
||||||
@ -45,7 +45,7 @@
|
|||||||
"mutedForeground": "90 12% 60%",
|
"mutedForeground": "90 12% 60%",
|
||||||
"accent": "18 65% 58%",
|
"accent": "18 65% 58%",
|
||||||
"accentForeground": "120 18% 8%",
|
"accentForeground": "120 18% 8%",
|
||||||
"destructive": "8 70% 50%",
|
"destructive": "8 70% 45%",
|
||||||
"destructiveForeground": "40 25% 92%",
|
"destructiveForeground": "40 25% 92%",
|
||||||
"border": "120 12% 22%",
|
"border": "120 12% 22%",
|
||||||
"input": "120 12% 22%",
|
"input": "120 12% 22%",
|
||||||
@ -111,7 +111,7 @@
|
|||||||
"mutedForeground": "80 10% 58%",
|
"mutedForeground": "80 10% 58%",
|
||||||
"accent": "25 70% 55%",
|
"accent": "25 70% 55%",
|
||||||
"accentForeground": "90 20% 6%",
|
"accentForeground": "90 20% 6%",
|
||||||
"destructive": "8 70% 50%",
|
"destructive": "8 70% 44%",
|
||||||
"destructiveForeground": "60 20% 90%",
|
"destructiveForeground": "60 20% 90%",
|
||||||
"border": "90 12% 20%",
|
"border": "90 12% 20%",
|
||||||
"input": "90 12% 20%",
|
"input": "90 12% 20%",
|
||||||
@ -143,7 +143,7 @@
|
|||||||
"muted": "70 16% 90%",
|
"muted": "70 16% 90%",
|
||||||
"mutedForeground": "110 10% 40%",
|
"mutedForeground": "110 10% 40%",
|
||||||
"accent": "38 62% 48%",
|
"accent": "38 62% 48%",
|
||||||
"accentForeground": "40 30% 97%",
|
"accentForeground": "0 0% 9%",
|
||||||
"destructive": "8 70% 45%",
|
"destructive": "8 70% 45%",
|
||||||
"destructiveForeground": "40 30% 96%",
|
"destructiveForeground": "40 30% 96%",
|
||||||
"border": "90 12% 80%",
|
"border": "90 12% 80%",
|
||||||
@ -165,7 +165,7 @@
|
|||||||
"mutedForeground": "90 10% 58%",
|
"mutedForeground": "90 10% 58%",
|
||||||
"accent": "40 65% 56%",
|
"accent": "40 65% 56%",
|
||||||
"accentForeground": "140 15% 9%",
|
"accentForeground": "140 15% 9%",
|
||||||
"destructive": "8 70% 50%",
|
"destructive": "8 70% 44%",
|
||||||
"destructiveForeground": "70 18% 90%",
|
"destructiveForeground": "70 18% 90%",
|
||||||
"border": "140 10% 22%",
|
"border": "140 10% 22%",
|
||||||
"input": "140 10% 22%",
|
"input": "140 10% 22%",
|
||||||
@ -219,7 +219,7 @@
|
|||||||
"mutedForeground": "30 14% 58%",
|
"mutedForeground": "30 14% 58%",
|
||||||
"accent": "90 30% 52%",
|
"accent": "90 30% 52%",
|
||||||
"accentForeground": "20 22% 7%",
|
"accentForeground": "20 22% 7%",
|
||||||
"destructive": "6 72% 52%",
|
"destructive": "6 72% 44%",
|
||||||
"destructiveForeground": "35 25% 90%",
|
"destructiveForeground": "35 25% 90%",
|
||||||
"border": "20 14% 21%",
|
"border": "20 14% 21%",
|
||||||
"input": "20 14% 21%",
|
"input": "20 14% 21%",
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
{% if text %}<p class="mt-3 text-lg {% if background == "band" %}text-primary-foreground/80{% else %}text-muted-foreground{% endif %}" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ text }}</p>{% endif %}
|
{% if text %}<p class="mt-3 text-lg {% if background == "band" %}text-primary-foreground/80{% else %}text-muted-foreground{% endif %}" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ text }}</p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap items-center justify-center gap-3 {% if background != "split" %}mt-8{% else %}shrink-0{% endif %}">
|
<div class="flex flex-wrap items-center justify-center gap-3 {% if background != "split" %}mt-8{% else %}shrink-0{% endif %}">
|
||||||
{% if primaryUrl and primaryLabel %}<a href="{{ primaryUrl }}" class="earthen-cta inline-flex items-center gap-2 px-6 py-3 font-semibold">{{ primaryLabel }}<svg width="16" height="16" class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
|
{% if primaryUrl and primaryLabel %}<a href="{{ primaryUrl }}" class="earthen-cta inline-flex items-center gap-2 px-6 py-3 font-semibold"{% if background == "band" %} style="background-color:hsl(var(--background));color:hsl(var(--foreground));"{% endif %}>{{ primaryLabel }}<svg width="16" height="16" class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
|
||||||
{% if secondaryUrl and secondaryLabel %}<a href="{{ secondaryUrl }}" class="inline-flex items-center rounded-lg px-6 py-3 font-semibold transition-colors {% if background == "band" %}hover:bg-white/10{% else %}hover:bg-muted{% endif %}" style="{% if background == "band" %}border:1.5px solid hsl(var(--primary-foreground) / 0.4);color:hsl(var(--primary-foreground));{% else %}border:1.5px solid hsl(var(--border));color:hsl(var(--primary));{% endif %}">{{ secondaryLabel }}</a>{% endif %}
|
{% if secondaryUrl and secondaryLabel %}<a href="{{ secondaryUrl }}" class="inline-flex items-center rounded-lg px-6 py-3 font-semibold transition-colors {% if background == "band" %}hover:bg-white/10{% else %}hover:bg-muted{% endif %}" style="{% if background == "band" %}border:1.5px solid hsl(var(--primary-foreground) / 0.4);color:hsl(var(--primary-foreground));{% else %}border:1.5px solid hsl(var(--border));color:hsl(var(--primary));{% endif %}">{{ secondaryLabel }}</a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -9,13 +9,13 @@
|
|||||||
<div class="{% if fullWidth %}w-full px-4 sm:px-6 lg:px-8{% else %}max-w-7xl mx-auto px-4 sm:px-6 lg:px-8{% endif %} py-16">
|
<div class="{% if fullWidth %}w-full px-4 sm:px-6 lg:px-8{% else %}max-w-7xl mx-auto px-4 sm:px-6 lg:px-8{% endif %} py-16">
|
||||||
{% if fl == "minimal" %}
|
{% if fl == "minimal" %}
|
||||||
<div class="flex flex-col sm:flex-row items-center justify-between gap-6">
|
<div class="flex flex-col sm:flex-row items-center justify-between gap-6">
|
||||||
<div class="flex items-center gap-3">{% if logo %}<img src="{{ logo }}" alt="{{ companyName }}" class="h-8 w-auto"/>{% elif companyName %}<span class="text-lg font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);">{{ companyName }}</span>{% endif %}{% if tagline %}<span class="text-sm text-primary-foreground/70 hidden sm:inline">{{ tagline }}</span>{% endif %}</div>
|
<div class="flex items-center gap-3">{% if logo %}<span class="inline-flex rounded-md p-2" style="background-color:hsl(var(--background));"><img src="{{ logo }}" alt="{{ companyName }}" class="h-8 w-auto"/></span>{% elif companyName %}<span class="text-lg font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);">{{ companyName }}</span>{% endif %}{% if tagline %}<span class="text-sm text-primary-foreground/70 hidden sm:inline">{{ tagline }}</span>{% endif %}</div>
|
||||||
{{ sociallinks("") }}
|
{{ sociallinks("") }}
|
||||||
</div>
|
</div>
|
||||||
{{ legalbar() }}
|
{{ legalbar() }}
|
||||||
{% elif fl == "centered" %}
|
{% elif fl == "centered" %}
|
||||||
<div class="flex flex-col items-center text-center gap-5">
|
<div class="flex flex-col items-center text-center gap-5">
|
||||||
{% if logo %}<img src="{{ logo }}" alt="{{ companyName }}" class="h-10 w-auto"/>{% elif companyName %}<span class="text-2xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);">{{ companyName }}</span>{% endif %}
|
{% if logo %}<span class="inline-flex rounded-md p-2" style="background-color:hsl(var(--background));"><img src="{{ logo }}" alt="{{ companyName }}" class="h-10 w-auto"/></span>{% elif companyName %}<span class="text-2xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);">{{ companyName }}</span>{% endif %}
|
||||||
<div class="flex items-center gap-4 w-56" aria-hidden="true"><span class="flex-1 h-px" style="background-color:hsl(var(--primary-foreground) / 0.3);"></span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="28" height="28" class="earthen-glyph" style="color:hsl(var(--primary-foreground) / 0.85);" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M24 44V8"></path><path d="M24 12c-4-2-7-2-9 0M24 12c4-2 7-2 9 0"></path><path d="M24 18c-6-2-10-1-12 1M24 18c6-2 10-1 12 1"></path><path d="M24 25c-7-1-12 0-14 3M24 25c7-1 12 0 14 3"></path><path d="M24 33c-7 0-11 2-12 5M24 33c7 0 11 2 12 5"></path></svg><span class="flex-1 h-px" style="background-color:hsl(var(--primary-foreground) / 0.3);"></span></div>
|
<div class="flex items-center gap-4 w-56" aria-hidden="true"><span class="flex-1 h-px" style="background-color:hsl(var(--primary-foreground) / 0.3);"></span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="28" height="28" class="earthen-glyph" style="color:hsl(var(--primary-foreground) / 0.85);" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M24 44V8"></path><path d="M24 12c-4-2-7-2-9 0M24 12c4-2 7-2 9 0"></path><path d="M24 18c-6-2-10-1-12 1M24 18c6-2 10-1 12 1"></path><path d="M24 25c-7-1-12 0-14 3M24 25c7-1 12 0 14 3"></path><path d="M24 33c-7 0-11 2-12 5M24 33c7 0 11 2 12 5"></path></svg><span class="flex-1 h-px" style="background-color:hsl(var(--primary-foreground) / 0.3);"></span></div>
|
||||||
{% if tagline %}<p class="max-w-md text-sm text-primary-foreground/70">{{ tagline }}</p>{% endif %}
|
{% if tagline %}<p class="max-w-md text-sm text-primary-foreground/70">{{ tagline }}</p>{% endif %}
|
||||||
{% if columns %}<nav class="flex flex-wrap items-center justify-center gap-x-6 gap-y-2">{% for col in columns %}{% for item in col.items %}<a href="{{ item.url|default:'#' }}"{% if item.open_in_new_tab %} target="_blank" rel="noopener"{% endif %} class="text-sm text-primary-foreground/80 hover:text-accent transition-colors">{{ item.label }}</a>{% endfor %}{% endfor %}</nav>{% endif %}
|
{% if columns %}<nav class="flex flex-wrap items-center justify-center gap-x-6 gap-y-2">{% for col in columns %}{% for item in col.items %}<a href="{{ item.url|default:'#' }}"{% if item.open_in_new_tab %} target="_blank" rel="noopener"{% endif %} class="text-sm text-primary-foreground/80 hover:text-accent transition-colors">{{ item.label }}</a>{% endfor %}{% endfor %}</nav>{% endif %}
|
||||||
@ -26,7 +26,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8">
|
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8">
|
||||||
<div class="col-span-2 lg:col-span-2">
|
<div class="col-span-2 lg:col-span-2">
|
||||||
{% if logo %}<img src="{{ logo }}" alt="{{ companyName }}" class="h-9 w-auto"/>{% elif companyName %}<span class="text-xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);">{{ companyName }}</span>{% endif %}
|
{% if logo %}<span class="inline-flex rounded-md p-2" style="background-color:hsl(var(--background));"><img src="{{ logo }}" alt="{{ companyName }}" class="h-9 w-auto"/></span>{% elif companyName %}<span class="text-xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);">{{ companyName }}</span>{% endif %}
|
||||||
{% if tagline %}<p class="mt-3 max-w-xs text-sm text-primary-foreground/70">{{ tagline }}</p>{% endif %}
|
{% if tagline %}<p class="mt-3 max-w-xs text-sm text-primary-foreground/70">{{ tagline }}</p>{% endif %}
|
||||||
{% if address or email or phone %}<address class="mt-4 not-italic text-sm text-primary-foreground/70 space-y-1">{% if address %}<div>{{ address }}</div>{% endif %}{% if email %}<div><a href="mailto:{{ email }}" class="hover:text-accent transition-colors">{{ email }}</a></div>{% endif %}{% if phone %}<div><a href="tel:{{ phone }}" class="hover:text-accent transition-colors">{{ phone }}</a></div>{% endif %}</address>{% endif %}
|
{% if address or email or phone %}<address class="mt-4 not-italic text-sm text-primary-foreground/70 space-y-1">{% if address %}<div>{{ address }}</div>{% endif %}{% if email %}<div><a href="mailto:{{ email }}" class="hover:text-accent transition-colors">{{ email }}</a></div>{% endif %}{% if phone %}<div><a href="tel:{{ phone }}" class="hover:text-accent transition-colors">{{ phone }}</a></div>{% endif %}</address>{% endif %}
|
||||||
{{ sociallinks("mt-5") }}
|
{{ sociallinks("mt-5") }}
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
{% set hasImage = backgroundImage %}
|
{% set hasImage = backgroundImage %}
|
||||||
{% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %}
|
{% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %}
|
||||||
{% macro herocontent(align) %}
|
{% macro herocontent(align) %}
|
||||||
{% if eyebrowText %}<div class="mb-5 flex items-center gap-3 {% if align == "center" %}justify-center{% endif %}"><span class="h-px w-8" style="background-color:hsl(var(--accent));"></span><span class="text-xs font-semibold uppercase tracking-wider" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif);color:hsl(var(--primary));">{{ eyebrowText }}</span><span class="h-px w-8" style="background-color:hsl(var(--accent));"></span></div>{% endif %}
|
{% if eyebrowText %}<div class="mb-5 flex items-center gap-3 {% if align == "center" %}justify-center{% endif %}">{% if align == "center" %}<span class="h-px w-8" style="background-color:hsl(var(--accent));"></span>{% endif %}<span class="text-xs font-semibold uppercase tracking-wider" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif);color:hsl(var(--primary));">{{ eyebrowText }}</span><span class="h-px w-8" style="background-color:hsl(var(--accent));"></span></div>{% endif %}
|
||||||
{% if headlineText %}<h1 class="text-4xl sm:text-5xl lg:text-6xl font-semibold leading-tight" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary));">{{ headlineText }}</h1>{% endif %}
|
{% if headlineText %}<h1 class="text-4xl sm:text-5xl lg:text-6xl font-semibold leading-tight" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary));">{{ headlineText }}</h1>{% endif %}
|
||||||
{% if subText %}<h2 class="mt-5 text-xl sm:text-2xl max-w-2xl{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif);">{{ subText }}</h2>{% endif %}
|
{% if subText %}<h2 class="mt-5 text-xl sm:text-2xl max-w-2xl{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif);">{{ subText }}</h2>{% endif %}
|
||||||
{% if descText %}<p class="mt-4 max-w-xl leading-relaxed{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));">{{ descText }}</p>{% endif %}
|
{% if descText %}<p class="mt-4 max-w-xl leading-relaxed{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));">{{ descText }}</p>{% endif %}
|
||||||
@ -33,7 +33,7 @@
|
|||||||
{% set align = "center" %}
|
{% set align = "center" %}
|
||||||
{% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
|
{% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
|
||||||
<section data-block-override="earthen:hero" class="hero relative flex flex-col overflow-hidden bg-background text-foreground bg-paper-grain {% if minHeight == "screen" %}min-h-screen{% elif minHeight == "50vh" %}min-h-[50vh]{% elif minHeight == "auto" %}min-h-[400px]{% else %}min-h-[75vh]{% endif %} {% if verticalAlign == "top" %}justify-start pt-20{% elif verticalAlign == "bottom" %}justify-end pb-20{% else %}justify-center{% endif %}{% if class %} {{ class }}{% endif %}">
|
<section data-block-override="earthen:hero" class="hero relative flex flex-col overflow-hidden bg-background text-foreground bg-paper-grain {% if minHeight == "screen" %}min-h-screen{% elif minHeight == "50vh" %}min-h-[50vh]{% elif minHeight == "auto" %}min-h-[400px]{% else %}min-h-[75vh]{% endif %} {% if verticalAlign == "top" %}justify-start pt-20{% elif verticalAlign == "bottom" %}justify-end pb-20{% else %}justify-center{% endif %}{% if class %} {{ class }}{% endif %}">
|
||||||
{% if hasImage %}<div class="absolute inset-0 z-0">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div class="absolute inset-0 {% if overlayColor == "light" %}bg-background/60{% elif overlayColor == "primary" %}bg-primary/50{% elif overlayOpacity <= 30 %}bg-black/30{% elif overlayOpacity <= 50 %}bg-black/50{% elif overlayOpacity <= 70 %}bg-black/70{% else %}bg-black/80{% endif %}"></div>{% endif %}</div>{% endif %}
|
{% if hasImage %}<div class="absolute inset-0 z-0">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div{% if overlayColor == "light" %} style="background: radial-gradient(ellipse at {% if variant == "left-aligned" %}35%{% else %}50%{% endif %} 50%, hsl(var(--background) / 0.86) 0%, hsl(var(--background) / 0.8) 50%, hsl(var(--background) / 0.2) 100%);"{% endif %} class="absolute inset-0 {% if overlayColor == "light" %}{% elif overlayColor == "primary" %}bg-primary/50{% elif overlayOpacity <= 30 %}bg-black/30{% elif overlayOpacity <= 50 %}bg-black/50{% elif overlayOpacity <= 70 %}bg-black/70{% else %}bg-black/80{% endif %}"></div>{% endif %}</div>{% endif %}
|
||||||
<div class="relative z-10 mx-auto w-full max-w-4xl px-4 sm:px-6 lg:px-8 {% if variant == "left-aligned" %}text-left{% else %}text-center{% endif %}">{{ herocontent(align) }}</div>
|
<div class="relative z-10 mx-auto w-full max-w-4xl px-4 sm:px-6 lg:px-8 {% if variant == "left-aligned" %}text-left{% else %}text-center{% endif %}{% if hasImage %} rounded-2xl py-10{% endif %}"{% if hasImage %} style="width: calc(100% - 2rem); background-color: hsl(var(--background) / 0.92);"{% endif %}>{{ herocontent(align) }}</div>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
{# rich-section override — earthen: paper ground, botanical eyebrow rule, Fraunces heading with crayon underline, organic media frame. Field reads, background/mediaPosition order control flow, body|safe and the {% img %} call preserved verbatim from the builtin; only classes/style/fonts reskinned. #}
|
{# rich-section override — earthen: paper ground, botanical eyebrow rule, Fraunces heading with crayon underline, organic media frame. Field reads, background/mediaPosition order control flow, body|safe and the {% img %} call preserved verbatim from the builtin; only classes/style/fonts reskinned. #}
|
||||||
<section data-block-override="earthen:rich-section" class="py-12 md:py-20 {% if background == "muted" %}bg-muted text-foreground{% elif background == "card" %}bg-card text-card-foreground{% else %}bg-background text-foreground{% endif %}{% if class %} {{ class }}{% endif %}">
|
<section data-block-override="earthen:rich-section" class="py-12 md:py-20 {% if background == "muted" %}bg-muted text-foreground{% elif background == "card" %}bg-card text-card-foreground{% else %}bg-background text-foreground{% endif %}{% if class %} {{ class }}{% endif %}">
|
||||||
<div class="mx-auto grid max-w-6xl items-center gap-10 px-4 md:grid-cols-2 md:gap-16">
|
<div class="mx-auto grid max-w-6xl items-center gap-10 px-4 {% if media %}md:grid-cols-2{% endif %} md:gap-16">
|
||||||
<div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %}">
|
<div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %} {% if not media %}max-w-3xl{% endif %}">
|
||||||
{% if eyebrow %}<div class="mb-3 flex items-center gap-3"><span class="h-px w-8" style="background-color:hsl(var(--accent));"></span><p class="text-xs font-semibold uppercase tracking-wider" style="color:hsl(var(--primary));">{{ eyebrow }}</p></div>{% endif %}
|
{% if eyebrow %}<div class="mb-3 flex items-center gap-3"><span class="h-px w-8" style="background-color:hsl(var(--accent));"></span><p class="text-xs font-semibold uppercase tracking-wider" style="color:hsl(var(--primary));">{{ eyebrow }}</p></div>{% endif %}
|
||||||
{% if heading %}<h2 class="mt-2 inline-block crayon-underline text-3xl md:text-4xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary))">{{ heading }}</h2>{% endif %}
|
{% if heading %}<h2 class="mt-2 inline-block crayon-underline text-3xl md:text-4xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary))">{{ heading }}</h2>{% endif %}
|
||||||
{% if body %}<div class="mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-primary [&_a]:underline [&_strong]:text-foreground" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ body|safe }}</div>{% endif %}
|
{% if body %}<div class="mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-primary [&_a]:underline [&_strong]:text-foreground" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ body|safe }}</div>{% endif %}
|
||||||
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="earthen-cta mt-6 inline-flex items-center gap-2 px-5 py-3 font-semibold">{{ ctaLabel }}<svg width="16" height="16" class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
|
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="earthen-cta mt-6 inline-flex items-center gap-2 px-5 py-3 font-semibold">{{ ctaLabel }}<svg width="16" height="16" class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
|
{% if media %}<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
|
||||||
{% if media %}<div class="earthen-blob-soft earthen-paper-frame overflow-hidden">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>{% endif %}
|
<div class="earthen-blob-soft earthen-paper-frame overflow-hidden">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>
|
||||||
</div>
|
</div>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user