From 9b0ff2ddde9bcd541aa933ab56939c1f7371dc00 Mon Sep 17 00:00:00 2001 From: Yash Sevada Date: Thu, 15 Oct 2020 13:54:27 +0530 Subject: [PATCH] Added signin page template --- js/components/SignIn.js | 131 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 js/components/SignIn.js diff --git a/js/components/SignIn.js b/js/components/SignIn.js new file mode 100644 index 0000000..93651b5 --- /dev/null +++ b/js/components/SignIn.js @@ -0,0 +1,131 @@ +import React from 'react'; +import Avatar from '@material-ui/core/Avatar'; +import Button from '@material-ui/core/Button'; +import CssBaseline from '@material-ui/core/CssBaseline'; +import TextField from '@material-ui/core/TextField'; +import FormControlLabel from '@material-ui/core/FormControlLabel'; +import Checkbox from '@material-ui/core/Checkbox'; +import Link from '@material-ui/core/Link'; +import Paper from '@material-ui/core/Paper'; +import Box from '@material-ui/core/Box'; +import Grid from '@material-ui/core/Grid'; +import LockOutlinedIcon from '@material-ui/icons/LockOutlined'; +import Typography from '@material-ui/core/Typography'; +import { makeStyles } from '@material-ui/core/styles'; + +function Copyright() { + return ( + + {'Copyright © '} + + Your Website + {' '} + {new Date().getFullYear()} + {'.'} + + ); +} + +const useStyles = makeStyles((theme) => ({ + root: { + height: '100vh', + }, + image: { + backgroundImage: 'url(https://source.unsplash.com/random)', + backgroundRepeat: 'no-repeat', + backgroundColor: + theme.palette.type === 'light' ? theme.palette.grey[50] : theme.palette.grey[900], + backgroundSize: 'cover', + backgroundPosition: 'center', + }, + paper: { + margin: theme.spacing(8, 4), + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + }, + avatar: { + margin: theme.spacing(1), + backgroundColor: theme.palette.secondary.main, + }, + form: { + width: '100%', // Fix IE 11 issue. + marginTop: theme.spacing(1), + }, + submit: { + margin: theme.spacing(3, 0, 2), + }, +})); + +export default function SignInSide() { + const classes = useStyles(); + + return ( + + + + +
+ + + + + Sign in + +
+ + + } + label="Remember me" + /> + + + + + Forgot password? + + + + + {"Don't have an account? Sign Up"} + + + + + + + +
+
+
+ ); +} \ No newline at end of file