From 51c390d6e5fd56a4b4c16f9083f0046ad8022b66 Mon Sep 17 00:00:00 2001 From: Lucas Kalil Date: Sun, 14 Jun 2026 01:06:16 -0300 Subject: [PATCH] docs: document stadium SVG cleanup and aspect ratio rationale --- .agents/project-memory.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.agents/project-memory.md b/.agents/project-memory.md index c3cc8dc..47ebbdb 100644 --- a/.agents/project-memory.md +++ b/.agents/project-memory.md @@ -242,6 +242,15 @@ Follow `how-refresh-data.md` (project root). In short: - **Sync incremental:** a action mantém `.ftp-deploy-sync-state.json` no servidor; só reenvia arquivos alterados. Não comitar esse arquivo (vive só no servidor). - **Gotcha:** se a Hostinger não aceitar FTPS explícito, trocar `protocol` para `ftp`. Se o site ficar em subpasta, lembrar do gotcha #7 (paths relativos) — já está OK no projeto. +### Stadium SVG cleanup (2026-06-14) +- **All 16 `assets/images/stadiums/*.svg` stripped of the card chrome**: removed the `.card` background rect, top/bottom accent bars, `name`/`city`/`cap` `` elements, divider ``s, and the now-unused `.card`/`.name`/`.city`/`.cap`/`.div` style rules — `stadiums.js` already renders name/city/capacity as HTML, so the SVG no longer duplicates them. +- **`viewBox` cropped to just the `` illustration** (~10px padding) per file, and the fixed `width="300" height="400"` attrs removed so the SVG's intrinsic aspect ratio matches its `viewBox` — needed for `.stadium-img { aspect-ratio: ...; object-fit: cover }` to crop correctly instead of showing a letterboxed 3:4 image. +- **White rectangular shapes still visible at the top of some cards (BBVA, Lumen, BMO) are intentional** — they're each stadium's press-box/scoreboard tower (`class="void"`, connected to the bowl by thin lines), not leftover text artifacts. Don't remove them. +- If adding a new stadium SVG, follow this trimmed structure: `` (no width/height) → `