wire simple pages to PageRenderer (stage 3)

Home, Content (about/delivery/privacy/terms), Contact, and ErrorHTML
now render through the generic PageRenderer instead of hardcoded
templates. Block wrapper divs enable CSS grid targeting. Featured
products block supports layout/card_variant/columns settings for
different page contexts. Contact page uses CSS grid on data-block-type
attributes for two-column layout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-26 18:29:20 +00:00
parent ca9f32fa42
commit c69e51051f
12 changed files with 147 additions and 85 deletions

View File

@@ -66,7 +66,7 @@ defmodule BerrypodWeb.PageRendererTest do
test "delivery page renders hero" do
html = render_page("delivery", %{content_blocks: []})
assert html =~ "Delivery information"
assert html =~ "Delivery &amp; returns"
end
test "privacy page renders hero" do
@@ -78,7 +78,7 @@ defmodule BerrypodWeb.PageRendererTest do
test "terms page renders hero" do
html = render_page("terms", %{content_blocks: []})
assert html =~ "Terms &amp; conditions"
assert html =~ "Terms of service"
end
test "contact page renders hero, form, and sidebar blocks" do