--- /** * ProductTile.astro * --------------------------------------------------------------------------- * Compact storefront tile for a product line: the first example image (from the * product's `images` array), the title, the summary, and a "View details" hint. * Wraps the whole tile in a link to the product page. * * The full image carousel lives on the product page; this is just the storefront * teaser. ProductCard.astro (specs-only) is used on the detail pages. */ import Icon from '@components/Icon.astro'; import type { Product } from '@data/store-products'; interface Props { product: Product; href: string; } const { product, href } = Astro.props; const cover = product.images[0]; --- {cover && (
{cover.alt} {product.images.length > 1 && ( {product.images.length} )}
)}
{product.title}

{product.summary}

View details