color update

This commit is contained in:
Samandar Turgunboyev
2025-12-17 14:21:51 +05:00
parent efd75cb836
commit d934fcca13
5 changed files with 36 additions and 59 deletions

View File

@@ -252,26 +252,6 @@ const ProductDetail = () => {
</div>
</div>
{/* Supplier/Agency Information Section */}
<div className="border border-gray-200 rounded-lg mb-4 bg-gradient-to-r from-blue-50 to-indigo-50">
<div className="flex items-center gap-2">
<div className="w-fit h-full rounded-lg overflow-hidden">
<Image
src={product.supplier.logo || '/placeholder.svg'}
alt={product.supplier.name}
width={60}
height={60}
className="w-full h-full object-contain p-2"
/>
</div>
<div className="flex-1">
<h4 className="font-bold text-gray-800 text-lg mb-1 line-clamp-1">
{product.supplier.name}
</h4>
</div>
</div>
</div>
{/* Quantity Selector */}
<div className="mb-6">
<label className="text-gray-700 font-medium mb-2 block">
@@ -310,9 +290,9 @@ const ProductDetail = () => {
<button
onClick={addToCart}
disabled={!product.inStock}
className={`flex-1 py-4 rounded-lg font-semibold text-white flex items-center justify-center gap-2 transition ${
className={`flex-1 py-4 rounded-lg cursor-pointer font-semibold text-white flex items-center justify-center gap-2 transition ${
product.inStock
? 'bg-blue-600 hover:bg-blue-700'
? 'bg-green-600 hover:bg-green-700'
: 'bg-gray-400 cursor-not-allowed'
}`}
>