moved code to components for grid/cards added stickyfilter.astro

This commit is contained in:
zach
2026-02-17 07:44:41 -05:00
parent 6aa98d696f
commit 6824d224c0
5 changed files with 22 additions and 60 deletions

View File

@@ -26,10 +26,10 @@ const rarityMap = {
"Double Rare": doubleRare,
"Promo": promo,
"Special Illustration Rare": specialIllusRare,
"Ultra Rare": ultrarare, // Ultra Rare and Holo Rare use the same icon
"Ultra Rare": ultrarare,
};
const svg = rarityMap[rarity] ?? "";
const svg = rarityMap[rarity as keyof typeof rarityMap] ?? "";
---
<span class="rarity-icon h-100" set:html={svg}></span>
<div class="rarity-icon" set:html={svg}></div>