|
@@ -1,13 +1,11 @@
|
1
|
1
|
import * as React from 'react';
|
2
|
2
|
import { Link as RouterLink } from 'react-router-dom';
|
3
|
3
|
|
4
|
|
-import { styled } from '@mui/material/styles';
|
5
|
4
|
import {
|
6
|
|
- Box, Card, Link, Container, Typography,
|
|
5
|
+ Box, Link, Container, Typography,Card,
|
7
|
6
|
StepLabel,Step,Stepper, Button,Paper, StepContent
|
8
|
7
|
} from '@mui/material';
|
9
|
8
|
|
10
|
|
-import Page from '../Components/Register/Page';
|
11
|
9
|
import { RegisterForm } from '../Components/Register/RegisterForm';
|
12
|
10
|
import { PersonalInfo } from '../Components/Register/PersonalInfo.js';
|
13
|
11
|
import AuthLayout from '../Components/Register/AuthLayout';
|
|
@@ -15,31 +13,7 @@ import AuthLayout from '../Components/Register/AuthLayout';
|
15
|
13
|
import Mock from '../Images/register_mok.png'
|
16
|
14
|
import useAuth from '../Auth/useAuth';
|
17
|
15
|
import { useNavigate } from 'react-router-dom'
|
18
|
|
-
|
19
|
|
-const RootStyle = styled(Page)(({ theme }) => ({
|
20
|
|
- [theme.breakpoints.up('md')]: {
|
21
|
|
- display: 'flex'
|
22
|
|
- }
|
23
|
|
-}));
|
24
|
|
-
|
25
|
|
-const SectionStyle = styled(Card)(({ theme }) => ({
|
26
|
|
- width: '100%',
|
27
|
|
- maxWidth: 464,
|
28
|
|
- display: 'flex',
|
29
|
|
- flexDirection: 'column',
|
30
|
|
- justifyContent: 'center',
|
31
|
|
- margin: theme.spacing(2, 0, 2, 2)
|
32
|
|
-}));
|
33
|
|
-
|
34
|
|
-const ContentStyle = styled('div')(({ theme }) => ({
|
35
|
|
- maxWidth: 480,
|
36
|
|
- margin: 'auto',
|
37
|
|
- display: 'flex',
|
38
|
|
- minHeight: '100vh',
|
39
|
|
- flexDirection: 'column',
|
40
|
|
- justifyContent: 'center',
|
41
|
|
- padding: theme.spacing(12, 0)
|
42
|
|
-}));
|
|
16
|
+import { Col , Row,} from 'react-bootstrap';
|
43
|
17
|
|
44
|
18
|
|
45
|
19
|
export function Register() {
|
|
@@ -55,16 +29,16 @@ export function Register() {
|
55
|
29
|
|
56
|
30
|
const [activeStep, setActiveStep] = React.useState(0);
|
57
|
31
|
const [client, setClient] = React.useState({
|
58
|
|
- firstName: 'Ming',
|
|
32
|
+ firstName: '',
|
59
|
33
|
lastName: '',
|
60
|
34
|
email: '',
|
61
|
35
|
password: '',
|
62
|
36
|
password_confirm: '',
|
63
|
|
- nit: "5345435",
|
64
|
|
- cui: "555555",
|
65
|
|
- direccion: "4 calle zona 1",
|
66
|
|
- fechacumple: "2021-01-01",
|
67
|
|
- telefono : "45435345",
|
|
37
|
+ nit: "",
|
|
38
|
+ cui: "",
|
|
39
|
+ direccion: "",
|
|
40
|
+ fechacumple: "",
|
|
41
|
+ telefono : "",
|
68
|
42
|
});
|
69
|
43
|
|
70
|
44
|
const handleNext = () => {
|
|
@@ -94,32 +68,35 @@ export function Register() {
|
94
|
68
|
label: 'Datos Personales',
|
95
|
69
|
description:
|
96
|
70
|
<PersonalInfo
|
97
|
|
- client={client}
|
98
|
|
- setClient={setClient}
|
|
71
|
+ client={client} setClient={setClient}
|
99
|
72
|
handleBack={handleBack}
|
100
|
73
|
/>
|
101
|
74
|
},
|
102
|
75
|
];
|
103
|
76
|
|
104
|
77
|
return (
|
105
|
|
- <RootStyle title="Register | Minimal-UI">
|
106
|
|
-
|
107
|
|
- <AuthLayout>
|
108
|
|
- Ya tiene una cuenta?
|
109
|
|
- <Link to="/login" component={RouterLink}>
|
110
|
|
- Ingresa
|
111
|
|
- </Link>
|
112
|
|
- </AuthLayout>
|
113
|
|
-
|
114
|
|
- <SectionStyle>
|
115
|
|
- <Typography variant="h3" sx={{ px: 5, mt: 10, mb: 5 }}>
|
116
|
|
- Efectividad para tus procesos de reclutamiento
|
117
|
|
- </Typography>
|
118
|
|
- <img alt="register" src={Mock} />
|
119
|
|
- </SectionStyle>
|
120
|
|
-
|
121
|
|
- <Container>
|
122
|
|
- <ContentStyle>
|
|
78
|
+ <Container>
|
|
79
|
+ <Row>
|
|
80
|
+ <Col md={4}>
|
|
81
|
+ <Card className="card_register">
|
|
82
|
+
|
|
83
|
+ <AuthLayout>
|
|
84
|
+
|
|
85
|
+ <Link to="/login" component={RouterLink}>
|
|
86
|
+
|
|
87
|
+ </Link>
|
|
88
|
+ </AuthLayout>
|
|
89
|
+
|
|
90
|
+ <h1 variant="h3" sx={{ px: 5, mt: 10, mb: 5 }}>
|
|
91
|
+ Efectividad para tus procesos de reclutamiento
|
|
92
|
+ </h1>
|
|
93
|
+ <img alt="register" src={Mock} />
|
|
94
|
+ </Card>
|
|
95
|
+
|
|
96
|
+ </Col>
|
|
97
|
+
|
|
98
|
+ <Col style={{ "padding" : 45}} md={6}>
|
|
99
|
+
|
123
|
100
|
<Box sx={{ mb: 5 }}>
|
124
|
101
|
<Typography variant="h4" gutterBottom>
|
125
|
102
|
Empieza de forma gratuita.
|
|
@@ -129,56 +106,57 @@ export function Register() {
|
129
|
106
|
</Typography>
|
130
|
107
|
</Box>
|
131
|
108
|
|
132
|
|
-
|
133
|
109
|
<Stepper activeStep={activeStep} orientation="vertical">
|
134
|
|
- {steps.map((step, index) => (
|
135
|
|
- <Step key={step.label}>
|
136
|
|
- <StepLabel
|
137
|
|
- optional={
|
138
|
|
- index === 2 ? (
|
139
|
|
- <Typography variant="caption">Last step</Typography>
|
140
|
|
- ) : null
|
141
|
|
- }
|
142
|
|
- >
|
143
|
|
- {step.label}
|
144
|
|
- </StepLabel>
|
145
|
|
- <StepContent style={{ padding : 25}}>
|
146
|
|
- {step.description}
|
147
|
|
- </StepContent>
|
148
|
|
- </Step>
|
149
|
|
- ))}
|
|
110
|
+ {steps.map((step, index) => (
|
|
111
|
+ <Step key={step.label}>
|
|
112
|
+ <StepLabel
|
|
113
|
+ optional={
|
|
114
|
+ index === 2 ? (
|
|
115
|
+ <Typography variant="caption">Last step</Typography>
|
|
116
|
+ ) : null
|
|
117
|
+ }
|
|
118
|
+ >
|
|
119
|
+ {step.label}
|
|
120
|
+ </StepLabel>
|
|
121
|
+ <StepContent style={{ padding: 25 }}>
|
|
122
|
+ {step.description}
|
|
123
|
+ </StepContent>
|
|
124
|
+ </Step>
|
|
125
|
+ ))}
|
150
|
126
|
</Stepper>
|
151
|
|
- {activeStep === steps.length && (
|
152
|
|
- <Paper square elevation={0} sx={{ p: 3 }}>
|
153
|
|
- <Typography>All steps completed - you're finished</Typography>
|
154
|
|
- <Button onClick={handleReset} sx={{ mt: 1, mr: 1 }}>
|
155
|
|
- Reset
|
156
|
|
- </Button>
|
157
|
|
- </Paper>
|
158
|
|
- )}
|
159
|
|
-
|
160
|
|
- <Typography variant="body2" align="center" sx={{ color: 'text.secondary', mt: 3 }}>
|
161
|
|
- Estoy de acuerdo con las {" "}
|
162
|
|
- <Link underline="always" sx={{ color: "#d32f2f" }}>
|
163
|
|
- Condiciones de servicio
|
164
|
|
- </Link>
|
165
|
|
- {" "}y{" "}
|
166
|
|
- <Link underline="always" sx={{ color: "#d32f2f" }}>
|
167
|
|
- Política de privacidad
|
|
127
|
+ {activeStep === steps.length && (
|
|
128
|
+ <Paper square elevation={0} sx={{ p: 3 }}>
|
|
129
|
+ <Typography>All steps completed - you're finished</Typography>
|
|
130
|
+ <Button onClick={handleReset} sx={{ mt: 1, mr: 1 }}>
|
|
131
|
+ Reset
|
|
132
|
+ </Button>
|
|
133
|
+ </Paper>
|
|
134
|
+ )}
|
|
135
|
+
|
|
136
|
+ <div>
|
|
137
|
+ <Typography variant="body2" align="center" sx={{ color: 'text.secondary', mt: 0 }}>
|
|
138
|
+ Estoy de acuerdo con las {" "}
|
|
139
|
+ <Link underline="always" sx={{ color: "#d32f2f" }}>
|
|
140
|
+ Condiciones de servicio
|
|
141
|
+ </Link>
|
|
142
|
+ {" "}y{" "}
|
|
143
|
+ <Link underline="always" sx={{ color: "#d32f2f" }}>
|
|
144
|
+ Política de privacidad
|
168
|
145
|
</Link>
|
169
|
146
|
.
|
170
|
147
|
</Typography>
|
171
|
148
|
|
172
|
|
- <div>
|
173
|
|
- <Typography variant="subtitle2" sx={{ mt: 3, textAlign: 'center' }}>
|
|
149
|
+ <Typography variant="subtitle2" sx={{ mt: 0, textAlign: 'center' }}>
|
174
|
150
|
Ya tiene una cuenta?
|
175
|
151
|
<Link to="/login" component={RouterLink}>
|
176
|
152
|
Ingresa
|
177
|
153
|
</Link>
|
178
|
154
|
</Typography>
|
179
|
155
|
</div>
|
180
|
|
- </ContentStyle>
|
181
|
|
- </Container>
|
182
|
|
- </RootStyle>
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+ </Col>
|
|
159
|
+ </Row>
|
|
160
|
+ </Container>
|
183
|
161
|
);
|
184
|
162
|
}
|