From 6c92f2d89610dd5f267dcf6f798b940e5adea773 Mon Sep 17 00:00:00 2001 From: "Olomana (multica agent)" Date: Fri, 6 Nov 2026 18:53:47 -0800 Subject: [PATCH] PWS-12: Match About page typography to recipe content The About page is hand-written JSX, so it never picked up the recipe styles, and its prose margins stacked with space-y and pt-6. Share the recipe tab body classes through MARKDOWN_BODY_CLASSES and use them on About, along with the recipe page header and column layout. Co-Authored-By: Claude Opus 5.5 Co-authored-by: multica-agent --- .claude/CLAUDE.md | 1 + .claude/rules/architecture.md | 1 + app/about/page.tsx | 43 ++++++++++++++++------------------- components/RecipeTabs.tsx | 17 ++------------ components/markdown-styles.ts | 18 +++++++++++++++ 5 files changed, 42 insertions(+), 38 deletions(-) create mode 100644 components/markdown-styles.ts diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 943f323..9592b49 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -39,6 +39,7 @@ components/ RecipeGridCard.tsx # Recipe grid card for listing page RecipeTabs.tsx # Tabbed recipe sections (client) RecipeMarkdown.tsx # Renders a parsed markdown tree to React (server) + markdown-styles.ts # Shared body typography classes (recipe tabs, About page) RecipeCardPanel.tsx # Recipe Card tab: card image previews (server) RecipeCardImage.tsx # Card preview that enlarges to full screen on click (client) RecipePageLayout.tsx # Recipe detail page layout (server component) diff --git a/.claude/rules/architecture.md b/.claude/rules/architecture.md index a5a83af..c02a829 100644 --- a/.claude/rules/architecture.md +++ b/.claude/rules/architecture.md @@ -18,4 +18,5 @@ - Card fonts are read from `node_modules/@fontsource/*` at build time; satori needs woff/ttf (not woff2) and doesn't support variable fonts - `lib/recipes.ts` uses Node.js `fs` — server-side only; never import in client components - Build warnings about `` vs `` in RecipeMarkdown and RecipeCardImage are intentional +- The About page is hand-written JSX, not markdown; it shares body typography with recipe tabs through `MARKDOWN_BODY_CLASSES`. Change spacing there rather than per page. Class strings must live in `components/` or `app/` — Tailwind doesn't scan `lib/` - Never add redundant ARIA roles on semantic elements (`
`, `