|
|
|
@ -1,9 +1,10 @@ |
|
|
|
|
import React from "react"; |
|
|
|
|
import "./ProductDesign.scss"; |
|
|
|
|
import StarRating from "../starRating/StarRating"; |
|
|
|
|
|
|
|
|
|
import book from "../../assets/images/goldon.png"; |
|
|
|
|
import heart from "../../assets/icons/vuesax-linear-heart.svg"; |
|
|
|
|
import discountImg from "../../assets/icons/discount.png"; |
|
|
|
|
// import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
|
|
|
|
|
|
const ProductDesign = ({ |
|
|
|
|
colors, |
|
|
|
@ -89,524 +90,8 @@ const ProductDesign = ({ |
|
|
|
|
{/* star holder */} |
|
|
|
|
{star && ( |
|
|
|
|
<div className="flex items-center mt-2"> |
|
|
|
|
<ul className="flex"> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<span className="text-xs text-productContent font-bold"> |
|
|
|
|
39 |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* price holder */} |
|
|
|
|
<div |
|
|
|
|
className={`flex items-center justify-between ${priceDirection}`} |
|
|
|
|
> |
|
|
|
|
{/* price */} |
|
|
|
|
<div className="mt-2"> |
|
|
|
|
<div |
|
|
|
|
className={`${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "inline" : "flex" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
<span className="text-xs text-borderColor ml-2">قیمت</span> |
|
|
|
|
{discountPrice && ( |
|
|
|
|
<p className="line-through text-xs text-borderColor mr-2"> |
|
|
|
|
145<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
<p className="product-price-num inline"> |
|
|
|
|
145.000<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
{/* add to cart */} |
|
|
|
|
<button |
|
|
|
|
className={`addToCart ${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "w-full" : "" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
اضافه کردن به سبد خرید |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
{/* tag holder */} |
|
|
|
|
{productTags && ( |
|
|
|
|
<div className="mt-2 flex flex-wrap"> |
|
|
|
|
<button className="product-tag">ارسال رایگان</button> |
|
|
|
|
<button className="product-tag">برچسب های دیگر</button> |
|
|
|
|
<button className="product-tag">دسته بندی به صورت کادو</button> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{/* product items2 */} |
|
|
|
|
<div className="product-items-holder"> |
|
|
|
|
{/* item1 */} |
|
|
|
|
<div className="product-item"> |
|
|
|
|
{/*star img holder*/} |
|
|
|
|
<div className="w-full relative"> |
|
|
|
|
{discountPricePercent && ( |
|
|
|
|
<div className="discountPriceBtn"> |
|
|
|
|
<p className="dicountPriceNum"> |
|
|
|
|
23<span>%</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{likeBtn && ( |
|
|
|
|
<div className="likeBtnBg"> |
|
|
|
|
<img src={heart} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{discount && ( |
|
|
|
|
<div className="discountBtn"> |
|
|
|
|
<img src={discountImg} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* img Holder */} |
|
|
|
|
<div className="flex-shrink-0"> |
|
|
|
|
<img src={book} alt="" className="w-full rounded-lg" /> |
|
|
|
|
</div> |
|
|
|
|
{/* select Color */} |
|
|
|
|
{colors && ( |
|
|
|
|
<div className="absolute right-2 bottom-2"> |
|
|
|
|
<ul className="flex "> |
|
|
|
|
<li className="ml-1 text-selectColor1"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor2"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor3"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor4"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* content holder */} |
|
|
|
|
<div className="mt-4"> |
|
|
|
|
<h2 className={`productTitle ${productTitleAlignment}`}> |
|
|
|
|
نسخه چاپی علموم تجربه هفتم |
|
|
|
|
</h2> |
|
|
|
|
{productContent && ( |
|
|
|
|
<p className="productContent"> |
|
|
|
|
این کتاب شامل گلدان و گیاه و خاک می باشد و همچنین آپشن های خوب |
|
|
|
|
دیگری نیز دارد. |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* star holder */} |
|
|
|
|
{star && ( |
|
|
|
|
<div className="flex items-center mt-2"> |
|
|
|
|
<ul className="flex"> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<span className="text-xs text-productContent font-bold"> |
|
|
|
|
39 |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* price holder */} |
|
|
|
|
<div |
|
|
|
|
className={`flex items-center justify-between ${priceDirection}`} |
|
|
|
|
> |
|
|
|
|
{/* price */} |
|
|
|
|
<div className="mt-2"> |
|
|
|
|
<div |
|
|
|
|
className={`${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "inline" : "flex" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
<span className="text-xs text-borderColor ml-2">قیمت</span> |
|
|
|
|
{discountPrice && ( |
|
|
|
|
<p className="line-through text-xs text-borderColor mr-2"> |
|
|
|
|
145<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
<p className="product-price-num inline"> |
|
|
|
|
145.000<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
{/* add to cart */} |
|
|
|
|
<button |
|
|
|
|
className={`addToCart ${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "w-full" : "" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
اضافه کردن به سبد خرید |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
{/* tag holder */} |
|
|
|
|
{productTags && ( |
|
|
|
|
<div className="mt-2 flex flex-wrap"> |
|
|
|
|
<button className="product-tag">ارسال رایگان</button> |
|
|
|
|
<button className="product-tag">برچسب های دیگر</button> |
|
|
|
|
<button className="product-tag">دسته بندی به صورت کادو</button> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{/* product items3 */} |
|
|
|
|
<div className="product-items-holder"> |
|
|
|
|
{/* item1 */} |
|
|
|
|
<div className="product-item"> |
|
|
|
|
{/*star img holder*/} |
|
|
|
|
<div className="w-full relative"> |
|
|
|
|
{discountPricePercent && ( |
|
|
|
|
<div className="discountPriceBtn"> |
|
|
|
|
<p className="dicountPriceNum"> |
|
|
|
|
23<span>%</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{likeBtn && ( |
|
|
|
|
<div className="likeBtnBg"> |
|
|
|
|
<img src={heart} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{discount && ( |
|
|
|
|
<div className="discountBtn"> |
|
|
|
|
<img src={discountImg} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* img Holder */} |
|
|
|
|
<div className="flex-shrink-0"> |
|
|
|
|
<img src={book} alt="" className="w-full rounded-lg" /> |
|
|
|
|
</div> |
|
|
|
|
{/* select Color */} |
|
|
|
|
{colors && ( |
|
|
|
|
<div className="absolute right-2 bottom-2"> |
|
|
|
|
<ul className="flex "> |
|
|
|
|
<li className="ml-1 text-selectColor1"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor2"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor3"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor4"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* content holder */} |
|
|
|
|
<div className="mt-4"> |
|
|
|
|
<h2 className={`productTitle ${productTitleAlignment}`}> |
|
|
|
|
نسخه چاپی علموم تجربه هفتم |
|
|
|
|
</h2> |
|
|
|
|
{productContent && ( |
|
|
|
|
<p className="productContent"> |
|
|
|
|
این کتاب شامل گلدان و گیاه و خاک می باشد و همچنین آپشن های خوب |
|
|
|
|
دیگری نیز دارد. |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* star holder */} |
|
|
|
|
{star && ( |
|
|
|
|
<div className="flex items-center mt-2"> |
|
|
|
|
<ul className="flex"> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<span className="text-xs text-productContent font-bold"> |
|
|
|
|
39 |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* price holder */} |
|
|
|
|
<div |
|
|
|
|
className={`flex items-center justify-between ${priceDirection}`} |
|
|
|
|
> |
|
|
|
|
{/* price */} |
|
|
|
|
<div className="mt-2"> |
|
|
|
|
<div |
|
|
|
|
className={`${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "inline" : "flex" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
<span className="text-xs text-borderColor ml-2">قیمت</span> |
|
|
|
|
{discountPrice && ( |
|
|
|
|
<p className="line-through text-xs text-borderColor mr-2"> |
|
|
|
|
145<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
<p className="product-price-num inline"> |
|
|
|
|
145.000<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
{/* add to cart */} |
|
|
|
|
<button |
|
|
|
|
className={`addToCart ${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "w-full" : "" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
اضافه کردن به سبد خرید |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
{/* tag holder */} |
|
|
|
|
{productTags && ( |
|
|
|
|
<div className="mt-2 flex flex-wrap"> |
|
|
|
|
<button className="product-tag">ارسال رایگان</button> |
|
|
|
|
<button className="product-tag">برچسب های دیگر</button> |
|
|
|
|
<button className="product-tag">دسته بندی به صورت کادو</button> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{/* product items4 */} |
|
|
|
|
<div className="product-items-holder"> |
|
|
|
|
{/* item1 */} |
|
|
|
|
<div className="product-item"> |
|
|
|
|
{/*star img holder*/} |
|
|
|
|
<div className="w-full relative"> |
|
|
|
|
{discountPricePercent && ( |
|
|
|
|
<div className="discountPriceBtn"> |
|
|
|
|
<p className="dicountPriceNum"> |
|
|
|
|
23<span>%</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{likeBtn && ( |
|
|
|
|
<div className="likeBtnBg"> |
|
|
|
|
<img src={heart} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{discount && ( |
|
|
|
|
<div className="discountBtn"> |
|
|
|
|
<img src={discountImg} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* img Holder */} |
|
|
|
|
<div className="flex-shrink-0"> |
|
|
|
|
<img src={book} alt="" className="w-full rounded-lg" /> |
|
|
|
|
</div> |
|
|
|
|
{/* select Color */} |
|
|
|
|
{colors && ( |
|
|
|
|
<div className="absolute right-2 bottom-2"> |
|
|
|
|
<ul className="flex "> |
|
|
|
|
<li className="ml-1 text-selectColor1"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor2"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor3"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor4"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* content holder */} |
|
|
|
|
<div className="mt-4"> |
|
|
|
|
<h2 className={`productTitle ${productTitleAlignment}`}> |
|
|
|
|
نسخه چاپی علموم تجربه هفتم |
|
|
|
|
</h2> |
|
|
|
|
{productContent && ( |
|
|
|
|
<p className="productContent"> |
|
|
|
|
این کتاب شامل گلدان و گیاه و خاک می باشد و همچنین آپشن های خوب |
|
|
|
|
دیگری نیز دارد. |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* star holder */} |
|
|
|
|
{star && ( |
|
|
|
|
<div className="flex items-center mt-2"> |
|
|
|
|
<ul className="flex"> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<span className="text-xs text-productContent font-bold"> |
|
|
|
|
39 |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* price holder */} |
|
|
|
|
<div |
|
|
|
|
className={`flex items-center justify-between ${priceDirection}`} |
|
|
|
|
> |
|
|
|
|
{/* price */} |
|
|
|
|
<div className="mt-2"> |
|
|
|
|
<div |
|
|
|
|
className={`${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "inline" : "flex" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
<span className="text-xs text-borderColor ml-2">قیمت</span> |
|
|
|
|
{discountPrice && ( |
|
|
|
|
<p className="line-through text-xs text-borderColor mr-2"> |
|
|
|
|
145<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
<p className="product-price-num inline"> |
|
|
|
|
145.000<span>تومان</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
{/* add to cart */} |
|
|
|
|
<button |
|
|
|
|
className={`addToCart ${ |
|
|
|
|
priceDirection.indexOf("col") !== -1 ? "w-full" : "" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
اضافه کردن به سبد خرید |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
{/* tag holder */} |
|
|
|
|
{productTags && ( |
|
|
|
|
<div className="mt-2 flex flex-wrap"> |
|
|
|
|
<button className="product-tag">ارسال رایگان</button> |
|
|
|
|
<button className="product-tag">برچسب های دیگر</button> |
|
|
|
|
<button className="product-tag">دسته بندی به صورت کادو</button> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{/* product items5 */} |
|
|
|
|
<div className="product-items-holder"> |
|
|
|
|
{/* item1 */} |
|
|
|
|
<div className="product-item"> |
|
|
|
|
{/*star img holder*/} |
|
|
|
|
<div className="w-full relative"> |
|
|
|
|
{discountPricePercent && ( |
|
|
|
|
<div className="discountPriceBtn"> |
|
|
|
|
<p className="dicountPriceNum"> |
|
|
|
|
23<span>%</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{likeBtn && ( |
|
|
|
|
<div className="likeBtnBg"> |
|
|
|
|
<img src={heart} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{discount && ( |
|
|
|
|
<div className="discountBtn"> |
|
|
|
|
<img src={discountImg} alt="" className="w-full" /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
{/* img Holder */} |
|
|
|
|
<div className="flex-shrink-0"> |
|
|
|
|
<img src={book} alt="" className="w-full rounded-lg" /> |
|
|
|
|
</div> |
|
|
|
|
{/* select Color */} |
|
|
|
|
{colors && ( |
|
|
|
|
<div className="absolute right-2 bottom-2"> |
|
|
|
|
<ul className="flex "> |
|
|
|
|
<li className="ml-1 text-selectColor1"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor2"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor3"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-selectColor4"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* content holder */} |
|
|
|
|
<div className="mt-4"> |
|
|
|
|
<h2 className={`productTitle ${productTitleAlignment}`}> |
|
|
|
|
نسخه چاپی علموم تجربه هفتم |
|
|
|
|
</h2> |
|
|
|
|
{productContent && ( |
|
|
|
|
<p className="productContent"> |
|
|
|
|
این کتاب شامل گلدان و گیاه و خاک می باشد و همچنین آپشن های خوب |
|
|
|
|
دیگری نیز دارد. |
|
|
|
|
</p> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
{/* star holder */} |
|
|
|
|
{star && ( |
|
|
|
|
<div className="flex items-center mt-2"> |
|
|
|
|
<ul className="flex"> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
<li className="ml-1 text-productStar"> |
|
|
|
|
{/* <FontAwesomeIcon icon="check-square" /> */} |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<span className="text-xs text-productContent font-bold"> |
|
|
|
|
<StarRating /> |
|
|
|
|
<span className="text-xs text-productContent font-bold mr-2"> |
|
|
|
|
39 |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
@ -664,7 +149,7 @@ ProductDesign.defaultProps = { |
|
|
|
|
likeBtn: true, |
|
|
|
|
discount: true, |
|
|
|
|
discountPricePercent: true, |
|
|
|
|
discountPrice: true, |
|
|
|
|
discountPrice: false, |
|
|
|
|
productContent: true, |
|
|
|
|
star: true, |
|
|
|
|
productTags: true, |
|
|
|
|