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

@@ -123,6 +123,7 @@ import mega_evolutions from "/src/svg/set/mega_evolutions.svg?raw";
import phantasmal_flames from "/src/svg/set/phantasmal_flames.svg?raw";
import destined_rivals from "/src/svg/set/destined_rivals.svg?raw";
import surging_sparks from "/src/svg/set/surging_sparks.svg?raw";
import team_rocket from "/src/svg/set/team_rocket.svg?raw";
const { set } = Astro.props;
@@ -130,7 +131,7 @@ const setMap = {
"JU": jungle,
"FO": fossil,
"B2": base_set_2,
"TR": battle_styles,
"TR": team_rocket,
"G1": gym_heroes,
"G2": gym_challenge,
"SI": southern_islands,
@@ -254,6 +255,7 @@ const setMap = {
};
const svg = setMap[set as keyof typeof setMap] ?? "";
if (!svg && set) console.warn(`No set icon found for: ${set}`);
---
<div class="set-icon shadow-filter" set:html={svg}></div>
<div class="set-icon shadow-filter" role="img" aria-label={set} set:html={svg}></div>