From f0ab1c08e5b75efc6e2966841fde39a7bcfbb43e Mon Sep 17 00:00:00 2001 From: Ashutosh Bishnoi Date: Thu, 17 Jun 2021 13:56:59 +0530 Subject: Change file name from LoginPage to StartPage --- modern/src/StartPage.js | 65 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 modern/src/StartPage.js (limited to 'modern/src/StartPage.js') diff --git a/modern/src/StartPage.js b/modern/src/StartPage.js new file mode 100644 index 0000000..0a08617 --- /dev/null +++ b/modern/src/StartPage.js @@ -0,0 +1,65 @@ +import React from 'react'; +import { useMediaQuery, makeStyles, Paper } from '@material-ui/core'; +import { useTheme } from '@material-ui/core/styles'; + +const useStyles = makeStyles(theme => ({ + root: { + display: 'flex', + height: '100vh', + }, + sidebar: { + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + color: theme.palette.secondary.contrastText, + background: theme.palette.common.purple, + paddingBottom: theme.spacing(5), + width: theme.dimensions.sidebarWidth, + [theme.breakpoints.down('md')]: { + width: theme.dimensions.tabletSidebarWidth, + }, + [theme.breakpoints.down('xs')]: { + width: '0px', + }, + }, + paper: { + display:'flex', + flexDirection: 'column', + justifyContent: 'center', + alignItems: 'center', + flex: 1, + boxShadow: '-2px 0px 16px rgba(0, 0, 0, 0.25)', + [theme.breakpoints.up('lg')]: { + padding: theme.spacing(0, 25, 0, 0) + }, + }, + form: { + maxWidth: theme.spacing(52), + padding: theme.spacing(5), + width: "100%", + }, +})); + +const StartPage = ({ children }) => { + const classes = useStyles(); + const theme = useTheme(); + + return ( +
+
+ {!useMediaQuery(theme.breakpoints.down('md')) && + + + + } +
+ +
+ { children } +
+
+
+ ) +} + +export default StartPage; -- cgit v1.2.3