-
-
Save ManishPoduval/1cb3c1ba0ebe49d1d4f7a3e2c4c7a133 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import * as React from 'react'; | |
import Button from '@mui/material/Button'; | |
import CssBaseline from '@mui/material/CssBaseline'; | |
import TextField from '@mui/material/TextField'; | |
import Grid from '@mui/material/Grid'; | |
import Box from '@mui/material/Box'; | |
import Typography from '@mui/material/Typography'; | |
import Container from '@mui/material/Container'; | |
import { createTheme, ThemeProvider } from '@mui/material/styles'; | |
import {Link} from 'react-router-dom' | |
const theme = createTheme(); | |
function SignIn(props) { | |
return ( | |
<ThemeProvider theme={theme}> | |
<Container component="main" maxWidth="xs"> | |
<CssBaseline /> | |
<Box | |
sx={{ | |
marginTop: 8, | |
display: 'flex', | |
flexDirection: 'column', | |
alignItems: 'center', | |
}} | |
> | |
<Typography component="h1" variant="h5"> | |
Sign in | |
</Typography> | |
<Box component="form" noValidate sx={{ mt: 1 }}> | |
<TextField | |
margin="normal" | |
required | |
fullWidth | |
id="email" | |
label="Email Address" | |
name="email" | |
autoComplete="email" | |
autoFocus | |
/> | |
<TextField | |
margin="normal" | |
required | |
fullWidth | |
name="password" | |
label="Password" | |
type="password" | |
id="password" | |
autoComplete="current-password" | |
/> | |
<Button | |
type="submit" | |
fullWidth | |
variant="contained" | |
sx={{ mt: 3, mb: 2 }} | |
> | |
Sign In | |
</Button> | |
<Grid container> | |
<Grid item> | |
<Link to="/signup" > | |
{"Don't have an account? Sign Up"} | |
</Link> | |
</Grid> | |
</Grid> | |
</Box> | |
</Box> | |
</Container> | |
</ThemeProvider> | |
); | |
} | |
export default SignIn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment