first commit

This commit is contained in:
2025-06-29 07:12:20 -04:00
parent 6612f40d9b
commit cfcc4c480e
16 changed files with 3156 additions and 767 deletions

View File

@@ -0,0 +1,26 @@
type Product = {
id: string;
name: string;
image_url: string;
brand: { name: string };
description?: string;
price?: number;
vendor?: string;
};
export function ProductCard({ product }: { product: Product }) {
return (
<div className="border rounded-xl p-4 shadow hover:shadow-md transition">
<img
src={product.image_url}
alt={product.name}
className="w-full h-40 object-contain mb-4"
/>
<h3 className="text-lg font-semibold">{product.name}</h3>
<p className="text-sm text-gray-500">{product.brand?.name}</p>
{product.price && (
<p className="text-md font-bold mt-2">${product.price.toFixed(2)}</p>
)}
</div>
);
}