created energy and set component (a la rarity) and added to CardModal.astro

This commit is contained in:
zach
2026-02-20 09:11:36 -05:00
parent df3f68a9b2
commit dfa6fac344
173 changed files with 599 additions and 12 deletions

View File

@@ -0,0 +1,67 @@
---
import ancient_origins from "/src/svg/set/ancient_origins.svg?raw";
import aquapolis from "/src/svg/set/aquapolis.svg?raw";
import arceus from "/src/svg/set/arceus.svg?raw";
import astral_radiance from "/src/svg/set/astral_radiance.svg?raw";
import base_set_2 from "/src/svg/set/base_set_2.svg?raw";
import battle_styles from "/src/svg/set/battle_styles.svg?raw";
import best_of_game from "/src/svg/set/best_of_game.svg?raw";
import black_and_white from "/src/svg/set/black_and_white.svg?raw";
import boundaries_crossed from "/src/svg/set/boundaries_crossed.svg?raw";
import box_topper from "/src/svg/set/box_topper.svg?raw";
import breakpoint from "/src/svg/set/breakpoint.svg?raw";
import breakthrough from "/src/svg/set/breakthrough.svg?raw";
import brilliant_stars from "/src/svg/set/brilliant_stars.svg?raw";
import burning_shadows from "/src/svg/set/burning_shadows.svg?raw";
import call_of_legends from "/src/svg/set/call_of_legends.svg?raw";
import celebrations from "/src/svg/set/celebrations.svg?raw";
import champions_path from "/src/svg/set/champions_path.svg?raw";
import celestial_storm from "/src/svg/set/celestial_storm.svg?raw";
import crimson_invasion from "/src/svg/set/crimson_invasion.svg?raw";
import darkness_ablaze from "/src/svg/set/darkness_ablaze.svg?raw";
import chilling_reign from "/src/svg/set/chilling_reign.svg?raw";
import cosmic_eclipse from "/src/svg/set/cosmic_eclipse.svg?raw";
import dark_explorers from "/src/svg/set/dark_explorers.svg?raw";
import detective_pikachu from "/src/svg/set/detective_pikachu.svg?raw";
import diamond_and_pearl from "/src/svg/set/diamond_and_pearl.svg?raw";
import double_crisis from "/src/svg/set/double_crisis.svg?raw";
import dragon_majesty from "/src/svg/set/dragon_majesty.svg?raw";
import neo_genesis from "/src/svg/set/neo_genesis.svg?raw";
const { set } = Astro.props;
const setMap = {
"Ancient Origins": ancient_origins,
"Aquapolis": aquapolis,
"Arceus": arceus,
"Astral Radiance": astral_radiance,
"Base Set 2": base_set_2,
"Battle Styles": battle_styles,
"Best of Game": best_of_game,
"Black and White": black_and_white,
"Boundaries Crossed": boundaries_crossed,
"Box Topper": box_topper,
"Breakpoint": breakpoint,
"Breakthrough": breakthrough,
"Brilliant Stars": brilliant_stars,
"Burning Shadows": burning_shadows,
"Call of Legends": call_of_legends,
"Celebrations": celebrations,
"Champions Path": champions_path,
"Celestial Storm": celestial_storm,
"Crimson Invasion": crimson_invasion,
"Darkness Ablaze": darkness_ablaze,
"Chilling Reign": chilling_reign,
"Cosmic Eclipse": cosmic_eclipse,
"Dark Explorers": dark_explorers,
"Detective Pikachu": detective_pikachu,
"Diamond and Pearl": diamond_and_pearl,
"Double Crisis": double_crisis,
"Dragon Majesty": dragon_majesty,
"Neo Genesis": neo_genesis,
};
const svg = setMap[set as keyof typeof setMap] ?? "";
---
<div class="set-icon shadow-filter" set:html={svg}></div>