Build the Salar Store storefront and connect products, blogs, and home specials to the Meshkee API.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-16 01:36:29 +03:30
co-authored by Cursor
parent 2783305f07
commit 7d26eaa838
113 changed files with 3269 additions and 96 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { Product } from "@/lib/data";
import { ProductCard } from "./ProductCard";
export function ProductGrid({ products }: { products: Product[] }) {
if (!products.length) {
return <p className="py-16 text-center text-sm text-zinc-500">محصولی یافت نشد.</p>;
}
return (
<div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3">
{products.map((product) => (
<div key={product.id} className="rounded-xl border border-black/5 bg-white">
<ProductCard product={product} />
</div>
))}
</div>
);
}