Add darkened photo hero to shop page
deploy / deploy (push) Successful in 6s

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>
This commit is contained in:
2026-07-30 11:08:14 -04:00
parent 3b4aed64aa
commit 2c9f3c6d15
3 changed files with 56 additions and 1 deletions
+48
View File
@@ -128,6 +128,54 @@ main {
font-size: 0.95rem; font-size: 0.95rem;
} }
/* Shop hero */
.shop-hero {
position: relative;
height: 260px;
border-radius: 6px;
overflow: hidden;
margin: 0.5rem 0 1.5rem;
}
.shop-hero-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 30%;
}
.shop-hero-overlay {
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(20,32,22,0.35) 0%, rgba(28,42,26,0.55) 55%, var(--paper) 100%),
linear-gradient(90deg, rgba(20,32,22,0.45) 0%, rgba(20,32,22,0.05) 45%);
}
.shop-hero-copy {
position: relative;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 1.75rem;
}
.shop-hero-copy h1 { margin-bottom: 0.3rem; }
.shop-hero-copy p {
color: var(--ink-soft);
margin: 0;
max-width: 34ch;
font-size: 0.95rem;
}
@media (max-width: 620px) {
.shop-hero { height: 220px; }
}
/* Product grid */ /* Product grid */
.product-grid { .product-grid {
display: grid; display: grid;
+7
View File
@@ -1,5 +1,12 @@
{{ define "main" }} {{ 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> <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"> <div class="product-grid">
{{ range .Site.Data.products }} {{ range .Site.Data.products }}
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB