28 Commits

Author SHA1 Message Date
Alex Dunmow
fda63ee2fa feat(coffee): retina Wave B gallery screenshots (home/about/article x light+dark @2x)
Recapture at --scale 2 (2880x1800) with bundled fonts live: Fraunces
headings + Work Sans body now load via @font-face. Replaces the pre-retina
1440x900@1x set. featured_pour placeholder icon confirmed sane (~96px),
balloon bug stays dead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 21:09:57 +08:00
Alex Dunmow
71673c3d01 bump to 0.3.1 2026-07-06 21:02:24 +08:00
Alex Dunmow
fed5f50823 feat(coffee): bundled-font @font-face + preset typography (fonts workaround)
Bundle Fraunces/Work Sans/Caveat via @font-face against served
/templates/coffee/fonts/*.woff2 (host never emits @font-face for
bundled_fonts). Set typography.fontHeading=Fraunces / fontBody=Work Sans
in all 5 presets so --font-heading/--font-body resolve to the bundled
families. gotham@1.2.0 precedent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 21:02:16 +08:00
Alex Dunmow
0212c79ea5 bump to 0.3.0 2026-07-06 10:34:33 +08:00
Alex Dunmow
beca13796d fix(coffee): pin explicit width/height on all <use> icon SVGs + Wave B gallery screenshots
Root cause: featured_pour's empty-media placeholder used an external <use>
SVG (svg class=h-24 w-24 + use href=/icons/lucide.svg#coffee) sized ONLY by
Tailwind utilities. The host Tailwind JIT does not reliably emit utility
classes used solely in a theme block template, so h-24/w-24 could be dropped
from the generated stylesheet; the SVG (no viewBox, no intrinsic size) then
ballooned to fill its aspect-square parent (~350-500px cup silhouettes over
the hero/blog cards). Fix pins width/height geometry attributes on every
<use> icon SVG so size is CSS-independent and deterministic.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 10:34:17 +08:00
Alex Dunmow
698fd7e05e bump to 0.2.4 2026-07-06 10:28:22 +08:00
Alex Dunmow
8760a1d5ce bump to 0.2.3 2026-07-06 10:22:22 +08:00
Alex Dunmow
fac05dee87 chore: rename dev host localdev.blockninjacms.com -> blockninja.dev 2026-07-05 20:50:30 +08:00
Alex Dunmow
707b1f1ce1 refactor: replace hand-rolled utility CSS with Tailwind classes (host build now scans theme templates) 2026-07-05 17:56:00 +08:00
Alex Dunmow
c2dd751f6b fix(coffee): remediate torn-mask clipping, empty-media & JIT-dropped layout
Layout/whitespace bugs:
- .coffee-torn-top/bottom used mask-size:100% 100%, stretching the 12px torn
  SVG over the whole element and masking away ~40% of tall cards as a wavy
  transparent cut-out — the cause of the clipped hero region, featured_pour
  and footer. Reworked to a fixed ~13px deckled band per edge over a solid
  gradient (plus a combined top+bottom selector).
- featured_pour showed an editor-style "Add a hero image" placeholder to
  visitors when the demo seed ships no image; now a tasteful token-based coffee
  glyph on the secondary surface. Same for the image block ("Add an image").
- hours today-highlight was accent-foreground text over a 15% accent tint
  (light-on-light, unreadable "Sunday"); now a readable full-row band with an
  accent left edge (class moved from <th> to <tr>).

Mobile responsiveness / JIT robustness (host Tailwind does not reliably compile
arbitrary/responsive utilities out of theme templates):
- Replaced min-h-[50vh|75vh|400px|320px], md:grid-cols-[2fr_3fr] and
  md:grid-cols-2 in hero/featured_pour/menu-list/hours with explicit CSS helper
  classes carrying real media queries; base is single-column so every grid
  collapses to 1 col on mobile regardless of the JIT.

Semantic tokens only; no version bump.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 17:25:36 +08:00
Alex Dunmow
4b5a37b7d3 fix(coffee): collapse multi-line ninjatpl comments to single-line (load-fatal lexer error) 2026-07-05 17:06:50 +08:00
Alex Dunmow
1ee4a32cdf bump to 0.2.2 2026-07-05 16:51:02 +08:00
Alex Dunmow
f657f15ad7 bump to 0.2.1 2026-07-05 16:44:47 +08:00
Alex Dunmow
537fe0ffc3 docs: publishing README 2026-07-05 13:42:54 +08:00
Alex Dunmow
023bd23d96 feat(coffee): Wave A override contract — 49 builtin overrides, 7 page templates, persona blocks, seed
WO-TF-013. Bring the coffee theme up to the frozen OVERRIDE-CONTRACT:

- 49 mandatory builtin overrides in templates/overrides/coffee/ (chrome,
  marketing, primitives, commerce/local, blog family, auth surface,
  page-suggestions), each re-skinned in cafe/roastery chrome over the builtin
  data model. Legacy button/heading/image/text field reads updated to the new
  builtin contract (link/label/style, media/text).
- Signature moves: chalkboard menu panel (menu-list), hand-drawn doodle
  dividers, torn-paper edges, kraft-tag stamped buttons, circular roast stamps,
  hours "today" highlight. Semantic tokens only; CSS-first motion with
  prefers-reduced-motion fallbacks.
- 7 page templates: default, landing, article, full-width, blog-index, contact,
  auth.
- Blocks rework: deleted the five builtin-duplicating theme blocks (menu_board,
  hours_strip, location_card, footer, doodle_divider) — now overrides. Kept/added
  4 persona blocks: featured_pour, roast_profile, loyalty_card, brew_guide.
- 5 dual-mode presets (mode "both"), all 19 tokens, light and dark tuned.
- Bundled Fraunces / Work Sans / Caveat woff2 (OFL, latin subset, license
  recorded); fonts.json populated; all font-family via var(--font-*). Updated
  RECOMMENDED_FONTS.md, added RECOMMENDED_ICONS.md; required_icon_packs declared.
- Themed email-safe wrapper retained (tables, inline styles).
- Master pages rebuilt on builtin keys. Demo seed (demo:true): home, about,
  blog + 3 posts, contact (form + contact_submissions data table + row_inserted
  email-admins workflow), login. Cafe voice.

make (codeless build + verify) and check-safety both exit 0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 10:57:54 +08:00
Alex Dunmow
9680039b39 fix: restore hours_strip today-highlight via context.now weekday (WO-WZ-021)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:39:18 +08:00
Alex Dunmow
1a6cc30202 feat: convert to codeless .bnp — templates + manifest, Go/templ deleted (WO-WZ-021)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:30:42 +08:00
Alex Dunmow
9d9a996e4a chore: repo hygiene for the wasm era (WO-WZ-015 fix round)
Replace the retired .so Makefile with the wasm/.bnp convention (build /
verify / archive-check / publish via ninja plugin build), gitignore *.so
and *.bnp artifacts, and refresh the stale [compatibility] block_core
constraint to the v0.15 era.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 00:10:19 +08:00
Alex Dunmow
164d90c07c wasm port (WO-WZ-015): reactor-mode wasip1 guest, core v0.15.2
Add wasmguest.Serve(Registration) boilerplate and bump block/core to v0.15.2
for the .so->wasm migration. Built + published as .bnp to the dev registry.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 22:11:12 +08:00
Alex Dunmow
85f3175f98 bump to 0.1.2 2026-07-03 22:09:22 +08:00
Alex Dunmow
e758b907cf chore: declare templates category (themes carry categories) v0.1.1 2026-06-26 21:47:01 +08:00
Alex Dunmow
4f267a8e78 bump to 0.1.1 2026-06-26 00:33:39 +08:00
Alex Dunmow
ca3cf2980c chore: showcase preview.png + align block/core to v0.14.1 2026-06-26 00:33:39 +08:00
Alex Dunmow
0f6a62e26a Add plugin.mod 2026-06-25 15:10:56 +08:00
Alex Dunmow
b58c92ff33 chore: bump core to v0.14.0
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 13:42:31 +08:00
Alex Dunmow
88057becc8 chore: bump core to v0.13.1
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 22:30:47 +08:00
Alex Dunmow
9c3d829200 deps: bump block/core to v0.12.4
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-08 20:49:04 +08:00
Alex Dunmow
11c6c8c63e initial: theme plugin coffee
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/coffee.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:22 +08:00