-
-
-
-
- {!this.state.resendStatus ? (
-
- ) : (
+
+
- )}
+
+
+
+
) : null}
{window.innerWidth < 1000 ? (
@@ -249,7 +300,9 @@ export default class Code extends Component {
this.props.parent.setState({ page : 0, cellphone : ''})}
+ onClick={() =>
+ this.props.parent.setState({ page: 0, cellphone: "" })
+ }
>
بازگشت به مرحله قبل و اصلاح شماره
diff --git a/src/views/Auth/Login/Code/index.scss b/src/views/Auth/Login/Code/index.scss
index 23d6f2a..3c0f243 100644
--- a/src/views/Auth/Login/Code/index.scss
+++ b/src/views/Auth/Login/Code/index.scss
@@ -1,84 +1,110 @@
.auth-code{
- width: 100%;
- height: 100%;
- justify-content:center;
- align-items:center;
- direction: ltr;
- position: relative;
- input {
- width: 50px;
- background-color: inherit;
- border : 0px;
- border-bottom: 2px solid white;
- margin : 0px 7px;
- font-size: 24px;
- color : white;
- text-align: center;
- direction : ltr;
- &:focus{
- outline: 0px;
+ width: 100vw;
+ height: 100vh;
+ &__box {
+ width: 100%;
+ max-width: 1000px;
+ border: 1px solid #ddd;
+ border-radius: 20px;
+ justify-content: space-between;
+ height: 80%;
+ img {
+ margin-bottom: 30px;
+ }
+ button{
+ margin-top: 20px;
+ width: 100%;
+ max-width: 300px;
+ border: 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{
- 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;
+
+ .mobile-auth-code{
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{
+ height: 100%;
+ justify-content:center;
+ align-items:center;
direction: ltr;
- input {
- max-width: 60px;
- max-height: 60px;
- background-color: #f2f2f2;
- border : 0px;
- margin : 0px 10px;
- color: #6F7074;
- text-align: 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);
- border-radius: 5px;
- padding: 10px 15px;
- &:focus{
- outline: 0px;
+ 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%;
+ 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;
+ }
}
}
}
+
}
\ No newline at end of file
diff --git a/src/views/Auth/Login/Timer/index.js b/src/views/Auth/Login/Timer/index.js
index 2687754..b3befab 100644
--- a/src/views/Auth/Login/Timer/index.js
+++ b/src/views/Auth/Login/Timer/index.js
@@ -1,6 +1,13 @@
import { Component } from "react";
import "./index.css";
+const maxDesktopSize = 1250;
+
+const fontSize = {
+ desktop: {
+ div: window.innerWidth > maxDesktopSize ? 14 : window.innerWidth / 95,
+ },
+};
export default class Timer extends Component {
constructor(props) {
super(props);
@@ -56,11 +63,26 @@ export default class Timer extends Component {
}
render() {
return (
-
-
زمان باقیمانده تا انقضای کد:
-
{this.state.time.s}
:
-
{this.state.time.m + this.state.time.h * 60}
-
+ <>
+ {window.innerWidth > 1000 ? (
+
+
+ زمان باقیمانده تا انقضای کد:
+
+
{this.state.time.s}
:
+
{this.state.time.m + this.state.time.h * 60}
+
+ ) : null}
+ {window.innerWidth < 1000 ? (
+
+
+ زمان باقیمانده تا انقضای کد:
+
+
{this.state.time.s}
:
+
{this.state.time.m + this.state.time.h * 60}
+
+ ) : null}
+ >
);
}
}
diff --git a/src/views/Auth/Login/index.js b/src/views/Auth/Login/index.js
index 0c5e20f..d27f4c6 100644
--- a/src/views/Auth/Login/index.js
+++ b/src/views/Auth/Login/index.js
@@ -7,7 +7,7 @@ export default class Login extends Component {
constructor(props) {
super(props);
this.state = {
- page: 1,
+ page: 0,
};
}
diff --git a/src/views/Auth/Profile/Select/index.js b/src/views/Auth/Profile/Select/index.js
index ecf9703..376b94d 100644
--- a/src/views/Auth/Profile/Select/index.js
+++ b/src/views/Auth/Profile/Select/index.js
@@ -43,7 +43,7 @@ export default function CustomizedSelects(props) {
console.log(props);
return (
-
+
{props.label}