|
|
|
@ -53,9 +53,23 @@ function AddToCart(props) { |
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
{window.innerWidth > 1000 ? ( |
|
|
|
|
<section className="product-addtocart d-flex flex-column"> |
|
|
|
|
<div className="product-addtocart__box d-flex flex-column"> |
|
|
|
|
<div className="product-addtocart__box--price d-flex "> |
|
|
|
|
<section |
|
|
|
|
className={`product-addtocart d-flex flex-column ${ |
|
|
|
|
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 |
|
|
|
|
style={{ fontSize: fontSize.desktop.div, width: "100%" }} |
|
|
|
|
className="flex-column" |
|
|
|
@ -86,7 +100,7 @@ function AddToCart(props) { |
|
|
|
|
// href={file(sampleFileId)}
|
|
|
|
|
// target="_blank"
|
|
|
|
|
// rel="noopener noreferrer"
|
|
|
|
|
style={{ fontSize: fontSize.desktop.button }} |
|
|
|
|
style={{ fontSize: fontSize.desktop.button, width: "100%" }} |
|
|
|
|
className="product-addtocart__box--sampleButton" |
|
|
|
|
> |
|
|
|
|
{window.t("مشاهده نمونه کتاب")} <img src={document_red} alt="" /> |
|
|
|
@ -103,14 +117,18 @@ function AddToCart(props) { |
|
|
|
|
// 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" |
|
|
|
|
> |
|
|
|
|
{page === "digital" ? "کتاب چاپی" : window.t("نسخه الکترونیک")} |
|
|
|
|
<img src={ebook_blue} alt="" /> |
|
|
|
|
</Link> |
|
|
|
|
<button |
|
|
|
|
style={{ fontSize: fontSize.desktop.button }} |
|
|
|
|
style={{ fontSize: fontSize.desktop.button, width: "100%" }} |
|
|
|
|
className="product-addtocart__box--addButton" |
|
|
|
|
onClick={() => { |
|
|
|
|
if (proxy.status()) |
|
|
|
@ -137,8 +155,16 @@ function AddToCart(props) { |
|
|
|
|
> |
|
|
|
|
{window.t("افزودن به سبد خرید")} <img src={basket_white} alt="" /> |
|
|
|
|
</button> |
|
|
|
|
<div className="product-addtocart__box--accept d-flex"> |
|
|
|
|
<input type="checkbox" checked={true} /> |
|
|
|
|
<div |
|
|
|
|
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 |
|
|
|
|
to="/page/privacy" |
|
|
|
|
style={{ fontSize: "13px", margin: 0, padding: 0 }} |
|
|
|
@ -148,8 +174,16 @@ function AddToCart(props) { |
|
|
|
|
)} |
|
|
|
|
</Link> |
|
|
|
|
</div> |
|
|
|
|
<div className="product-addtocart__box--accept d-flex"> |
|
|
|
|
<input type="checkbox" checked={true} /> |
|
|
|
|
<div |
|
|
|
|
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 |
|
|
|
|
to="/page/returning" |
|
|
|
|
style={{ fontSize: "13px", margin: 0, padding: 0 }} |
|
|
|
@ -158,9 +192,14 @@ function AddToCart(props) { |
|
|
|
|
</Link> |
|
|
|
|
</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) => ( |
|
|
|
|
<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} /> |
|
|
|
|
<h2 style={{ fontSize: fontSize.desktop.h2 }}>{item.title}</h2> |
|
|
|
|
</div> |
|
|
|
|