From 1ac4cf91e254403c727c15e724d7b3e626a64eca Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Wed, 22 Apr 2026 14:43:40 -0700 Subject: [PATCH] refine(site): Antidote pairs use compact inline visual examples, not page screenshots MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced the tall page-screenshot "before" images with the self-contained inline visual examples from the /anti-patterns catalog (VISUAL_EXAMPLES dict). Three before/after pairs: 1. Gradient Text — purple-blue "Build the Future" gradient text vs. a solid italic Cormorant "Build the future." with magenta emphasis. 2. Side-Tab Cards — the ban signature, thick colored left stripe on an otherwise neutral card vs. a hairline-bordered card with a mono kicker and italic title. 3. Hero-Metric Template — the SaaS gradient "10M+" with tiny stats vs. a single "+18.4%" italic insight with real explanation and "from checkout fixes" causal tail. Panels are now ~140px tall (was 4:3 aspect of full-page screenshots), so the whole section is roughly half as tall. No large images, no risk of the "Before" screenshots reading as Impeccable output. The After panels sit on warm cream (brand surface) while the Before panels use neutral cool white to further distance them visually. --- public/css/workflow.css | 32 +++++++++++++++------ public/index.html | 64 +++++++++++++++++------------------------ public/privacy.html | 3 ++ 3 files changed, 53 insertions(+), 46 deletions(-) diff --git a/public/css/workflow.css b/public/css/workflow.css index ede16c0af..ef8de1304 100644 --- a/public/css/workflow.css +++ b/public/css/workflow.css @@ -3684,15 +3684,29 @@ .antidote-pair-figure { position: relative; margin: 0; - aspect-ratio: 4 / 3; + min-height: 140px; border-radius: 8px; background: var(--color-paper); border: 1px solid var(--color-mist); overflow: hidden; transition: box-shadow 260ms var(--ease-out); + display: flex; + align-items: center; + justify-content: center; + padding: 20px 18px; } .antidote-pair-figure--before { - filter: saturate(1.05); + background: oklch(98% 0 0); +} +.antidote-pair-figure--after { + background: var(--color-cream); +} +.ab-slot { + width: 100%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; } .antidote-pair-figure img { width: 100%; @@ -3703,23 +3717,23 @@ } .antidote-pair-figure figcaption { position: absolute; - top: 10px; - left: 10px; + top: 8px; + right: 8px; z-index: 2; font-family: var(--font-mono); - font-size: 10px; + font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; - padding: 3px 8px; + padding: 2px 8px; border-radius: 3px; - background: oklch(100% 0 0 / 0.88); + background: oklch(100% 0 0 / 0.9); color: var(--color-ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } -.antidote-pair-figure--before figcaption { color: oklch(35% 0.15 25); } -.antidote-pair-figure--after figcaption { color: oklch(45% 0.18 145); } +.antidote-pair-figure--before figcaption { color: oklch(35% 0.15 25); background: oklch(98% 0.04 25 / 0.9); } +.antidote-pair-figure--after figcaption { color: oklch(45% 0.18 145); background: oklch(96% 0.04 145 / 0.9); } .antidote-pair:hover .antidote-pair-figure { box-shadow: 0 14px 28px oklch(0% 0 0 / 0.1); } diff --git a/public/index.html b/public/index.html index a832df1df..727e8ed85 100644 --- a/public/index.html +++ b/public/index.html @@ -247,71 +247,58 @@

25 named anti-patterns, detected on your code and in your browser. Before, and what Impeccable steers toward instead.

- - + +
- Synthwave AI landing page, purple gradient hero +
+
Build the Future
Gradient text kills scannability.
+
Before
-
01 - Purple Gradients + Gradient Text
- - + +
- Dashboard with cards nested inside cards +
+
Alert title
Thick colored stripe on one side.
+
Before
-
02 - Cardocalypse + Side-Tab Cards
- - + +
- Hero-metric template layout +
+
10M+
Active users
99.9% uptime200ms p50
+
Before
-
@@ -1210,5 +1197,8 @@ + + + diff --git a/public/privacy.html b/public/privacy.html index 3a41097f0..4139e711e 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -77,5 +77,8 @@

Contact

Questions about this policy? Open an issue on GitHub or reach out to @pbakaus.

+ + +