this.setState({ resendStatus : false })}>
- دریافت مجدد کد
+ <>
+ {window.innerWidth > 1000 ? (
+
+ ) : null}
+ {window.innerWidth < 1000 ? (
+
+
+
+
دانوین
+
+ یک کد تائیدیه به شماره 09123190615 ارسال شد
+ آن را در قسمت زیر وارد کنید.
+
+
+
+
+
+
+
+
+
+ {!this.state.resendStatus ? (
+
+ ) : (
+
this.setState({ resendStatus: false })}
+ >
+ ارسال مجدد کد فعال سازی
+
+ )}
+
this.props.parent.setState({ page : 0, cellphone : ''})}
+ >
+ بازگشت به مرحله قبل و اصلاح شماره
+
- }
-
-
+ ) : null}
+ >
);
}
}
diff --git a/src/views/Auth/Login/Code/index.scss b/src/views/Auth/Login/Code/index.scss
index b82f3c6..23d6f2a 100644
--- a/src/views/Auth/Login/Code/index.scss
+++ b/src/views/Auth/Login/Code/index.scss
@@ -5,7 +5,6 @@
align-items:center;
direction: ltr;
position: relative;
-
input {
width: 50px;
background-color: inherit;
@@ -16,6 +15,70 @@
color : white;
text-align: center;
direction : ltr;
-
+ &:focus{
+ outline: 0px;
+ }
+ }
+}
+
+.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%;
+ 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.css b/src/views/Auth/Login/Timer/index.css
index f752ca7..f45c2fc 100644
--- a/src/views/Auth/Login/Timer/index.css
+++ b/src/views/Auth/Login/Timer/index.css
@@ -2,7 +2,5 @@
flex-direction: row;
direction: rtl !important;
margin-right: 10px;
- position : absolute;
- bottom: 40%;
- color: white;
+ color: #6CBE44;
}
\ 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 5e1e815..2687754 100644
--- a/src/views/Auth/Login/Timer/index.js
+++ b/src/views/Auth/Login/Timer/index.js
@@ -56,11 +56,10 @@ export default class Timer extends Component {
}
render() {
return (
-
-
دریافت مجدد کد در
+
+
زمان باقیمانده تا انقضای کد:
{this.state.time.s}
:
{this.state.time.m + this.state.time.h * 60}
-
دیگر
);
}
diff --git a/src/views/Auth/Login/index.js b/src/views/Auth/Login/index.js
index 7315be4..0c5e20f 100644
--- a/src/views/Auth/Login/index.js
+++ b/src/views/Auth/Login/index.js
@@ -1,13 +1,13 @@
import React, { Component } from "react";
-import Cellphone from "./Cellphone/Cellphone";
-import Code from "./Code/Code";
+import Cellphone from "./Cellphone/index";
+import Code from "./Code/index";
export default class Login extends Component {
constructor(props) {
super(props);
this.state = {
- page: 0,
+ page: 1,
};
}
diff --git a/src/views/Auth/Profile/index.js b/src/views/Auth/Profile/index.js
index a3c424c..ee1794e 100644
--- a/src/views/Auth/Profile/index.js
+++ b/src/views/Auth/Profile/index.js
@@ -1,11 +1,26 @@
import React, { Component } from "react";
+import logo from "../../../assets/icons/logo.png";
+
+import './index.scss';
export default class Profile extends Component {
render() {
return (
-
+ <>
+ {
+ window.innerWidth > 1000 ?
+
-
+
: null
+ }
+ {
+ window.innerWidth < 1000 ?
+
+
+
: null
+ }
+ >
+
);
}
}
diff --git a/src/views/Auth/Profile/index.scss b/src/views/Auth/Profile/index.scss
new file mode 100644
index 0000000..5a8c72f
--- /dev/null
+++ b/src/views/Auth/Profile/index.scss
@@ -0,0 +1,7 @@
+.mobile-auth-profile{
+ width : 100%;
+ height : 100%;
+ overflow-y: scroll;
+ position: relative;
+ padding: 15px;
+}
\ No newline at end of file
diff --git a/src/views/Auth/index.js b/src/views/Auth/index.js
index 0f42720..23531ca 100644
--- a/src/views/Auth/index.js
+++ b/src/views/Auth/index.js
@@ -1,21 +1,22 @@
import React, { Component } from "react";
import {ToastContainer} from "react-toastify";
-import Profile from "./Profile/Profile";
-import Login from "./Login/Login";
+import Profile from "./Profile/index";
+import Login from "./Login/index";
import "./index.scss";
export default class Auth extends Component {
constructor(props) {
super(props);
this.state = {
- page: "login",
+ page: this.props.page,
};
}
render() {
return (
- {this.state.page === "login" ?
:
}
+ {this.state.page === "login" ?
: null}
+ {this.state.page === "profile" ?
: null}