sliding modals, view transitions, accessibility, etc, etc
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user