@port60/template-kit 0.4.1 → 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.
|
|
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": {
|
package/starter/assets/theme.css
CHANGED
|
@@ -152,3 +152,11 @@ body { font-family: ' IBM Plex Sans Arabic', var(--p60s-siteFont, 'Inter'), ui-s
|
|
|
152
152
|
.lq-vista-copy { position: static; padding: 1.8rem 0 0; }
|
|
153
153
|
.lq-vista-sizer { min-height: 160px; }
|
|
154
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
|
+
}
|
package/starter/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starter",
|
|
3
|
-
"version": "1.5.
|
|
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
|
|
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,6 +31,7 @@
|
|
|
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">
|
|
@@ -41,24 +42,37 @@
|
|
|
41
42
|
<h1>{{ section.title | default: brand.tagline | default: brand.name }}</h1>
|
|
42
43
|
{% if section.lead %}<p class="lq-homehero-lead">{{ section.lead }}</p>{% endif %}
|
|
43
44
|
<div class="lq-homehero-actions">
|
|
44
|
-
{% if section.givingStyle == 'button' %}
|
|
45
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
46
|
<a class="button" href="{{ section.secondaryHref | default: '/about' }}">{{ section.secondaryLabel | default: 'Our story' }}</a>
|
|
50
47
|
</div>
|
|
51
48
|
</div>
|
|
52
49
|
</div>
|
|
53
50
|
</div>
|
|
54
|
-
|
|
55
|
-
|
|
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">
|
|
61
|
+
<div>
|
|
62
|
+
<p class="lq-kicker">{{ section.eyebrow | default: brand.name }}</p>
|
|
63
|
+
<h1>{{ section.title | default: brand.tagline | default: brand.name }}</h1>
|
|
64
|
+
{% if section.lead %}<p class="lq-homehero-lead">{{ section.lead }}</p>{% endif %}
|
|
65
|
+
<div class="lq-homehero-actions">
|
|
66
|
+
<a class="button button-primary" href="#donate">{{ section.primaryLabel | default: 'Donate now' }}</a>
|
|
67
|
+
<a class="button" href="{{ section.secondaryHref | default: '/about' }}">{{ section.secondaryLabel | default: 'Our story' }}</a>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
56
70
|
<aside id="donate">
|
|
57
71
|
{% island 'donation_widget' %}
|
|
58
72
|
</aside>
|
|
59
73
|
</div>
|
|
60
|
-
{% endunless %}
|
|
61
74
|
</section>
|
|
75
|
+
{% endif %}
|
|
62
76
|
{% else %}
|
|
63
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 %}>
|
|
64
78
|
{% if heroCount > 1 %}{% island 'hero_carousel' %}{% endif %}
|