Update UserImgLogin UI #202
This commit is contained in:
1 file changed
+41
-44
+41
-44
@@ -13,6 +13,7 @@ import {
|
|||||||
DialogContentText,
|
DialogContentText,
|
||||||
Grid,
|
Grid,
|
||||||
OutlinedInput,
|
OutlinedInput,
|
||||||
|
Paper,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
@@ -145,54 +146,53 @@ export const LoginWithImage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<AppBarBackOnly />
|
<AppBarBackOnly />
|
||||||
<Container
|
<div
|
||||||
maxWidth="xs"
|
style={{
|
||||||
sx={{
|
|
||||||
height: "100vh",
|
height: "100vh",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
flexDirection: "column",
|
||||||
|
width: "30vw",
|
||||||
|
margin: "auto",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Grid
|
<div
|
||||||
container
|
style={{
|
||||||
direction="column"
|
marginBottom: "-4em",
|
||||||
justifyContent="center"
|
boxShadow: "1em 0 hsl(256, 100%, 6%)",
|
||||||
alignItems="center"
|
}}
|
||||||
spacing={2}
|
|
||||||
width="100%"
|
|
||||||
>
|
|
||||||
<Grid
|
|
||||||
container
|
|
||||||
direction="column"
|
|
||||||
justifyContent="center"
|
|
||||||
alignItems="center"
|
|
||||||
marginBottom={2}
|
|
||||||
>
|
|
||||||
<Typography
|
|
||||||
textAlign="center"
|
|
||||||
variant="h3"
|
|
||||||
color="textPrimary"
|
|
||||||
mb={2}
|
|
||||||
>
|
|
||||||
Login
|
|
||||||
</Typography>
|
|
||||||
</Grid>
|
|
||||||
<Grid
|
|
||||||
container
|
|
||||||
direction="column"
|
|
||||||
justifyContent="center"
|
|
||||||
alignItems="center"
|
|
||||||
mb={1}
|
|
||||||
>
|
>
|
||||||
<AvatarImage userId={userId} />
|
<AvatarImage userId={userId} />
|
||||||
<Typography color="textPrimary" textAlign="center" variant="h4">
|
</div>
|
||||||
{userName}
|
<Paper
|
||||||
|
sx={{
|
||||||
|
width: "100%",
|
||||||
|
padding: "1em",
|
||||||
|
paddingTop: "5em",
|
||||||
|
borderRadius: "10px",
|
||||||
|
}}
|
||||||
|
elevation={2}
|
||||||
|
>
|
||||||
|
<Typography
|
||||||
|
textAlign="left"
|
||||||
|
variant="h5"
|
||||||
|
sx={{ opacity: 0.8 }}
|
||||||
|
mb={2}
|
||||||
|
>
|
||||||
|
Login as {userName}:
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
<FormGroup
|
||||||
<Grid minWidth="100%">
|
sx={{
|
||||||
<FormGroup>
|
width: "100%",
|
||||||
<FormControl variant="outlined" fullWidth>
|
}}
|
||||||
|
>
|
||||||
|
<FormControl
|
||||||
|
variant="outlined"
|
||||||
|
style={{
|
||||||
|
width: "100%",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<InputLabel htmlFor="user-password">Password:</InputLabel>
|
<InputLabel htmlFor="user-password">Password:</InputLabel>
|
||||||
<OutlinedInput
|
<OutlinedInput
|
||||||
id="user-password"
|
id="user-password"
|
||||||
@@ -230,8 +230,6 @@ export const LoginWithImage = () => {
|
|||||||
label="Remember me"
|
label="Remember me"
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Grid>
|
|
||||||
<Grid minWidth="100%">
|
|
||||||
<LoadingButton
|
<LoadingButton
|
||||||
variant="contained"
|
variant="contained"
|
||||||
endIcon={
|
endIcon={
|
||||||
@@ -245,9 +243,8 @@ export const LoginWithImage = () => {
|
|||||||
>
|
>
|
||||||
Login
|
Login
|
||||||
</LoadingButton>
|
</LoadingButton>
|
||||||
</Grid>
|
</Paper>
|
||||||
</Grid>
|
</div>
|
||||||
</Container>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user