--- import Layout from '../layouts/Main.astro'; import NavItems from '../components/NavItems.astro'; import NavBar from '../components/NavBar.astro'; export const prerender = false; import pokedexList from '../data/pokedex.json'; import Footer from '../components/Footer.astro'; const searchParams = Astro.url.searchParams; const query = searchParams.get('q') || '*'; // Get random # (0001–1025) const randomNumber = String(Math.floor(Math.random() * 1025) + 1).padStart(4, "0"); // Image path const pokedexImage = `/404/pokedex/${randomNumber}.png`; // Find Pokémon from JSON const pokemon = pokedexList.find(p => p["#"] === randomNumber); // If not found (rare), fallback const pokemonName = pokemon?.Name || "Unknown Pokémon"; ---

404 - Page Not Found

Sorry, the page you are looking for does not exist.

Return to the home page or search for another Pokémon.

{pokemonName}

???