|
|
@ -53,9 +53,23 @@ function AddToCart(props) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
{window.innerWidth > 1000 ? ( |
|
|
|
{window.innerWidth > 1000 ? ( |
|
|
|
<section className="product-addtocart d-flex flex-column"> |
|
|
|
<section |
|
|
|
<div className="product-addtocart__box d-flex flex-column"> |
|
|
|
className={`product-addtocart d-flex flex-column ${ |
|
|
|
<div className="product-addtocart__box--price d-flex "> |
|
|
|
window.lang === "en" ? "align-items-end" : "" |
|
|
|
|
|
|
|
}`}
|
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
width: window.lang === "en" ? "100%" : "", |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className={`product-addtocart__box d-flex flex-column ${ |
|
|
|
|
|
|
|
window.lang === "en" ? "align-items-end" : "" |
|
|
|
|
|
|
|
}`}
|
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
width: window.lang === "en" ? "100%" : "", |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div className="product-addtocart__box--price d-flex"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
style={{ fontSize: fontSize.desktop.div, width: "100%" }} |
|
|
|
style={{ fontSize: fontSize.desktop.div, width: "100%" }} |
|
|
|
className="flex-column" |
|
|
|
className="flex-column" |
|
|
@ -86,7 +100,7 @@ function AddToCart(props) { |
|
|
|
// href={file(sampleFileId)}
|
|
|
|
// href={file(sampleFileId)}
|
|
|
|
// target="_blank"
|
|
|
|
// target="_blank"
|
|
|
|
// rel="noopener noreferrer"
|
|
|
|
// rel="noopener noreferrer"
|
|
|
|
style={{ fontSize: fontSize.desktop.button }} |
|
|
|
style={{ fontSize: fontSize.desktop.button, width: "100%" }} |
|
|
|
className="product-addtocart__box--sampleButton" |
|
|
|
className="product-addtocart__box--sampleButton" |
|
|
|
> |
|
|
|
> |
|
|
|
{window.t("مشاهده نمونه کتاب")} <img src={document_red} alt="" /> |
|
|
|
{window.t("مشاهده نمونه کتاب")} <img src={document_red} alt="" /> |
|
|
@ -103,14 +117,18 @@ function AddToCart(props) { |
|
|
|
// window.location.pathname.length
|
|
|
|
// window.location.pathname.length
|
|
|
|
// )}`
|
|
|
|
// )}`
|
|
|
|
// }`}
|
|
|
|
// }`}
|
|
|
|
style={{ fontSize: fontSize.desktop.button, opacity: 0.3 }} |
|
|
|
style={{ |
|
|
|
|
|
|
|
fontSize: fontSize.desktop.button, |
|
|
|
|
|
|
|
opacity: 0.3, |
|
|
|
|
|
|
|
width: "100%", |
|
|
|
|
|
|
|
}} |
|
|
|
className="product-addtocart__box--digitalButton" |
|
|
|
className="product-addtocart__box--digitalButton" |
|
|
|
> |
|
|
|
> |
|
|
|
{page === "digital" ? "کتاب چاپی" : window.t("نسخه الکترونیک")} |
|
|
|
{page === "digital" ? "کتاب چاپی" : window.t("نسخه الکترونیک")} |
|
|
|
<img src={ebook_blue} alt="" /> |
|
|
|
<img src={ebook_blue} alt="" /> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
<button |
|
|
|
<button |
|
|
|
style={{ fontSize: fontSize.desktop.button }} |
|
|
|
style={{ fontSize: fontSize.desktop.button, width: "100%" }} |
|
|
|
className="product-addtocart__box--addButton" |
|
|
|
className="product-addtocart__box--addButton" |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
if (proxy.status()) |
|
|
|
if (proxy.status()) |
|
|
@ -137,8 +155,16 @@ function AddToCart(props) { |
|
|
|
> |
|
|
|
> |
|
|
|
{window.t("افزودن به سبد خرید")} <img src={basket_white} alt="" /> |
|
|
|
{window.t("افزودن به سبد خرید")} <img src={basket_white} alt="" /> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<div className="product-addtocart__box--accept d-flex"> |
|
|
|
<div |
|
|
|
<input type="checkbox" checked={true} /> |
|
|
|
className={`product-addtocart__box--accept d-flex align-items-center ${ |
|
|
|
|
|
|
|
window.lang === "en" ? "flex-row-reverse" : "" |
|
|
|
|
|
|
|
}`}
|
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<input |
|
|
|
|
|
|
|
type="checkbox" |
|
|
|
|
|
|
|
checked={true} |
|
|
|
|
|
|
|
style={{ marginRight: window.lang === "en" ? 5 : "" }} |
|
|
|
|
|
|
|
/> |
|
|
|
<Link |
|
|
|
<Link |
|
|
|
to="/page/privacy" |
|
|
|
to="/page/privacy" |
|
|
|
style={{ fontSize: "13px", margin: 0, padding: 0 }} |
|
|
|
style={{ fontSize: "13px", margin: 0, padding: 0 }} |
|
|
@ -148,8 +174,16 @@ function AddToCart(props) { |
|
|
|
)} |
|
|
|
)} |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="product-addtocart__box--accept d-flex"> |
|
|
|
<div |
|
|
|
<input type="checkbox" checked={true} /> |
|
|
|
className={`product-addtocart__box--accept d-flex align-items-center ${ |
|
|
|
|
|
|
|
window.lang === "en" ? "flex-row-reverse" : "" |
|
|
|
|
|
|
|
}`}
|
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<input |
|
|
|
|
|
|
|
type="checkbox" |
|
|
|
|
|
|
|
checked={true} |
|
|
|
|
|
|
|
style={{ marginRight: window.lang === "en" ? 5 : "" }} |
|
|
|
|
|
|
|
/> |
|
|
|
<Link |
|
|
|
<Link |
|
|
|
to="/page/returning" |
|
|
|
to="/page/returning" |
|
|
|
style={{ fontSize: "13px", margin: 0, padding: 0 }} |
|
|
|
style={{ fontSize: "13px", margin: 0, padding: 0 }} |
|
|
@ -158,9 +192,14 @@ function AddToCart(props) { |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<footer className="product-addtocart__footer d-flex justify-content-between mt-3"> |
|
|
|
<footer |
|
|
|
|
|
|
|
className="product-addtocart__footer d-flex justify-content-between mt-3" |
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
width: window.lang === "en" ? "100%" : "", |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
{supportItems.map((item, i) => ( |
|
|
|
{supportItems.map((item, i) => ( |
|
|
|
<div className="d-flex flex-column align-items-center" key={i}> |
|
|
|
<div className={`d-flex flex-column align-items-center`} key={i}> |
|
|
|
<img src={item.icon} alt={item.name} /> |
|
|
|
<img src={item.icon} alt={item.name} /> |
|
|
|
<h2 style={{ fontSize: fontSize.desktop.h2 }}>{item.title}</h2> |
|
|
|
<h2 style={{ fontSize: fontSize.desktop.h2 }}>{item.title}</h2> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|