@port60/template-kit 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@port60/template-kit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Build Port60 site templates locally: scaffold, live-preview, validate against the platform contract, and package for studio upload. AI-agent ready — every scaffold ships AGENTS.md and validate emits machine-readable JSON.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -132,3 +132,23 @@ body { font-family: ' IBM Plex Sans Arabic', var(--p60s-siteFont, 'Inter'), ui-s
132
132
  }
133
133
  .lq-homehero--vista .lq-homehero-inner { padding-top: 2.4rem; }
134
134
  .lq-homehero--vista .hero-carousel { position: absolute; inset: 0; z-index: 0; }
135
+
136
+ /* Vista 1.5.1: copy ON the photograph (strengthened lower scrim); the widget follows in its
137
+ own strip; narrow screens flow the copy back underneath. */
138
+ .lq-vista-copy { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem 0 2rem; z-index: 1; }
139
+ .lq-homehero--vista .lq-vista-scrim,
140
+ .lq-homehero--vista .hero-slide-scrim {
141
+ background: linear-gradient(
142
+ 180deg,
143
+ color-mix(in srgb, var(--bg) 38%, transparent) 0%,
144
+ color-mix(in srgb, var(--bg) 10%, transparent) 38%,
145
+ color-mix(in srgb, var(--bg-tint) 82%, transparent) 100%
146
+ );
147
+ }
148
+ .lq-vista-sizer { min-height: 280px; }
149
+ .lq-vista-widget { padding: 2.2rem 0 0; display: flex; justify-content: center; }
150
+ .lq-vista-widget aside { width: min(560px, 100%); }
151
+ @media (max-width: 720px) {
152
+ .lq-vista-copy { position: static; padding: 1.8rem 0 0; }
153
+ .lq-vista-sizer { min-height: 160px; }
154
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starter",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "format": "port60-liquid@1",
5
5
  "label": "Starter",
6
6
  "description": "The reference template for the Port60 dialect — the developer docs' worked example and the base to copy when building your own. 1.1.0 adds the layout slot: the template owns the header, navigation and footer chrome.",
@@ -40,5 +40,5 @@
40
40
  }
41
41
  ]
42
42
  },
43
- "changelog": "Vista framing: 'show the whole photo' adapts the hero to the photograph's own shape (height-clamped) — wide landscape shots stay fully visible instead of cropping to fill."
43
+ "changelog": "Vista polish: your headline and buttons now sit ON the photograph (the treatment keeps them readable) instead of stacking below it — the hero no longer doubles in height."
44
44
  }
@@ -35,27 +35,29 @@
35
35
  <div class="lq-vista">
36
36
  <img class="lq-vista-sizer" src="{{ section.images.first.imageUrl }}" alt="{{ section.images.first.alt }}" style="object-position: {{ heroFocus }}" fetchpriority="high" decoding="async">
37
37
  {% if heroCount > 1 %}{% island 'hero_carousel' %}{% else %}<div class="lq-vista-scrim" aria-hidden="true"></div>{% endif %}
38
- </div>
39
- <div class="container lq-homehero-inner">
40
- <div>
41
- <p class="lq-kicker">{{ section.eyebrow | default: brand.name }}</p>
42
- <h1>{{ section.title | default: brand.tagline | default: brand.name }}</h1>
43
- {% if section.lead %}<p class="lq-homehero-lead">{{ section.lead }}</p>{% endif %}
44
- <div class="lq-homehero-actions">
45
- {% if section.givingStyle == 'button' %}
46
- <a class="button button-primary" href="{{ section.primaryHref | default: '/donate' }}">{{ section.primaryLabel | default: 'Donate now' }}</a>
47
- {% else %}
48
- <a class="button button-primary" href="#donate">{{ section.primaryLabel | default: 'Donate now' }}</a>
49
- {% endif %}
50
- <a class="button" href="{{ section.secondaryHref | default: '/about' }}">{{ section.secondaryLabel | default: 'Our story' }}</a>
38
+ <div class="lq-vista-copy">
39
+ <div class="container">
40
+ <p class="lq-kicker">{{ section.eyebrow | default: brand.name }}</p>
41
+ <h1>{{ section.title | default: brand.tagline | default: brand.name }}</h1>
42
+ {% if section.lead %}<p class="lq-homehero-lead">{{ section.lead }}</p>{% endif %}
43
+ <div class="lq-homehero-actions">
44
+ {% if section.givingStyle == 'button' %}
45
+ <a class="button button-primary" href="{{ section.primaryHref | default: '/donate' }}">{{ section.primaryLabel | default: 'Donate now' }}</a>
46
+ {% else %}
47
+ <a class="button button-primary" href="#donate">{{ section.primaryLabel | default: 'Donate now' }}</a>
48
+ {% endif %}
49
+ <a class="button" href="{{ section.secondaryHref | default: '/about' }}">{{ section.secondaryLabel | default: 'Our story' }}</a>
50
+ </div>
51
51
  </div>
52
52
  </div>
53
- {% unless section.givingStyle == 'button' %}
53
+ </div>
54
+ {% unless section.givingStyle == 'button' %}
55
+ <div class="container lq-vista-widget">
54
56
  <aside id="donate">
55
57
  {% island 'donation_widget' %}
56
58
  </aside>
57
- {% endunless %}
58
59
  </div>
60
+ {% endunless %}
59
61
  </section>
60
62
  {% else %}
61
63
  <section class="lq-homehero{% if heroPhoto %} lq-homehero--photo{% endif %}{% if heroCount > 1 %} lq-homehero--carousel{% endif %}"{% if heroPhoto %} style="background-image: url('{{ heroPhoto }}'); background-position: {{ heroFocus }}"{% endif %}>