@port60/template-kit 0.4.0 → 0.4.2

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.2",
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,31 @@ 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
+ }
155
+
156
+ /* Vista + form (1.5.2): the widget rides the seam — grid pulled up over the band (under the
157
+ 280px floor), gradient filling where the image ends; narrow screens stack back underneath. */
158
+ .lq-homehero--vista-form { padding-bottom: 2.6rem; }
159
+ .lq-vista-overlap { position: relative; z-index: 1; margin-top: -240px; align-items: start; }
160
+ @media (max-width: 899px) {
161
+ .lq-vista-overlap { margin-top: 0; padding-top: 1.6rem; }
162
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starter",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
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 + giving form: the donation widget returns to the right-hand column, riding over the photograph and continuing onto the gradient below it — nothing stacks, nothing pushes."
44
44
  }
@@ -31,32 +31,48 @@
31
31
  {% endif %}
32
32
  {% assign heroFraming = section.photoFraming | default: 'fill' %}
33
33
  {% if heroCount > 0 and heroFraming == 'whole' %}
34
+ {% if section.givingStyle == 'button' %}
34
35
  <section class="lq-homehero lq-homehero--vista{% if heroCount > 1 %} lq-homehero--carousel{% endif %}">
35
36
  <div class="lq-vista">
36
37
  <img class="lq-vista-sizer" src="{{ section.images.first.imageUrl }}" alt="{{ section.images.first.alt }}" style="object-position: {{ heroFocus }}" fetchpriority="high" decoding="async">
37
38
  {% if heroCount > 1 %}{% island 'hero_carousel' %}{% else %}<div class="lq-vista-scrim" aria-hidden="true"></div>{% endif %}
39
+ <div class="lq-vista-copy">
40
+ <div class="container">
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
+ <a class="button button-primary" href="{{ section.primaryHref | default: '/donate' }}">{{ section.primaryLabel | default: 'Donate now' }}</a>
46
+ <a class="button" href="{{ section.secondaryHref | default: '/about' }}">{{ section.secondaryLabel | default: 'Our story' }}</a>
47
+ </div>
48
+ </div>
49
+ </div>
38
50
  </div>
39
- <div class="container lq-homehero-inner">
51
+ </section>
52
+ {% else %}
53
+ {% comment %} Form mode: the grid pulls up over the band — copy on the photo, the widget riding
54
+ the seam onto the gradient below (never a stacked strip). {% endcomment %}
55
+ <section class="lq-homehero lq-homehero--vista lq-homehero--vista-form{% if heroCount > 1 %} lq-homehero--carousel{% endif %}">
56
+ <div class="lq-vista">
57
+ <img class="lq-vista-sizer" src="{{ section.images.first.imageUrl }}" alt="{{ section.images.first.alt }}" style="object-position: {{ heroFocus }}" fetchpriority="high" decoding="async">
58
+ {% if heroCount > 1 %}{% island 'hero_carousel' %}{% else %}<div class="lq-vista-scrim" aria-hidden="true"></div>{% endif %}
59
+ </div>
60
+ <div class="container lq-homehero-inner lq-vista-overlap">
40
61
  <div>
41
62
  <p class="lq-kicker">{{ section.eyebrow | default: brand.name }}</p>
42
63
  <h1>{{ section.title | default: brand.tagline | default: brand.name }}</h1>
43
64
  {% if section.lead %}<p class="lq-homehero-lead">{{ section.lead }}</p>{% endif %}
44
65
  <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
66
  <a class="button button-primary" href="#donate">{{ section.primaryLabel | default: 'Donate now' }}</a>
49
- {% endif %}
50
67
  <a class="button" href="{{ section.secondaryHref | default: '/about' }}">{{ section.secondaryLabel | default: 'Our story' }}</a>
51
68
  </div>
52
69
  </div>
53
- {% unless section.givingStyle == 'button' %}
54
70
  <aside id="donate">
55
71
  {% island 'donation_widget' %}
56
72
  </aside>
57
- {% endunless %}
58
73
  </div>
59
74
  </section>
75
+ {% endif %}
60
76
  {% else %}
61
77
  <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 %}>
62
78
  {% if heroCount > 1 %}{% island 'hero_carousel' %}{% endif %}