Skip to content

Commit

Permalink
Merge pull request #12 from omar5876/fix-login-page-import
Browse files Browse the repository at this point in the history
fix: login page import
  • Loading branch information
NachoAiup authored Nov 9, 2022
2 parents 4b13ee2 + 990947e commit 41ca599
Showing 1 changed file with 40 additions and 45 deletions.
85 changes: 40 additions & 45 deletions src/Pages/Login.jsx
Original file line number Diff line number Diff line change
@@ -1,52 +1,47 @@
import React from "react";
import Formulario from "../Components/Formularios/Formulario";
import { Container, Box, Typography } from "@mui/material";
import { Link } from "react-router-dom";
import React from 'react';
import { Link } from 'react-router-dom';

import loginWallet from "../assets/login-wallet.jpeg";
import LoginForm from '../Components/Formularios/LoginForm/LoginForm';
import { Box, Typography, Button, CardMedia } from '@mui/material';

import LoginForm from "../Components/Formularios/LoginForm/LoginForm";
import { Box, Typography, Button, CardMedia } from "@mui/material";
import { Link } from "react-router-dom";

import loginWallet from "../assets/login-wallet.jpeg";
import loginWallet from '../assets/login-wallet.jpeg';

function Login() {
return (
<Box
style={{
display: "grid",
gridTemplateColumns: "1fr 1fr",
width: "100%",
}}
>
<CardMedia
component="img"
alt="phone wallet app"
sx={{ height: "100vh" }}
image={loginWallet}
/>
<Box
style={{
display: "flex",
flexDirection: "column",
justifyContent: "space-evenly",
alignItems: "center",
}}
>
<Typography variant="h5" style={{ marginBottom: "1em" }}>
Ingrese sus datos para iniciar sesion
</Typography>
<LoginForm />
<Typography variant="subtitle1">
¿No tienes cuenta?
<Button component={Link} to="/register" underline="none">
Registrarse
</Button>
</Typography>
</Box>
</Box>
);
return (
<Box
style={{
display: 'grid',
gridTemplateColumns: '1fr 1fr',
width: '100%',
}}
>
<CardMedia
component="img"
alt="phone wallet app"
sx={{ height: '100vh' }}
image={loginWallet}
/>
<Box
style={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-evenly',
alignItems: 'center',
}}
>
<Typography variant="h5" style={{ marginBottom: '1em' }}>
Ingrese sus datos para iniciar sesion
</Typography>
<LoginForm />
<Typography variant="subtitle1">
¿No tienes cuenta?
<Button component={Link} to="/register" underline="none">
Registrarse
</Button>
</Typography>
</Box>
</Box>
);
}

export default Login;

0 comments on commit 41ca599

Please sign in to comment.