|
|
@@ -1,13 +1,11 @@
|
|
|
import * as React from 'react';
|
|
|
import { Link as RouterLink } from 'react-router-dom';
|
|
|
|
|
|
-import { styled } from '@mui/material/styles';
|
|
|
import {
|
|
|
- Box, Card, Link, Container, Typography,
|
|
|
+ Box, Link, Container, Typography,Card,
|
|
|
StepLabel,Step,Stepper, Button,Paper, StepContent
|
|
|
} from '@mui/material';
|
|
|
|
|
|
-import Page from '../Components/Register/Page';
|
|
|
import { RegisterForm } from '../Components/Register/RegisterForm';
|
|
|
import { PersonalInfo } from '../Components/Register/PersonalInfo.js';
|
|
|
import AuthLayout from '../Components/Register/AuthLayout';
|
|
|
@@ -15,31 +13,7 @@ import AuthLayout from '../Components/Register/AuthLayout';
|
|
|
import Mock from '../Images/register_mok.png'
|
|
|
import useAuth from '../Auth/useAuth';
|
|
|
import { useNavigate } from 'react-router-dom'
|
|
|
-
|
|
|
-const RootStyle = styled(Page)(({ theme }) => ({
|
|
|
- [theme.breakpoints.up('md')]: {
|
|
|
- display: 'flex'
|
|
|
- }
|
|
|
-}));
|
|
|
-
|
|
|
-const SectionStyle = styled(Card)(({ theme }) => ({
|
|
|
- width: '100%',
|
|
|
- maxWidth: 464,
|
|
|
- display: 'flex',
|
|
|
- flexDirection: 'column',
|
|
|
- justifyContent: 'center',
|
|
|
- margin: theme.spacing(2, 0, 2, 2)
|
|
|
-}));
|
|
|
-
|
|
|
-const ContentStyle = styled('div')(({ theme }) => ({
|
|
|
- maxWidth: 480,
|
|
|
- margin: 'auto',
|
|
|
- display: 'flex',
|
|
|
- minHeight: '100vh',
|
|
|
- flexDirection: 'column',
|
|
|
- justifyContent: 'center',
|
|
|
- padding: theme.spacing(12, 0)
|
|
|
-}));
|
|
|
+import { Col , Row,} from 'react-bootstrap';
|
|
|
|
|
|
|
|
|
export function Register() {
|
|
|
@@ -55,16 +29,16 @@ export function Register() {
|
|
|
|
|
|
const [activeStep, setActiveStep] = React.useState(0);
|
|
|
const [client, setClient] = React.useState({
|
|
|
- firstName: 'Ming',
|
|
|
+ firstName: '',
|
|
|
lastName: '',
|
|
|
email: '',
|
|
|
password: '',
|
|
|
password_confirm: '',
|
|
|
- nit: "5345435",
|
|
|
- cui: "555555",
|
|
|
- direccion: "4 calle zona 1",
|
|
|
- fechacumple: "2021-01-01",
|
|
|
- telefono : "45435345",
|
|
|
+ nit: "",
|
|
|
+ cui: "",
|
|
|
+ direccion: "",
|
|
|
+ fechacumple: "",
|
|
|
+ telefono : "",
|
|
|
});
|
|
|
|
|
|
const handleNext = () => {
|
|
|
@@ -94,32 +68,35 @@ export function Register() {
|
|
|
label: 'Datos Personales',
|
|
|
description:
|
|
|
<PersonalInfo
|
|
|
- client={client}
|
|
|
- setClient={setClient}
|
|
|
+ client={client} setClient={setClient}
|
|
|
handleBack={handleBack}
|
|
|
/>
|
|
|
},
|
|
|
];
|
|
|
|
|
|
return (
|
|
|
- <RootStyle title="Register | Minimal-UI">
|
|
|
-
|
|
|
- <AuthLayout>
|
|
|
- Ya tiene una cuenta?
|
|
|
- <Link to="/login" component={RouterLink}>
|
|
|
- Ingresa
|
|
|
- </Link>
|
|
|
- </AuthLayout>
|
|
|
-
|
|
|
- <SectionStyle>
|
|
|
- <Typography variant="h3" sx={{ px: 5, mt: 10, mb: 5 }}>
|
|
|
- Efectividad para tus procesos de reclutamiento
|
|
|
- </Typography>
|
|
|
- <img alt="register" src={Mock} />
|
|
|
- </SectionStyle>
|
|
|
-
|
|
|
- <Container>
|
|
|
- <ContentStyle>
|
|
|
+ <Container>
|
|
|
+ <Row>
|
|
|
+ <Col md={4}>
|
|
|
+ <Card className="card_register">
|
|
|
+
|
|
|
+ <AuthLayout>
|
|
|
+
|
|
|
+ <Link to="/login" component={RouterLink}>
|
|
|
+
|
|
|
+ </Link>
|
|
|
+ </AuthLayout>
|
|
|
+
|
|
|
+ <h1 variant="h3" sx={{ px: 5, mt: 10, mb: 5 }}>
|
|
|
+ Efectividad para tus procesos de reclutamiento
|
|
|
+ </h1>
|
|
|
+ <img alt="register" src={Mock} />
|
|
|
+ </Card>
|
|
|
+
|
|
|
+ </Col>
|
|
|
+
|
|
|
+ <Col style={{ "padding" : 45}} md={6}>
|
|
|
+
|
|
|
<Box sx={{ mb: 5 }}>
|
|
|
<Typography variant="h4" gutterBottom>
|
|
|
Empieza de forma gratuita.
|
|
|
@@ -129,56 +106,57 @@ export function Register() {
|
|
|
</Typography>
|
|
|
</Box>
|
|
|
|
|
|
-
|
|
|
<Stepper activeStep={activeStep} orientation="vertical">
|
|
|
- {steps.map((step, index) => (
|
|
|
- <Step key={step.label}>
|
|
|
- <StepLabel
|
|
|
- optional={
|
|
|
- index === 2 ? (
|
|
|
- <Typography variant="caption">Last step</Typography>
|
|
|
- ) : null
|
|
|
- }
|
|
|
- >
|
|
|
- {step.label}
|
|
|
- </StepLabel>
|
|
|
- <StepContent style={{ padding : 25}}>
|
|
|
- {step.description}
|
|
|
- </StepContent>
|
|
|
- </Step>
|
|
|
- ))}
|
|
|
+ {steps.map((step, index) => (
|
|
|
+ <Step key={step.label}>
|
|
|
+ <StepLabel
|
|
|
+ optional={
|
|
|
+ index === 2 ? (
|
|
|
+ <Typography variant="caption">Last step</Typography>
|
|
|
+ ) : null
|
|
|
+ }
|
|
|
+ >
|
|
|
+ {step.label}
|
|
|
+ </StepLabel>
|
|
|
+ <StepContent style={{ padding: 25 }}>
|
|
|
+ {step.description}
|
|
|
+ </StepContent>
|
|
|
+ </Step>
|
|
|
+ ))}
|
|
|
</Stepper>
|
|
|
- {activeStep === steps.length && (
|
|
|
- <Paper square elevation={0} sx={{ p: 3 }}>
|
|
|
- <Typography>All steps completed - you're finished</Typography>
|
|
|
- <Button onClick={handleReset} sx={{ mt: 1, mr: 1 }}>
|
|
|
- Reset
|
|
|
- </Button>
|
|
|
- </Paper>
|
|
|
- )}
|
|
|
-
|
|
|
- <Typography variant="body2" align="center" sx={{ color: 'text.secondary', mt: 3 }}>
|
|
|
- Estoy de acuerdo con las {" "}
|
|
|
- <Link underline="always" sx={{ color: "#d32f2f" }}>
|
|
|
- Condiciones de servicio
|
|
|
- </Link>
|
|
|
- {" "}y{" "}
|
|
|
- <Link underline="always" sx={{ color: "#d32f2f" }}>
|
|
|
- Política de privacidad
|
|
|
+ {activeStep === steps.length && (
|
|
|
+ <Paper square elevation={0} sx={{ p: 3 }}>
|
|
|
+ <Typography>All steps completed - you're finished</Typography>
|
|
|
+ <Button onClick={handleReset} sx={{ mt: 1, mr: 1 }}>
|
|
|
+ Reset
|
|
|
+ </Button>
|
|
|
+ </Paper>
|
|
|
+ )}
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <Typography variant="body2" align="center" sx={{ color: 'text.secondary', mt: 0 }}>
|
|
|
+ Estoy de acuerdo con las {" "}
|
|
|
+ <Link underline="always" sx={{ color: "#d32f2f" }}>
|
|
|
+ Condiciones de servicio
|
|
|
+ </Link>
|
|
|
+ {" "}y{" "}
|
|
|
+ <Link underline="always" sx={{ color: "#d32f2f" }}>
|
|
|
+ Política de privacidad
|
|
|
</Link>
|
|
|
.
|
|
|
</Typography>
|
|
|
|
|
|
- <div>
|
|
|
- <Typography variant="subtitle2" sx={{ mt: 3, textAlign: 'center' }}>
|
|
|
+ <Typography variant="subtitle2" sx={{ mt: 0, textAlign: 'center' }}>
|
|
|
Ya tiene una cuenta?
|
|
|
<Link to="/login" component={RouterLink}>
|
|
|
Ingresa
|
|
|
</Link>
|
|
|
</Typography>
|
|
|
</div>
|
|
|
- </ContentStyle>
|
|
|
- </Container>
|
|
|
- </RootStyle>
|
|
|
+
|
|
|
+
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ </Container>
|
|
|
);
|
|
|
}
|