FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

61 lines
1.5 KiB

  1. import Grid from "@mui/material/Grid";
  2. import Paper from "@mui/material/Paper";
  3. import LoginForm from "./LoginForm";
  4. import Logo from "../Logo";
  5. import { Box } from "@mui/material";
  6. const LoginPage = () => {
  7. return (
  8. <Grid container height="100vh">
  9. <Grid
  10. item
  11. xs={0}
  12. sm={4}
  13. md={5}
  14. lg={6}
  15. sx={{
  16. display: { xs: "none", sm: "block" },
  17. backgroundColor: "#c5e58b",
  18. minHeight: { xs: 0, sm: "100vh" },
  19. }}
  20. >
  21. <Box
  22. sx={{
  23. width: "100%",
  24. height: "100%",
  25. minHeight: { sm: "100vh" },
  26. backgroundImage: "url('logo/HomepageLogo.png')",
  27. backgroundRepeat: "no-repeat",
  28. backgroundPosition: "center",
  29. backgroundSize: "contain",
  30. maxWidth: 960,
  31. margin: "0 auto",
  32. }}
  33. />
  34. </Grid>
  35. <Grid item xs={12} sm={8} md={7} lg={6}>
  36. <Box
  37. sx={{
  38. width: "100%",
  39. padding: 5,
  40. paddingBlockStart: 10,
  41. display: "flex",
  42. alignItems: "flex-end",
  43. justifyContent: "center",
  44. backgroundImage: "linear-gradient(135deg, rgba(59,130,246,0.15) 0%, #f1f5f9 45%, #f8fafc 100%)",
  45. backgroundColor: "#f8fafc",
  46. }}
  47. >
  48. <Logo height={42} />
  49. </Box>
  50. <Paper square sx={{ height: "100%" }}>
  51. <LoginForm />
  52. </Paper>
  53. </Grid>
  54. </Grid>
  55. );
  56. };
  57. export default LoginPage;