diff --git a/public/index.html b/public/index.html index aa069f2..63d02a4 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,7 @@ - + - React App + اندیشمند diff --git a/public/logo.ico b/public/logo.ico new file mode 100644 index 0000000..20cfe69 Binary files /dev/null and b/public/logo.ico differ diff --git a/src/components/Button/index.js b/src/components/Button/index.js index ad36abd..1887095 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -8,7 +8,8 @@ const Button = ( borderType, to, type, - className + className, + submit } ) => { return ( @@ -17,7 +18,8 @@ const Button = ( className={`${className} Login-box-form-btn w-full h-12 ${borderType ? borderType : 'rounded-lg'} border border-solid border-red52 ${type == 'outlined' ? 'text-red52' : 'text-white bg-red52'} flex items-center justify-center mt-4`} onClick={onClick} > - {title} + {submit ? : + title} ); }; diff --git a/src/components/input/index.js b/src/components/input/index.js index c1747f0..9acb8be 100644 --- a/src/components/input/index.js +++ b/src/components/input/index.js @@ -8,7 +8,8 @@ const Input = ({ id, type, direction, - className + className, + onChange }) => { @@ -44,11 +45,13 @@ const Input = ({ focusHandler(id ? id : 0)} onBlur={() => blurHandler(id ? id : 0)} + onChange={onChange} + /> ) diff --git a/src/view/register/index.js b/src/view/register/index.js index ee1b311..3657437 100644 --- a/src/view/register/index.js +++ b/src/view/register/index.js @@ -11,6 +11,7 @@ import Input from "../../components/input"; import FileInput from "../../components/fileInput"; import Button from "../../components/Button"; import Stepper from "../../components/Stepper"; +import UserInfo from "../dashboard2/UserInfo"; const Register = ({ activeLogin }) => { @@ -19,6 +20,40 @@ const Register = ({ activeLogin }) => { const [register, setRegister] = useState(false); const timeoutRef = useRef(null); const [activeStep, setActiveStep] = useState([true, false, false, false]); + const [error, setError] = useState(''); + + const [userInfo, setUserInfo] = useState({ + name: null, + familyName: null, + nationalId: null, + birthDate: null, + grade: null, + schoolName: null, + city: null, + state: null, + fatherName: null, + fatherNationalId: null, + fatherFamilyName: null, + fatherJob: null, + fatherMajor: null, + fatherPhoneNumber: null, + fatherJobAddress: null, + fatherJobPhoneNumber: null, + motherName: null, + motherNationalId: null, + motherFamilyName: null, + motherJob: null, + motherMajor: null, + motherPhoneNumber: null, + motherJobAddress: null, + motherJobPhoneNumber: null, + + familyNumber: null, + address: null, + homePhoneNumber: null, + + + }); const focusHandler = (id) => { let inputs = document.querySelectorAll(".Login-box-form-item"); @@ -120,14 +155,17 @@ const Register = ({ activeLogin }) => { ] return ( -
+
+
+ {/* form */} + {console.log(userInfo)}
{/* */}
-

+

{/* سامانه ثبت نام مدارس موسسه علمی اندیشمند */} تکمیل اطلاعات پروفایل

@@ -170,7 +208,7 @@ const Register = ({ activeLogin }) => {
{ steps == 0 && - <> +

مشخصات هویتی دانش آموز

@@ -179,7 +217,7 @@ const Register = ({ activeLogin }) => {
- +
@@ -189,10 +227,10 @@ const Register = ({ activeLogin }) => {
- +
- +
@@ -222,26 +260,43 @@ const Register = ({ activeLogin }) => { ))} - - + +
- + } { steps == 1 && - <> +

مشخصات هویتی پدر

@@ -250,7 +305,7 @@ const Register = ({ activeLogin }) => {
- + @@ -281,8 +336,8 @@ const Register = ({ activeLogin }) => {
-

مشخصات هویتی پدر

-

لطفا اطلاعات مربوط هویتی پدر را وارد کنید

+

مشخصات هویتی مادر

+

لطفا اطلاعات مربوط هویتی مادر را وارد کنید

@@ -335,8 +390,8 @@ const Register = ({ activeLogin }) => {
- - + +
@@ -351,15 +406,54 @@ const Register = ({ activeLogin }) => {
- + } { @@ -391,11 +485,11 @@ const Register = ({ activeLogin }) => {