|
|
|
@ -6,7 +6,7 @@ const AddToCart2 = ({ items, productPrice, discountPrice }) => { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<section className="w-fit"> |
|
|
|
|
<div className="flex flex-col bg-gray-200 rounded px-4 py-2"> |
|
|
|
|
<div className="flex flex-col bg-surface rounded px-4 py-2"> |
|
|
|
|
{items.map((item, index) => ( |
|
|
|
|
<> |
|
|
|
|
<div |
|
|
|
@ -14,16 +14,16 @@ const AddToCart2 = ({ items, productPrice, discountPrice }) => { |
|
|
|
|
key={index} |
|
|
|
|
> |
|
|
|
|
<div className="flex flex-row items-center"> |
|
|
|
|
<img src={item.icon} alt="" className="w-8" /> |
|
|
|
|
<img src={item.icon} alt="icon" className="w-8" /> |
|
|
|
|
<div className="flex flex-col mr-3"> |
|
|
|
|
<p className="text-sm"> |
|
|
|
|
<span className="font-sansbold">{item.subtitle}</span> |
|
|
|
|
<p className="text-sm text-primaryText"> |
|
|
|
|
<span className="font-bold">{item.subtitle}</span> |
|
|
|
|
{item.title} |
|
|
|
|
</p> |
|
|
|
|
{item.customerSatisfaction && ( |
|
|
|
|
<p className="text-xs mt-1"> |
|
|
|
|
<p className="text-xs mt-1 text-primaryText"> |
|
|
|
|
رضایت خریداران: |
|
|
|
|
<span className="font-sansbold text-green-500 mr-2"> |
|
|
|
|
<span className="font-bold text-primary mr-2"> |
|
|
|
|
{item.customerSatisfactionPercent} |
|
|
|
|
</span> |
|
|
|
|
</p> |
|
|
|
@ -39,16 +39,16 @@ const AddToCart2 = ({ items, productPrice, discountPrice }) => { |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{Number(index) !== items.length - 1 && ( |
|
|
|
|
<div className="border-b border-gray-300"></div> |
|
|
|
|
<div className="border-b border-surfaceBorder"></div> |
|
|
|
|
)} |
|
|
|
|
</> |
|
|
|
|
))} |
|
|
|
|
<div className="flex flex-col items-center"> |
|
|
|
|
<p className="text-lg text-blue-600 mt-5 mb-2"> |
|
|
|
|
<p className="text-lg text-primary mt-5 mb-2"> |
|
|
|
|
{productPrice} |
|
|
|
|
<span className="text-sm text-gray-700 font-light">تومان</span> |
|
|
|
|
<span className="text-sm text-primaryText">تومان</span> |
|
|
|
|
</p> |
|
|
|
|
<p className="text-xs font-light text-gray-600"> |
|
|
|
|
<p className="text-xs text-primaryText"> |
|
|
|
|
با خرید این کالا |
|
|
|
|
<span>{discountPrice}</span> |
|
|
|
|
صرفه جویی کنید |
|
|
|
@ -57,11 +57,11 @@ const AddToCart2 = ({ items, productPrice, discountPrice }) => { |
|
|
|
|
<div className="w-full flex flex-col items-center"> |
|
|
|
|
<Button |
|
|
|
|
text={"افزودن به سبد خرید"} |
|
|
|
|
className="my-4 text-white rounded-sm text-sm p-2 bg-blue-400 hover:bg-blue-600 hover:bg-opacity-90" |
|
|
|
|
className="my-4 text-white rounded text-sm p-2 bg-primary hover:bg-primaryDark hover:bg-opacity-90" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div className="bg-gray-200 rounded px-4 py-2 mt-2 flex flex-row items-center"> |
|
|
|
|
<div className="bg-surface rounded px-4 py-2 mt-2 flex flex-row items-center"> |
|
|
|
|
<div> |
|
|
|
|
<img |
|
|
|
|
src="images/AddToCart2arrow-icon.svg" |
|
|
|
@ -70,10 +70,10 @@ const AddToCart2 = ({ items, productPrice, discountPrice }) => { |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<div className="flex flex-col mr-5"> |
|
|
|
|
<h2 className="text-sm font-sansbold text-blue-900"> |
|
|
|
|
<h2 className="text-sm font-bold text-primaryDark"> |
|
|
|
|
بازگشت بی چون و چرا |
|
|
|
|
</h2> |
|
|
|
|
<p className="text-xs mt-2 leading-5 text-justify"> |
|
|
|
|
<p className="text-xs mt-2 leading-5 text-justify text-primaryText"> |
|
|
|
|
از اونجایی که ما خیلی خوب هستیم و دوستون داریم در صورتی که از کالایی |
|
|
|
|
خوشتون نیومده میتونید بی قید و شرط پس بدید |
|
|
|
|
</p> |
|
|
|
|