From 35713c49e24d976a43c7824c17411d1ff1dfd796 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Mon, 19 Jul 2021 15:17:44 +0430 Subject: [PATCH] Reza added cart mobile --- src/views/About/index.js | 151 +++++++++++++------ src/views/About/index.scss | 10 ++ src/views/Cart/Table/index.js | 27 +++- src/views/Cart/Table/index.scss | 8 ++ src/views/Cart/index.js | 248 +++++++++++++++++++++++++++----- src/views/Cart/index.scss | 183 ++++++++++++++++++++--- 6 files changed, 529 insertions(+), 98 deletions(-) diff --git a/src/views/About/index.js b/src/views/About/index.js index e2a21f6..c19b105 100644 --- a/src/views/About/index.js +++ b/src/views/About/index.js @@ -14,15 +14,14 @@ const maxDesktopSize = 1250; const maxMobileSize = 650; const fontSize = { - desktop:{ + desktop: { h1: window.innerWidth > maxDesktopSize ? 30 : window.innerWidth / 40, p: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 80, h2: window.innerWidth > maxDesktopSize ? 20 : window.innerWidth / 70, - li : window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 80, - } + li: window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 80, + }, }; - export default class About extends Component { state = { fury: { @@ -55,52 +54,122 @@ export default class About extends Component { const { fury, advantages, keywords } = this.state; return ( <> -
- -
-
-
-

{fury.title}

-

{fury.text}

-
-
-

{keywords.title}

-
    - {keywords.list.map((item, i) => ( - -
  • {item}

  • -
    - + {window.innerWidth > 1000 ? ( + <> +
    + +
    +
    +
    +

    + {fury.title} +

    +

    {fury.text}

    +
    +
    +

    + {keywords.title} +

    +
      + {keywords.list.map((item, i) => ( + +
    • + {item} +
    • +
      +
      + ))} +
    +
    +
    +
    + عکس + {this.props.absoluteImages.map((item, i) => ( + عکس ))} -
+
+
+
+
+ {"عکس"} +
+
+

+ {advantages.title} +

+
    + {advantages.list.map((item, i) => ( + +
  • + {item} +
  • +
    +
    + ))} +
+
-
- عکس - عکس - عکس - عکس +