-
-
Save ManishPoduval/79c9017b16512b5cfbde2cf96b37d956 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 SignUp(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 Up | |
</Typography> | |
<Box component="form" noValidate sx={{ mt: 1 }}> | |
<TextField | |
margin="normal" | |
required | |
fullWidth | |
id="username" | |
label="Username" | |
name="username" | |
autoFocus | |
/> | |
<TextField | |
margin="normal" | |
required | |
fullWidth | |
id="email" | |
label="Email Address" | |
name="email" | |
autoComplete="email" | |
/> | |
<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 Up | |
</Button> | |
<Grid container> | |
<Grid item> | |
<Link to="/signin" > | |
{"Already have an account? Sign In instead"} | |
</Link> | |
</Grid> | |
</Grid> | |
</Box> | |
</Box> | |
</Container> | |
</ThemeProvider> | |
); | |
} | |
export default SignUp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment