@ -6,8 +6,8 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => {
console . log ( items . alertIcon ) ;
return (
< section className = "bg-white p-4 w-fit" >
< div className = "flex flex-col bg-gray-200 rounded px-4 py-2" >
< >
< div className = "w-full flex flex-col bg-surface rounded px-4 py-2" >
{ items . map ( ( item , index ) => (
< >
< div
@ -18,13 +18,13 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => {
< img src = { item . icon } alt = "" className = "w-8" / >
< div className = "flex flex-col mr-3" >
< p className = "text-sm" >
< span className = "font-sans bold" > { item . subtitle } < / s p a n >
< span className = "font-bold" > { item . subtitle } < / s p a n >
{ item . title }
< / p >
{ item . customerSatisfaction && (
< p className = "text-xs mt-1" >
رضایت خریداران :
< span className = "font-sansbold text-green-500 mr-2" >
< span className = "font-bold text-primaryDark mr-2" >
{ item . customerSatisfactionPercent }
< / s p a n >
< / p >
@ -40,16 +40,16 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => {
) }
< / d i v >
{ Number ( index ) !== items . length - 1 && (
< div className = "border-b border-gray-300 " > < / d i v >
< div className = "border-b border-surfaceBorder " > < / d i v >
) }
< / >
) ) }
< 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-ligh t" > تومان < / s p a n >
< span className = "text-sm text-primaryTex t" > تومان < / s p a n >
< / p >
< p className = "text-xs font-light text-gray-600 " >
< p className = "text-xs text-primaryText " >
با خرید این کالا
< span > { discountPrice } < / s p a n >
صرفه جویی کنید
@ -58,11 +58,11 @@ const ProductStatusCard = ({ 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"
/ >
< / d i v >
< / d i v >
< div className = "bg-gray-200 rounded px-4 py-2 mt-2 flex flex-row items-center" >
< div className = "w-full bg-surface rounded px-4 py-2 mt-2 flex flex-row items-center" >
< div >
< img
src = "images/ProductStatusCardarrow-icon.svg"
@ -71,16 +71,16 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => {
/ >
< / d i v >
< div className = "flex flex-col mr-5" >
< h2 className = "text-sm font-sansbold text-blue-900 " >
< h2 className = "text-sm font-bold text-primaryText " >
بازگشت بی چون و چرا
< / h 2 >
< p className = "text-xs mt-2 leading-5 text-justify" >
< p className = "text-xs mt-2 leading-5 text-justify text-primaryText " >
از اونجایی که ما خیلی خوب هستیم و دوستون داریم در صورتی که از کالایی
خوشتون نیومده میتونید بی قید و شرط پس بدید
< / p >
< / d i v >
< / d i v >
< / s e c t i o n >
< / >
) ;
} ;