diff --git a/app/signin/page.js b/app/signin/page.js
index fbeb29f..3b98dcd 100644
--- a/app/signin/page.js
+++ b/app/signin/page.js
@@ -6,14 +6,14 @@ import { useState } from 'react';
function SignIn() {
- const [isSendMsg, setIsSendMsg] = useState(false);
+ const [isSendMsg, setIsSendMsg] = useState(true);
return (
{isSendMsg ?
- :
- }
+ :
+ }
)
diff --git a/components/icons/ArrowLeftOrangeS.js b/components/icons/ArrowLeftOrangeS.js
new file mode 100644
index 0000000..893a7a4
--- /dev/null
+++ b/components/icons/ArrowLeftOrangeS.js
@@ -0,0 +1,10 @@
+function ArrowLeftOrangeS() {
+ return (
+
+ )
+}
+
+export default ArrowLeftOrangeS
\ No newline at end of file
diff --git a/components/icons/ArrowRightS.js b/components/icons/ArrowRightS.js
new file mode 100644
index 0000000..8a6f99d
--- /dev/null
+++ b/components/icons/ArrowRightS.js
@@ -0,0 +1,10 @@
+function ArrowRightS() {
+ return (
+
+ )
+}
+
+export default ArrowRightS
\ No newline at end of file
diff --git a/components/register/SetCodePage.js b/components/register/SetCodePage.js
index ed5bef2..87c27f9 100644
--- a/components/register/SetCodePage.js
+++ b/components/register/SetCodePage.js
@@ -1,7 +1,48 @@
-function SetCodePage() {
- return (
- SetCodePage
- )
+import { Button } from "@mui/material"
+import ArrowRightS from "../icons/ArrowRightS"
+import OTPForm from "./element/OTPForm"
+import ArrowLeftOrangeS from "../icons/ArrowLeftOrangeS"
+
+function SetCodePage({ setIsSendMsg }) {
+
+ const handleOTP = (e) => {
+ e.target.nextElementSibling &&
+ e.target.nextElementSibling.focus()
+ }
+
+ return (
+
+
setIsSendMsg(false)}
+ >
+
+
+
کد تایید را وارد نمایید
+
+ کد تایید برای شماره 09013261200 ارسال شد.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
}
export default SetCodePage
\ No newline at end of file
diff --git a/components/register/SignInPage.js b/components/register/SignInPage.js
index e085a64..07bf5bb 100644
--- a/components/register/SignInPage.js
+++ b/components/register/SignInPage.js
@@ -2,20 +2,23 @@ import Field from '@/app/component/element/Field'
import { Button } from '@mui/material'
import React from 'react'
-function SignInPage() {
+function SignInPage({ setIsSendMsg }) {
return (
ورود یا ثبت نام در نوبت 724
-
-
شماره همراه خود را وارد نمایید.
-
+
شماره همراه خود را وارد نمایید.
-
+
قوانین استفاده از نوبت 724 را می پذیرم.
)
diff --git a/components/register/element/OTPForm.js b/components/register/element/OTPForm.js
new file mode 100644
index 0000000..f872468
--- /dev/null
+++ b/components/register/element/OTPForm.js
@@ -0,0 +1,30 @@
+import { useState } from "react"
+
+function OTPForm({ handleOTP }) {
+
+ const [code, setCode] = useState('');
+
+ return (
+ {
+ const value = e.target.value
+
+ if (/^\d+$/.test(value) && value.length < 2) {
+ setCode(value)
+ handleOTP(e)
+ } else {
+ setCode('')
+ e.target.value = ''
+ }
+ }}
+ className={`w-12 h-12 border border-solid border-[#ADB5BD] rounded-[6px] text-center transition-all duration-500 ease-out
+ outline-none focus:!border-[1px] focus:!border-solid focus:!border-[#5559CE]
+ focus:!outline-[1px] focus:!outline-solid focus:!outline-[#5559CE]
+ ${code && '!border-[1px] !border-solid !border-[#5559CE]'}
+ `}
+ />
+ )
+}
+
+export default OTPForm
\ No newline at end of file