From e9d37eeae199208147cd1c14f3b6ec0558adfd90 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Thu, 2 Jun 2022 18:35:06 +0430 Subject: [PATCH] update 21 files --- public/index.html | 151 +++++++++++---------- src/views/Callback/index.js | 6 +- src/views/Cart/index.js | 6 +- src/views/Checkout/index.js | 18 ++- src/views/Home/Download/index.js | 17 ++- src/views/Home/Footer/index.js | 52 +++++-- src/views/Home/HomeScroll/Product/index.js | 4 +- src/views/Home/HomeScroll/index.js | 12 +- src/views/Home/HomeSearch/index.js | 10 +- src/views/Home/HomeSlider/Blog/index.js | 40 +++++- src/views/Home/HomeSlider/Header/index.js | 2 +- src/views/Home/HomeSlider/index.js | 25 +++- src/views/Home/HomeStatic/index.js | 12 +- src/views/Home/Membership/index.js | 6 +- src/views/Home/Navbar/Laptop/index.js | 28 +++- src/views/Home/Navbar/Mobile/index.js | 4 +- src/views/Home/SingleBlog/index.js | 20 ++- src/views/Product/index.js | 6 +- src/views/Products/index.js | 6 +- src/views/QR/index.js | 6 +- 20 files changed, 311 insertions(+), 120 deletions(-) diff --git a/public/index.html b/public/index.html index d5e1b1b..fd88049 100644 --- a/public/index.html +++ b/public/index.html @@ -1,75 +1,86 @@ + + + + + + + + + + + - - - - - - - - - - - + دانوین + + + + - - + + - (function (w, d, s, l, i) { - w[l] = w[l] || []; - w[l].push({ - "gtm.start": new Date().getTime(), - event: "gtm.js", - }); - var f = d.getElementsByTagName(s)[0], - j = d.createElement(s), - dl = l != "dataLayer" ? "&l=" + l : ""; - j.async = true; - j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl; - f.parentNode.insertBefore(j, f); - })(window, document, "script", "dataLayer", "GTM-WVV8H9L"); - - - - - - - - -
- - - - \ No newline at end of file + + + + +
+ + + diff --git a/src/views/Callback/index.js b/src/views/Callback/index.js index 2deb20e..294b4f6 100644 --- a/src/views/Callback/index.js +++ b/src/views/Callback/index.js @@ -205,7 +205,11 @@ class Callback extends Component { {/*

{window.t("سبد خرید")}

*/} -
+
{window.t("سبد پیش خرید")} -
+
{window.t("مشخصات تحویل گیرنده")}
-
+
) : null}

{window.t("جزئیات صورتحساب")}

-
+
{window.t("مشخصات تحویل گیرنده")}
-
+
{ return ( <> {window.innerWidth > 1000 ? ( -
-
+
+
{window.t("لذت یادگیری را با")} {window.t("دانوین")} {window.t("تجربه کنید")}
@@ -17,7 +26,9 @@ const H_DownloadApp = () => {
{window.innerWidth > 1000 ? ( -
-
-
-
+
+
+
+

{window.t("دانوین کجاست؟")}

{window.t( @@ -74,9 +90,19 @@ export default class Footer extends Component {

-
-

{window.t("دسترسی سریع")}

-
    +
    +

    + {window.t("دسترسی سریع")} +

    +
      {fastAccess.map((item, i) => (
    • {item.name} @@ -84,9 +110,17 @@ export default class Footer extends Component { ))}
    -
    +

    {window.t("لینک های کاربردی")}

    -
      +
        {fastAccess.map((item, i) => (
      • {item.name} diff --git a/src/views/Home/HomeScroll/Product/index.js b/src/views/Home/HomeScroll/Product/index.js index c6deecd..24f1ad7 100644 --- a/src/views/Home/HomeScroll/Product/index.js +++ b/src/views/Home/HomeScroll/Product/index.js @@ -8,7 +8,9 @@ export default class Product extends Component { return (
        {data.title} diff --git a/src/views/Home/HomeScroll/index.js b/src/views/Home/HomeScroll/index.js index 929343f..fa96541 100644 --- a/src/views/Home/HomeScroll/index.js +++ b/src/views/Home/HomeScroll/index.js @@ -13,8 +13,16 @@ export default class HomeScroll extends Component { className="mobile-home-scroll d-flex flex-column" style={{ height: height }} > -
        -
        +
        +

        {title}

        diff --git a/src/views/Home/HomeSearch/index.js b/src/views/Home/HomeSearch/index.js index 64b4949..1bedfad 100644 --- a/src/views/Home/HomeSearch/index.js +++ b/src/views/Home/HomeSearch/index.js @@ -26,10 +26,16 @@ class HomeSearch extends Component { render() { const { levels } = this.props; return window.innerWidth > 1000 ? ( -
        +
        diff --git a/src/views/Home/HomeSlider/Blog/index.js b/src/views/Home/HomeSlider/Blog/index.js index c60492a..c0cb7b9 100644 --- a/src/views/Home/HomeSlider/Blog/index.js +++ b/src/views/Home/HomeSlider/Blog/index.js @@ -30,12 +30,19 @@ export default class Simple extends Component { <> {window.innerWidth > 1000 ? (
        - + {data.type === "image" ? ( {data.title} ) : null}

        {data.title}

        -

        +

        -
        -
        +
        +
        {/* */} -
        +
        {window.t("مطالعه کامل در {data.duration} دقیقه")}{" "} @@ -120,7 +142,11 @@ export default class Simple extends Component { >
        -
        +
        {/* */}
        { return ( <> {window.innerWidth > 1000 ? ( -
        +

        {props.title}

        @@ -31,12 +35,21 @@ const SimpleHeader = (props) => { {props.more ? ( {window.t("بیشتر")} - {window.t("فلش")} + {window.t("فلش")} ) : null}
        @@ -57,7 +70,11 @@ const TabHeader = (props) => { return ( <> {window.innerWidth > 1000 ? ( -
        +

        {props.title}

        diff --git a/src/views/Home/HomeStatic/index.js b/src/views/Home/HomeStatic/index.js index b525895..4a6d65e 100644 --- a/src/views/Home/HomeStatic/index.js +++ b/src/views/Home/HomeStatic/index.js @@ -75,9 +75,15 @@ const Item = (props) => { width: `${props.data.width}%`, height: props.height, }} - className="home-static__list--item d-flex" + className={`home-static__list--item d-flex ${ + window.lang === "en" ? "flex-row-reverse" : "" + }`} > -
        +

        {props.data.topText}

        @@ -96,7 +102,7 @@ const Item = (props) => { width: `${props.data.width}%`, height: props.height, }} - className="home-static__list2--item" + className={"home-static__list2--item"} >

        {window.t("مشخصات خودت رو وارد کنید و امتیاز هدیه بگیرید")}

        -
        +
        diff --git a/src/views/Home/Navbar/Laptop/index.js b/src/views/Home/Navbar/Laptop/index.js index 3debb57..2f1a7ee 100644 --- a/src/views/Home/Navbar/Laptop/index.js +++ b/src/views/Home/Navbar/Laptop/index.js @@ -44,12 +44,22 @@ class LaptopNavbar extends Component { if (this.state.navigatePath) return ; const { links } = this.props; return ( -