--- import Layout from '../layouts/Layout.astro'; import ProductCard from '../components/ProductCard.astro'; import BrandCarousel from '../components/BrandCarousel.astro'; import SearchBar from '../components/SearchBar.tsx'; import { getTrendingFromDB, getPriceDropsFromDB, getProductCount, getShopCount, getPopularModels } from '../lib/products'; const trending = await getTrendingFromDB(8); const priceDrops = await getPriceDropsFromDB(6); const totalProductsRaw = await getProductCount(); const totalShops = await getShopCount(); // Round to nice number: 726508 → "726.000" const roundedK = Math.floor(totalProductsRaw / 1000); const totalProducts = `${roundedK}.000`; const popularModels = await getPopularModels(16); ---

Vergelijk • Bespaar • Score

Vind de laagste sneaker prijs

Vergelijk prijzen bij {totalShops}+ Nederlandse shops. Mis nooit meer een deal.

{totalProducts}+ sneakers {totalShops}+ shops Dagelijks bijgewerkt

Trending

De populairste sneakers van dit moment

Bekijk alles →
{trending.map((sneaker, i) => ( ))}
{popularModels.length > 0 && (

Populaire modellen

{popularModels.map(m => ( {m.brandName} {m.name} ))}
)}

Prijsdalingen

Sneakers die net in prijs zijn gedaald

Alle deals →
{priceDrops.map((sneaker, i) => ( ))}