master
mahdi 3 years ago
parent 352613dde9
commit 2b918b6a4a
  1. 36
      src/components/productDesign/ProductDesign.js

@ -83,23 +83,25 @@ const ProductDesign = ({
className={`w-full sm:w-60 md:w-72 mx-1 rounded-lg shadow-sm p-2 my-3 ${productHolderBorder} ${productHolderBorderColor}`} className={`w-full sm:w-60 md:w-72 mx-1 rounded-lg shadow-sm p-2 my-3 ${productHolderBorder} ${productHolderBorderColor}`}
> >
<div className="w-full relative"> <div className="w-full relative">
{discountPricePercent && ( <div className="absolute left-2 top-2">
<div className="bg-discountPriceBg absolute left-2 top-4 rounded-md px-2 py-1"> {discountPricePercent && (
<p className="text-discountPriceTitle font-bold text-xs"> <div className="bg-discountPriceBg rounded-md px-2 py-2">
23<span>%</span> <p className="text-discountPriceTitle font-bold text-xs">
</p> 23<span>%</span>
</div> </p>
)} </div>
{likeBtn && ( )}
<div className="bg-likeBtnBg absolute left-2 top-10 rounded-md p-1"> {likeBtn && (
<img src={heart} alt="" className="w-full" /> <div className="bg-likeBtnBg rounded-md py-1 flex justify-center">
</div> <img src={heart} alt="" className="w-5" />
)} </div>
{discount && ( )}
<div className="absolute left-2 top-20 rounded-md"> {discount && (
<img src={discountImg} alt="" className="w-full" /> <div className="absolute rounded-md">
</div> <img src={discountImg} alt="" className="w-full" />
)} </div>
)}
</div>
{/* img Holder */} {/* img Holder */}
<div className="flex-shrink-0"> <div className="flex-shrink-0">
{verticalImg && ( {verticalImg && (

Loading…
Cancel
Save