sliding modals, view transitions, accessibility, etc, etc

This commit is contained in:
zach
2026-03-11 15:21:43 -04:00
parent 7482cb9e9c
commit 3d46a48a7d
20 changed files with 708 additions and 519 deletions

View File

@@ -21,13 +21,16 @@ const energyMap = {
"Fire": fire,
"Water": water,
"Steel": steel,
"Metal": steel,
"Colorless": colorless,
"Fighting": fighting,
"Psychic": psychic,
"Electric": electric,
"Lightning": electric,
};
const svg = energyMap[energy as keyof typeof energyMap] ?? "";
if (!svg && energy) console.warn(`No energy icon found for: ${energy}`);
---
<div class="energy-icon shadow-filter" set:html={svg}></div>
<div class="energy-icon shadow-filter" role="img" aria-label={energy} set:html={svg}></div>