forked from alkemyTech/Skill-Up-JS-Front-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from omar5876/fix-login-page-import
fix: login page import
- Loading branch information
Showing
1 changed file
with
40 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |