Files
sunfloweracres-site/layouts/shop/list.html
T
will 2c9f3c6d15
deploy / deploy (push) Successful in 6s
Add darkened photo hero to shop page
Deliberately using the low-res thumbnail the client dropped in the repo
(180x280px) so the pixelation is visible live — the treatment itself is
the right direction, it just needs a real high-res source photo. No
customers yet, so safe to ship as a visible placeholder rather than a
mockup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 11:08:14 -04:00

49 lines
1.7 KiB
HTML

{{ define "main" }}
<div class="shop-hero">
<img class="shop-hero-img" src="{{ "images/shop-hero.jpg" | relURL }}" alt="">
<div class="shop-hero-overlay"></div>
<div class="shop-hero-copy">
<h1>{{ .Title }}</h1>
<p>Small-batch, cold-processed, cured for six weeks &mdash; here's what's ready now.</p>
</div>
</div>
<div class="product-grid">
{{ range .Site.Data.products }}
<div class="product-card">
<img src="{{ .image | relURL }}" alt="{{ .name }}">
<div class="body">
<span class="status-pill {{ .status }}">
{{ if eq .status "available" }}Available
{{ else if eq .status "low" }}Low Stock
{{ else }}Out of Stock{{ end }}
</span>
<h3>{{ .name }}</h3>
<p class="desc">{{ .description }}</p>
<p class="price">${{ .price }}</p>
{{ if eq .status "low" }}
<p class="low-note">Orders may take a bit longer to ship.</p>
{{ end }}
{{ if eq .status "out" }}
<span class="buy-btn disabled">Out of Stock</span>
{{ else if .stripe_payment_link }}
<a class="buy-btn enabled" href="{{ .stripe_payment_link }}">Buy &mdash; ${{ .price }}</a>
{{ else }}
<span class="buy-btn disabled">Checkout coming soon</span>
{{ end }}
</div>
</div>
{{ end }}
</div>
<div class="reorder-box">
<h2>Already ordered from us?</h2>
<p>Enter your email to see what you got last time.</p>
<form onsubmit="return false;">
<input type="email" placeholder="you@example.com" disabled>
<button type="submit" disabled>Look up my orders</button>
</form>
<p class="demo-note">This box is a preview &mdash; it'll work once checkout is connected, since it looks up real past orders.</p>
</div>
{{ end }}