Reza added desktop login

master
Reza_ashrafi 3 years ago
parent 91dc17b639
commit d948b16c4a
  1. 106
      src/views/Auth/Login/Cellphone/index.js
  2. 104
      src/views/Auth/Login/Cellphone/index.scss
  3. 209
      src/views/Auth/Login/Code/index.js
  4. 172
      src/views/Auth/Login/Code/index.scss
  5. 32
      src/views/Auth/Login/Timer/index.js
  6. 2
      src/views/Auth/Login/index.js
  7. 2
      src/views/Auth/Profile/Select/index.js
  8. 81
      src/views/Auth/Profile/index.js
  9. 108
      src/views/Auth/Profile/index.scss
  10. 6
      src/views/Home/Navbar/Mobile/NavbarDrawer/NavbarDrawer.js

@ -2,46 +2,88 @@ import React, { Component } from "react";
import logo from "../../../../assets/icons/logo.png"; import logo from "../../../../assets/icons/logo.png";
import iran from "../../../../assets/icons/iran.svg"; import iran from "../../../../assets/icons/iran.svg";
import pic from "../../../../assets/images/pic.png";
import "./index.scss"; import "./index.scss";
const maxDesktopSize = 1250;
const fontSize = {
desktop: {
span: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 85,
input: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 85,
button: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 85,
div: window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 95,
},
};
export default class Cellphone extends Component { export default class Cellphone extends Component {
componentDidMount() {
this.inputRef1.focus();
}
render() { render() {
return ( return (
<> <>
{window.innerWidth > 1000 ? ( {window.innerWidth > 1000 ? (
<div className="auth-cellphone d-flex flex-column align-items-center"> <div className="auth-cellphone d-flex justify-content-center align-items-center">
<img src={logo} alt="دانوین" /> <div className="auth-cellphone__box d-flex">
<div></div> <div
<form style={{ width: "48%", height: "100%" }}
onSubmit={() => className="d-flex flex-column justify-content-center align-items-center"
this.props.parent.setState({ >
page: 1, <img src={logo} alt="دانوین" />
cellphone: "09" + this.state.cellphone, <form
}) className="mb-3"
} onSubmit={() =>
> this.props.parent.setState({
<input page: 1,
id="cellphone" cellphone: "09" + this.state.cellphone,
type="text"
maxLength={9}
inputMode="numeric"
autoComplete="off"
ref={(input) => {
this.inputRef1 = input;
}}
onChange={(e) => this.setState({ cellphone: e.target.value })}
onInput={(e) =>
(e.target.value = e.target.value
.replace(/[\u0660-\u0669\u06f0-\u06f9]/g, function (c) {
return c.charCodeAt(0) & 0xf;
}) })
.replace(/[^\d]/, "")) }
} >
/> <span style={{ fontSize: fontSize.desktop.span }}>+98</span>
</form> <img src={iran} alt="پرچم" />
<input
style={{ fontSize: fontSize.desktop.span }}
id="cellphone"
type="text"
maxLength={9}
inputMode="numeric"
autoComplete="off"
ref={(input) => {
this.inputRef1 = input;
}}
onChange={(e) =>
this.setState({ cellphone: e.target.value })
}
onInput={(e) =>
(e.target.value = e.target.value
.replace(/[\u0660-\u0669\u06f0-\u06f9]/g, function (c) {
return c.charCodeAt(0) & 0xf;
})
.replace(/[^\d]/, ""))
}
/>
<button
style={{ fontSize: fontSize.desktop.button }}
type="submit"
>
ادامه
</button>
</form>
<div className="auth-cellphone__box--footer d-flex flex-column justify-content-center align-items-center">
<div style={{ fontSize: fontSize.desktop.div }}>
{" "}
حساب کاربری ندارید ؟ همین حالا<button>ثبت نام کنید</button>
</div>
<div style={{ fontSize: fontSize.desktop.div }}>شرایط استفاده و حریم خصوصی</div>
</div>
</div>
<div style={{ width: "48%", height: "100%" }}>
<img
src={pic}
alt="عکس"
style={{ width: "100%", height: "100%" }}
/>
</div>
</div>
</div> </div>
) : null} ) : null}
{window.innerWidth < 1000 ? ( {window.innerWidth < 1000 ? (

@ -1,21 +1,75 @@
.auth-cellphone { .auth-cellphone {
width: 100%; width: 100vw;
height: 100%; height: 100vh;
justify-content: center; &__box {
align-items: center; width: 100%;
label { max-width: 1000px;
text-align: right; border: 1px solid #ddd;
display: flex; border-radius: 20px;
flex-direction: column; justify-content: space-between;
color: white; height: 80%;
input { img {
background-color: inherit; margin-bottom: 30px;
border: 0px; width: 200px;
border-bottom: 2px solid white; }
font-size: 24px; form {
color: white; width: 100%;
direction: ltr; max-width: 400px;
text-align: center; position: relative;
img {
position: absolute;
left: 10px;
top: 6px;
width: 45px;
}
span {
text-align: right;
position: absolute;
left: 65px;
top: 8px;
direction: ltr;
color: #a5a5a5;
}
input {
width: 100%;
max-width: 400px;
background-color: inherit;
color: #a5a5a5;
direction: ltr;
text-align: left;
background-color: #f2f2f2;
border: none;
padding: 8px 5px 8px 105px;
border-radius: 5px;
&:focus {
outline: 0px;
}
}
button {
margin-top: 20px;
width: 100%;
max-width: 400px;
border: 0px;
font-family: numeralMedium;
background-color: #6cbe44;
color: white;
border-radius: 7px;
padding: 8px;
}
}
&--footer {
max-width: 400px;
div {
font-family: numeralMedium;
color: #a5a5a5;
letter-spacing: -1px;
button {
background-color: white;
border: 0px;
color: #02733c;
letter-spacing: -1px;
}
}
} }
} }
} }
@ -51,13 +105,13 @@
width: 100%; width: 100%;
position: relative; position: relative;
bottom: 40px; bottom: 40px;
img{ img {
position: absolute; position: absolute;
left: 10px; left: 10px;
top: 6px; top: 6px;
width: 45px; width: 45px;
} }
span{ span {
text-align: right; text-align: right;
position: absolute; position: absolute;
left: 65px; left: 65px;
@ -81,30 +135,30 @@
outline: 0px; outline: 0px;
} }
} }
button{ button {
margin-top: 20px; margin-top: 20px;
width: 100%; width: 100%;
border: 0px; border: 0px;
font-family: numeralMedium; font-family: numeralMedium;
background-color: #6CBE44; background-color: #6cbe44;
color: white; color: white;
border-radius: 7px; border-radius: 7px;
padding: 8px; padding: 8px;
font-size: calc(100vw / 20); font-size: calc(100vw / 20);
} }
} }
&__footer{ &__footer {
position: fixed; position: fixed;
bottom: 40px; bottom: 40px;
div{ div {
font-family: numeralMedium; font-family: numeralMedium;
font-size: calc(100vw / 28); font-size: calc(100vw / 28);
color: #a5a5a5; color: #a5a5a5;
letter-spacing: -1px; letter-spacing: -1px;
button{ button {
background-color: white; background-color: white;
border: 0px; border: 0px;
color: #02733C; color: #02733c;
} }
} }
} }

@ -2,8 +2,19 @@ import React, { Component } from "react";
import Timer from "../Timer/index"; import Timer from "../Timer/index";
import logo from "../../../../assets/icons/logo.png"; import logo from "../../../../assets/icons/logo.png";
import pic from "../../../../assets/images/pic.png";
import "./index.scss"; import "./index.scss";
const maxDesktopSize = 1250;
const fontSize = {
desktop: {
input: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 85,
button: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 85,
div: window.innerWidth > maxDesktopSize ? 14 : window.innerWidth / 95,
},
};
export default class Code extends Component { export default class Code extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
@ -72,86 +83,126 @@ export default class Code extends Component {
return ( return (
<> <>
{window.innerWidth > 1000 ? ( {window.innerWidth > 1000 ? (
<div className="auth-code d-flex"> <div className="auth-code d-flex justify-content-center align-items-center">
<label htmlFor="code1"> <div className="auth-code__box d-flex">
<input
id="code1"
name="o1"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef1 = input;
}}
autoComplete="off"
value={this.state.o1}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
/>
</label>
<label htmlFor="code2">
<input
id="o2"
name="o2"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef2 = input;
}}
autoComplete="off"
value={this.state.o2}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
/>
</label>
<label htmlFor="code3">
<input
id="code3"
name="o3"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef3 = input;
}}
autoComplete="off"
value={this.state.o3}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
/>
</label>
<label htmlFor="code4">
<input
id="code4"
name="o4"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef4 = input;
}}
autoComplete="off"
value={this.state.o4}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
/>
</label>
{!this.state.resendStatus ? (
<Timer seconds={10} parent={this} />
) : (
<div <div
style={{ color: "#88ff88" }} style={{ width: "48%", height: "100%" }}
className="timer d-flex" className="d-flex flex-column justify-content-center align-items-center"
onClick={() => this.setState({ resendStatus: false })}
> >
دریافت مجدد کد <img src={logo} alt="دانوین" />
<div className="auth-code__box--codes d-flex">
<label htmlFor="code1">
<input
id="code1"
name="o1"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef1 = input;
}}
autoComplete="off"
value={this.state.o1}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
style={{ fontSize: fontSize.desktop.input }}
/>
</label>
<label htmlFor="code2">
<input
id="o2"
name="o2"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef2 = input;
}}
autoComplete="off"
value={this.state.o2}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
style={{ fontSize: fontSize.desktop.input }}
/>
</label>
<label htmlFor="code3">
<input
id="code3"
name="o3"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef3 = input;
}}
autoComplete="off"
value={this.state.o3}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
style={{ fontSize: fontSize.desktop.input }}
/>
</label>
<label htmlFor="code4">
<input
id="code4"
name="o4"
type="text"
inputMode="numeric"
maxLength="2"
ref={(input) => {
this.inputRef4 = input;
}}
autoComplete="off"
value={this.state.o4}
onKeyDown={(e) => this.keyboardEvent(e)}
onInput={this.onInput}
onChange={(e) => this.changeValue(e)}
style={{ fontSize: fontSize.desktop.input }}
/>
</label>
</div>
<button style={{ fontSize: fontSize.desktop.button }}>ثبت</button>
{!this.state.resendStatus ? (
<Timer seconds={10} parent={this} />
) : (
<div
style={{
color: "#A5A5A5",
fontFamily: "numeralMedium",
fontSize: fontSize.desktop.div,
}}
className="timer d-flex mt-4"
onClick={() => this.setState({ resendStatus: false })}
>
ارسال مجدد کد فعال سازی
</div>
)}
<div
style={{
color: "#A5A5A5",
fontFamily: "numeralMedium",
fontSize: fontSize.desktop.div,
}}
className="timer d-flex mt-2"
onClick={() =>
this.props.parent.setState({ page: 0, cellphone: "" })
}
>
بازگشت به مرحله قبل و اصلاح شماره
</div>
</div> </div>
)} <div style={{ width: "48%", height: "100%" }} className="d-flex">
<img
src={pic}
alt="عکس"
style={{ width: "100%", height: "100%" }}
/>
</div>
</div>
</div> </div>
) : null} ) : null}
{window.innerWidth < 1000 ? ( {window.innerWidth < 1000 ? (
@ -249,7 +300,9 @@ export default class Code extends Component {
<div <div
style={{ color: "#A5A5A5", fontFamily: "numeralLight" }} style={{ color: "#A5A5A5", fontFamily: "numeralLight" }}
className="timer d-flex mt-2" className="timer d-flex mt-2"
onClick={() => this.props.parent.setState({ page : 0, cellphone : ''})} onClick={() =>
this.props.parent.setState({ page: 0, cellphone: "" })
}
> >
بازگشت به مرحله قبل و اصلاح شماره بازگشت به مرحله قبل و اصلاح شماره
</div> </div>

@ -1,84 +1,110 @@
.auth-code{ .auth-code{
width: 100%; width: 100vw;
height: 100%; height: 100vh;
justify-content:center; &__box {
align-items:center; width: 100%;
direction: ltr; max-width: 1000px;
position: relative; border: 1px solid #ddd;
input { border-radius: 20px;
width: 50px; justify-content: space-between;
background-color: inherit; height: 80%;
border : 0px; img {
border-bottom: 2px solid white; margin-bottom: 30px;
margin : 0px 7px; }
font-size: 24px; button{
color : white; margin-top: 20px;
text-align: center; width: 100%;
direction : ltr; max-width: 300px;
&:focus{ border: 0px;
outline: 0px; font-family: numeralMedium;
background-color: #6CBE44;
color: white;
border-radius: 7px;
padding: 8px;
}
&--codes{
direction: ltr;
input {
max-width: 60px;
max-height: 60px;
background-color: #f2f2f2;
border : 0px;
margin : 0px 10px;
color: #6F7074;
text-align: center;
direction : ltr;
border-radius: 5px;
padding: 10px 15px;
&:focus{
outline: 0px;
}
}
div{
letter-spacing:-1px;
}
} }
} }
}
.mobile-auth-code{ .mobile-auth-code{
width: 100%;
height: 100%;
justify-content:center;
align-items:center;
direction: ltr;
position: relative;
max-width: 360px;
margin: 0px auto;
img {
margin-bottom: 30px;
position: relative;
bottom: 40px;
}
h1 {
font-family: numeralBold;
font-size: calc(100vw / 15);
color: #6f7074;
position: relative;
bottom: 40px;
}
p {
font-family: numeralLight;
font-size: calc(100vw / 25);
color: #6f7074;
letter-spacing: -1px;
position: relative;
bottom: 40px;
}
button{
margin-top: 20px;
width: 100%; width: 100%;
max-width: 300px; height: 100%;
border: 0px; justify-content:center;
font-family: numeralMedium; align-items:center;
background-color: #6CBE44;
color: white;
border-radius: 7px;
padding: 8px;
font-size: calc(100vw / 20);
}
&__codes{
direction: ltr; direction: ltr;
input { position: relative;
max-width: 60px; max-width: 360px;
max-height: 60px; margin: 0px auto;
background-color: #f2f2f2; img {
border : 0px; margin-bottom: 30px;
margin : 0px 10px; position: relative;
color: #6F7074; bottom: 40px;
text-align: center; }
direction : ltr; h1 {
font-family: numeralBold;
font-size: calc(100vw / 15); font-size: calc(100vw / 15);
border-radius: 5px; color: #6f7074;
padding: 10px 15px; position: relative;
&:focus{ bottom: 40px;
outline: 0px; }
p {
font-family: numeralLight;
font-size: calc(100vw / 25);
color: #6f7074;
letter-spacing: -1px;
position: relative;
bottom: 40px;
}
button{
margin-top: 20px;
width: 100%;
max-width: 300px;
border: 0px;
font-family: numeralMedium;
background-color: #6CBE44;
color: white;
border-radius: 7px;
padding: 8px;
font-size: calc(100vw / 20);
}
&__codes{
direction: ltr;
input {
max-width: 60px;
max-height: 60px;
background-color: #f2f2f2;
border : 0px;
margin : 0px 10px;
color: #6F7074;
text-align: center;
direction : ltr;
font-size: calc(100vw / 15);
border-radius: 5px;
padding: 10px 15px;
&:focus{
outline: 0px;
}
} }
} }
} }
} }

@ -1,6 +1,13 @@
import { Component } from "react"; import { Component } from "react";
import "./index.css"; import "./index.css";
const maxDesktopSize = 1250;
const fontSize = {
desktop: {
div: window.innerWidth > maxDesktopSize ? 14 : window.innerWidth / 95,
},
};
export default class Timer extends Component { export default class Timer extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
@ -56,11 +63,26 @@ export default class Timer extends Component {
} }
render() { render() {
return ( return (
<div className="timer d-flex mt-4"> <>
<div style={{color: '#a5a5a5', marginLeft: 5}}>زمان باقیمانده تا انقضای کد:</div> {window.innerWidth > 1000 ? (
<div>{this.state.time.s}</div>: <div className="timer d-flex mt-4">
<div>{this.state.time.m + this.state.time.h * 60}</div> <div style={{ color: "#a5a5a5", marginLeft: 5, fontSize: fontSize.desktop.div, fontFamily:'numeralMedium' }}>
</div> زمان باقیمانده تا انقضای کد:
</div>
<div style={{ fontSize: fontSize.desktop.div }}>{this.state.time.s}</div>:
<div style={{ fontSize: fontSize.desktop.div }}>{this.state.time.m + this.state.time.h * 60}</div>
</div>
) : null}
{window.innerWidth < 1000 ? (
<div className="timer d-flex mt-4">
<div style={{ color: "#a5a5a5", marginLeft: 5 }}>
زمان باقیمانده تا انقضای کد:
</div>
<div>{this.state.time.s}</div>:
<div>{this.state.time.m + this.state.time.h * 60}</div>
</div>
) : null}
</>
); );
} }
} }

@ -7,7 +7,7 @@ export default class Login extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
page: 1, page: 0,
}; };
} }

@ -43,7 +43,7 @@ export default function CustomizedSelects(props) {
console.log(props); console.log(props);
return ( return (
<div style={{ position: "relative" }}> <div style={{ position: "relative"}}>
<FormControl variant="outlined" className={classes.marginLeft}> <FormControl variant="outlined" className={classes.marginLeft}>
<InputLabel id="demo-simple-select-outlined-label">{props.label}</InputLabel> <InputLabel id="demo-simple-select-outlined-label">{props.label}</InputLabel>
<Select <Select

@ -8,6 +8,15 @@ import pic from "../../../assets/images/pic.png";
import AddAPhotoIcon from "@material-ui/icons/AddAPhoto"; import AddAPhotoIcon from "@material-ui/icons/AddAPhoto";
import "./index.scss"; import "./index.scss";
const maxDesktopSize = 1250;
const fontSize = {
desktop: {
h1: window.innerWidth > maxDesktopSize ? 25 : window.innerWidth / 55,
p: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 85,
},
};
export default class Profile extends Component { export default class Profile extends Component {
state = { state = {
file: null, file: null,
@ -18,11 +27,59 @@ export default class Profile extends Component {
}); });
}; };
render() { render() {
const {user} = this.props; const { user } = this.props;
return ( return (
<> <>
{window.innerWidth > 1000 ? ( {window.innerWidth > 1000 ? (
<div className="auth-profile d-flex"></div> <div className="auth-profile d-flex justify-content-center align-items-center">
<div className="auth-profile__box d-flex flex-column p-4">
<h1 style={{ fontSize: fontSize.desktop.h1 }}>حساب کاربری</h1>
<p style={{ fontSize: fontSize.desktop.p }}>
لطفا مشخصات خود را به صورت کامل نمایید.
</p>
<form className="auth-profile__box--form d-flex">
<div style={{ width: "48%" }}>
<div className="mb-2">
<Input name="name" label="نام و نام خانوادگی" />
</div>
<div className="mb-2">
<Input name="username" label="نام کاربری" />
</div>
<div className="mb-2">
<Input name="password" label="رمز عبور" />
</div>
</div>
<div style={{ width: "48%" }}>
<div className="mb-2" style={{ minWidth: "100%" }}>
<Select
parent={this}
options={["karaj", "tehran"]}
name="province"
label={"استان"}
/>
</div>
<div className="mb-2">
<Select
parent={this}
options={["karaj", "tehran"]}
name="city"
label={"شهرستان"}
/>
</div>
<div className="mb-2">
<TextArea
parent={this}
label={"آدرس محل سکونت"}
name="address"
/>
</div>
<div className="auth-profile__box--form__footer d-flex justify-content-center">
<button>ذخیره</button>
</div>
</div>
</form>
</div>
</div>
) : null} ) : null}
{window.innerWidth < 1000 ? ( {window.innerWidth < 1000 ? (
<div className="mobile-auth-profile d-flex flex-column"> <div className="mobile-auth-profile d-flex flex-column">
@ -53,11 +110,21 @@ export default class Profile extends Component {
)} )}
</div> </div>
<Input name="name" label="نام و نام خانوادگی" /> <Input name="name" label="نام و نام خانوادگی" />
<Input name="username" label="نام کاربری" /> <Input name="username" label="نام کاربری" />
<Input name="password" label="رمز عبور" /> <Input name="password" label="رمز عبور" />
<Select parent={this} options={['karaj', 'tehran']} name="province" label={'استان'} /> <Select
<Select parent={this} options={['karaj', 'tehran']} name="city" label={'شهرستان'} /> parent={this}
<TextArea parent={this} label={'آدرس محل سکونت'} name="address" /> options={["karaj", "tehran"]}
name="province"
label={"استان"}
/>
<Select
parent={this}
options={["karaj", "tehran"]}
name="city"
label={"شهرستان"}
/>
<TextArea parent={this} label={"آدرس محل سکونت"} name="address" />
<div className="mobile-auth-profile__footer d-flex justify-content-center"> <div className="mobile-auth-profile__footer d-flex justify-content-center">
<button>ذخیره</button> <button>ذخیره</button>
</div> </div>

@ -143,3 +143,111 @@
} }
} }
} }
.auth-profile{
width : 100vw;
height: 100vh;
&__box{
width: 100%;
max-width: 1000px;
border: 1px solid #ddd;
border-radius: 20px;
h1{
margin-top: 15px;
font-family: numeralBold;
color: #6F7074;
letter-spacing: -1px;
}
p{
font-family: numeralLight;
color: #6f7074;
letter-spacing: -1px;
text-align: justify;
}
&--form{
margin-top: 20px;
width: 100%;
justify-content:space-between;
.MuiFormControl-root{
width: 100%;
margin: 10px auto !important;
.MuiSelect-iconOutlined{
display: none;
}
.MuiSelect-outlined.MuiSelect-outlined{
padding-right: 15px;
}
color: #797979 !important;
}
.MuiOutlinedInput-notchedOutline {
top: 0px !important;
}
.MuiOutlinedInput-notchedOutline {
border-color: #cecece !important;
border-width: 1px !important;
color: green !important;
font-size: calc(100vw / 80) !important;
border-radius: 10px !important;
}
.MuiOutlinedInput-input {
padding: 20px 14px !important;
font-size: calc(100vw / 85) !important;
}
.MuiInputLabel-outlined {
font-family: numeralLight !important;
display: inline !important;
position: absolute;
text-align: right !important;
right: 7px;
top: 20px;
padding: 0px !important;
transform: translate(0px, 0px) scale(1) !important;
}
.MuiInputLabel-shrink {
text-align: center !important;
display: inline;
position: absolute;
right: 0px;
top: -8px;
transform: translate(0px, 0px) scale(0.85) !important;
padding-right: 0px !important;
}
label {
background-color: white;
max-width: 120px;
text-align: center;
font-size: calc(100vw / 85) !important;
color: #797979 !important;
letter-spacing: -1px;
}
.Mui-focused {
color: rgba(0, 0, 0, 0.54) !important;
border-color: #c4c4c5 !important;
background-color:white;
}
.MuiInputBase-input{
height: auto !important;
}
&__footer {
width: 100%;
justify-content: center;
align-items: center;
button {
font-family: numeralLight;
border: 0px;
background-color: #00CC69;
border-radius: 7px;
font-size: 18px;
font-weight: 600;
color: white;
padding: 12px 0px;
width: 100%;
}
}
}
}
}

@ -133,13 +133,13 @@ NavbarDrawer.defaultProps = {
}, },
{ {
name: "بارکد خوان", name: "بارکد خوان",
link: "/", link: "/qr-code",
icon: <img src={qrcode} alt="بارکد خوان" />, icon: <img src={qrcode} alt="بارکد خوان" />,
toast: "", toast: "",
}, },
{ {
name: "فروشگاه", name: "فروشگاه",
link: "/", link: "/products",
icon: <img src={mobileBasket} alt="فروشگاه" />, icon: <img src={mobileBasket} alt="فروشگاه" />,
toast: "", toast: "",
}, },
@ -157,7 +157,7 @@ NavbarDrawer.defaultProps = {
}, },
{ {
name: "ویرایش مشخصات", name: "ویرایش مشخصات",
link: "/", link: "/profile",
icon: <img src={mobileProfile} alt="ویرایش مشخصات" />, icon: <img src={mobileProfile} alt="ویرایش مشخصات" />,
toast: "", toast: "",
}, },

Loading…
Cancel
Save