Skip to content

Commit

Permalink
Merge pull request #48 from JeevantVerma/front-test
Browse files Browse the repository at this point in the history
Fixed positioning of Login page.
  • Loading branch information
PreetinderSinghBadesha authored Jul 4, 2024
2 parents 01e82cb + dccac19 commit 0ecab01
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion frontend/src/LoginPage.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from "react";
import {
Grid,
Container,
Typography,
TextField,
Button,
Expand All @@ -26,14 +27,27 @@ const LoginPage = () => {
};

return (
<Container
maxWidth="md"
sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
height: '89vh',
width: {
xs: '100%',
md: '50vw',
}
}}
>
<Grid
container
spacing={2}
alignItems="center"
justifyContent="center"
sx={{ backgroundColor: "#eaeff1", padding: { xs: 3.8, md: 5 }, borderRadius: 10 }}
>
<Typography variant="h4" align="center">Login using Username</Typography>
<Typography variant="h4" align="center">Login</Typography>

<Grid item xs={12} sx={{ pt: { xs: 32, md: 16 }, pl: 16 }}>
<TextField
Expand Down Expand Up @@ -71,6 +85,7 @@ const LoginPage = () => {
</Button>
</Grid>
</Grid>
</Container>
);
};

Expand Down

0 comments on commit 0ecab01

Please sign in to comment.