From 15f4dee690d9b5e6893dbd6db9beebeca988f982 Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Wed, 16 Mar 2022 15:10:55 +0330 Subject: [PATCH] Mobile Contact Page Made --- src/components/ShoppingCart/Product/index.js | 13 ++- src/components/ShoppingCart/index.js | 4 +- src/components/header/MobileSideMenu/index.js | 2 +- src/components/input/index.js | 6 +- src/view/contact/index.js | 99 +++++++++++++++++-- 5 files changed, 108 insertions(+), 16 deletions(-) diff --git a/src/components/ShoppingCart/Product/index.js b/src/components/ShoppingCart/Product/index.js index d7780c1..bae9473 100644 --- a/src/components/ShoppingCart/Product/index.js +++ b/src/components/ShoppingCart/Product/index.js @@ -147,13 +147,18 @@ function Product({ product, grades, pushToCart, isMobile }) { // return (
-
+
{product?.product?.book?.category}

{product?.product?.book?.name}

-
-
- {product?.product?.price} تومان +
+ +
+ { + product.count > 1 &&

{product?.count} عدد

+ } +

{product?.product?.price} تومان

+
-
+
3 && 'overflow-x-hidden overflow-scroll'}`} style={{height: '35%'}}> {list.map((product, index) => ( @@ -259,7 +259,7 @@ function ShoppingCart({ :
-
+
3 && 'overflow-x-hidden overflow-scroll'}`} style={{height: '35%'}}> {list.map((product, index) => ( diff --git a/src/components/header/MobileSideMenu/index.js b/src/components/header/MobileSideMenu/index.js index 8162894..ffa2d6b 100644 --- a/src/components/header/MobileSideMenu/index.js +++ b/src/components/header/MobileSideMenu/index.js @@ -71,7 +71,7 @@ const MobileSideMenu = ({ icon: mapIcon, activeIcon: mapIconActive, title: 'اطلاعات تماس', - link: '/contact' + link: '/contacts' }, { icon: radarIcon, diff --git a/src/components/input/index.js b/src/components/input/index.js index 3ea360d..00e46f2 100644 --- a/src/components/input/index.js +++ b/src/components/input/index.js @@ -42,8 +42,8 @@ const Input = ({ } }; return ( -
-
+
+
{title ? title : 'نام کاربری'}
@@ -51,7 +51,7 @@ const Input = ({ type={type ? type : 'text'} name="Login-box-form-item-input-name" id={`Login-box-form-item-input-name${id}`} - className={`Login-box-form-item-input w-full h-full px-4 outline-0 rounded text-red52`} + className={`Login-box-form-item-input w-full h-full px-4 outline-0 rounded-lg text-red52`} style={{ direction: direction ? direction : "ltr", backgroundColor: bg }} onFocus={() => focusHandler(id ? id : 0)} onBlur={() => blurHandler(id ? id : 0)} diff --git a/src/view/contact/index.js b/src/view/contact/index.js index a3dca3d..633a4af 100644 --- a/src/view/contact/index.js +++ b/src/view/contact/index.js @@ -1,9 +1,9 @@ -import React from "react"; +import React, { useState } from "react"; import Button from "../../components/Button"; import Input from "../../components/input"; import Map from '../../components/Map' - -const ContactUs = () => { +import { connect } from "react-redux"; +const ContactUs = ({isMobile}) => { const departments = [ @@ -27,15 +27,94 @@ const ContactUs = () => { }, ] + + const [phase, setPhase] = useState(1); + return ( + isMobile ? +
+

تماس با ما

+
+ + +
+ { + phase == 1 ? +
+ +
+ + + + +
+
+
+
+ : + +
+
+ +
+
+ +
+

آدرس ما

+

تهران خیابان انقلاب بین ابوریحان و فلسطین بن بست سروش پلاک 2

+
+
+

شماره تماس

+

02163462405 - 02163462406

+
+ +
+

ایمیل سازمانی

+

Info@Azmoonsample.ir

+
+ + + +
+

شماره پیامک

+

300000000008762144

+

توجه داشته باشید تمامی پیامک ها از سامانه آزمون از طریق همین سرشماره برای شما ارسال خواهد شد

+
+ + + +
+ + +
+ } +
+ + : +

تماس با ما

- - + +