Files
pokemon/src/components/SetIcon.astro

86 lines
3.5 KiB
Plaintext
Raw Normal View History

---
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";
import jungle from "/src/svg/set/jungle.svg?raw";
import fossil from "/src/svg/set/fossil.svg?raw";
import ascended_heroes from "/src/svg/set/ascended_heroes.svg?raw";
import expedition from "/src/svg/set/expedition.svg?raw";
import dragonvault from "/src/svg/set/dragon_vault.svg?raw";
import dragonsexalted from "/src/svg/set/dragons_exalted.svg?raw";
import ecardsample from "/src/svg/set/e-card_sample_set.svg?raw";
import emergingpowers from "/src/svg/set/emerging_powers.svg?raw";
import evolutions from "/src/svg/set/evolutions.svg?raw";
import evolvingskies from "/src/svg/set/evolving_skies.svg?raw";
const { set } = Astro.props;
const setMap = {
"ASC": ascended_heroes,
"AOR": ancient_origins,
"AQ": aquapolis,
"AR": arceus,
"ASR": astral_radiance,
"BS2": base_set_2,
"BST": battle_styles,
"BLW": black_and_white,
"BCR": boundaries_crossed,
"BKP": breakpoint,
"BKT": breakthrough,
"BRS": brilliant_stars,
"BUS": burning_shadows,
"CL": call_of_legends,
"CEL": celebrations,
"CPA": champions_path,
"CES": celestial_storm,
"CIN": crimson_invasion,
"DAA": darkness_ablaze,
"CRE": chilling_reign,
"CEC": cosmic_eclipse,
"DEX": dark_explorers,
"DET": detective_pikachu,
"DP": diamond_and_pearl,
"DCR": double_crisis,
"Dragon Majesty": dragon_majesty,
"Neo Genesis": neo_genesis,
"Jungle": jungle,
"Fossil": fossil,
"Expedition Base Set": expedition,
"Dragon Vault": dragonvault,
"Dragons Exalted": dragonsexalted,
"E-Card Sample": ecardsample,
"Emerging Powers": emergingpowers,
"Evolutions": evolutions,
"SWSH07: Evolving Skies": evolvingskies,
};
const svg = setMap[set as keyof typeof setMap] ?? "";
---
<div class="set-icon shadow-filter" set:html={svg}></div>