From 0300e5a54f3bdb47181651f69015be4579e776cd Mon Sep 17 00:00:00 2001 From: austin Date: Sun, 26 Jul 2026 21:15:37 -0500 Subject: [PATCH] Sections and cards: three grids, two quiet panels and five headings become three names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Counted first, as with the last sweep. A grid of cards was written three times with three different sets of breakpoints and gaps, so cards on different pages lined up differently for no reason anyone chose. A tinted aside card existed twice, hand-rolled, with different borders. A section heading existed five ways: centred with one margin, centred with another, left-aligned with a blurb, left without. Now `card-grid`, `panel-quiet` and a `section-head` fragment (with a cream-on-sage twin for the dark bands). The catering small print and the contact page's "ordering for a crowd?" card are the same object now, which is what they always were. TWO THINGS THE SCREENSHOTS DECIDED, not taste: Three prices go three-up from md, while the shared card grid waits for lg. A grid of photos is fine two-wide; three prices are a comparison, and 2 + 1 on a laptop strands the third size on its own row. And the per-table column count is entirely in one classappend rather than overriding `card-grid`, because Tailwind emits grid-cols-1, -2, -3 in that order — so a `grid-cols-3` from the shared class beats a `grid-cols-2` written beside it in the markup, whatever the markup says. Two classes for one property, winner decided by the stylesheet: the same trap that stopped `hidden` from hiding the open-now line, and I had already written it before catching it. A one-size and a two-size table were both wrong; proved the fix by building a real two-size table through the admin and looking at it, then deleting it again. 61 tests. Co-Authored-By: Claude Opus 5 (1M context) --- src/main/resources/templates/catering.html | 24 ++++++++++++------- src/main/resources/templates/contact.html | 2 +- .../templates/fragments/opening.html | 18 ++++++++++++++ src/main/resources/templates/home.html | 10 ++++---- src/main/resources/templates/products.html | 2 +- src/main/styles/components.css | 19 +++++++++++++++ 6 files changed, 59 insertions(+), 16 deletions(-) diff --git a/src/main/resources/templates/catering.html b/src/main/resources/templates/catering.html index cb1096e..9589318 100644 --- a/src/main/resources/templates/catering.html +++ b/src/main/resources/templates/catering.html @@ -34,18 +34,24 @@ alignment the aggregate guarantees. */-->
-
-

Office boxes

-

- Mini pastries for a morning meeting. -

-
+
-
+
+ : 'sm:grid-cols-2 md:grid-cols-3')">
@@ -89,7 +95,7 @@ three cards led to the same place, since an enquiry is about the table rather than the size, and the label read "Ask about the 15–20 people" on the tables whose sizes are headcounts. */--> -
+

Good to know

    diff --git a/src/main/resources/templates/contact.html b/src/main/resources/templates/contact.html index 756fb18..bb79a3d 100644 --- a/src/main/resources/templates/contact.html +++ b/src/main/resources/templates/contact.html @@ -89,7 +89,7 @@
-
+

Ordering for a crowd?

Goodie boxes, party packages and wedding desserts have their own page, with sizes and prices. diff --git a/src/main/resources/templates/fragments/opening.html b/src/main/resources/templates/fragments/opening.html index 44a74d3..c3ba8fb 100644 --- a/src/main/resources/templates/fragments/opening.html +++ b/src/main/resources/templates/fragments/opening.html @@ -36,6 +36,24 @@

One line about the page.

+ +
+

What people come in for

+

A line.

+
+ + +
+

Before you order

+

A line.

+
+