-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
w
- Loading branch information
Showing
5 changed files
with
85 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
html, | ||
body { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
#root { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
font-size: 16px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,56 @@ | ||
//@flow | ||
import React from "react" | ||
|
||
import MailOutlineIcon from "@mui/icons-material/MailOutline" | ||
import PhoneIcon from "@mui/icons-material/Phone" | ||
import Box from "@mui/material/Box" | ||
import Button from "@mui/material/Button" | ||
import Container from "@mui/material/Container" | ||
import Grid from "@mui/material/Grid" | ||
import Paper from "@mui/material/Paper" | ||
import { styled } from "@mui/material/styles" | ||
import Typography from "@mui/material/Typography" | ||
|
||
import CSCBannerLogin from "../images/csc_banner_login.png" | ||
|
||
const LoginContainer = styled(Container)(() => ({ | ||
display: "flex", | ||
minHeight: "100vh", | ||
flexDirection: "column", | ||
justifyContent: "space-between", | ||
})) | ||
|
||
const LoginBanner = styled(Paper)(({ theme }) => ({ | ||
backgroundColor: theme.palette.common.white, | ||
backgroundImage: `url(${CSCBannerLogin})`, | ||
backgroundSize: "cover", | ||
backgroundRepeat: "no-repeat", | ||
width: "53vw", | ||
height: "65vh", | ||
margin: "8.5vh auto", | ||
paddingTop: "14vh", | ||
paddingLeft: "5vw", | ||
height: "55vh", | ||
margin: "16vh auto auto auto", | ||
padding: "14vh 5vw 5vh 5vw", | ||
borderRadius: "0.375em", | ||
boxShadow: "2px 2px 12px 2px #00000029", | ||
})) | ||
|
||
const LoginButton = styled(Button)(() => ({ | ||
marginTop: "2.5vh", | ||
paddingTop: "1.5em", | ||
paddingBottom: "1.5em", | ||
height: "6.5vh", | ||
width: "10vw", | ||
width: "10.5vw", | ||
})) | ||
|
||
const Footer = styled(Grid)(({ theme }) => ({ | ||
backgroundColor: theme.palette.secondary.light, | ||
width: "100%", | ||
})) | ||
|
||
const FooterItem = styled(Grid)(({ theme }) => ({ | ||
color: theme.palette.secondary.main, | ||
paddingTop: "2vh", | ||
paddingBottom: "2vh", | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
})) | ||
|
||
const Login = (): React$Element<typeof Container> => { | ||
|
@@ -38,17 +60,45 @@ const Login = (): React$Element<typeof Container> => { | |
} | ||
|
||
return ( | ||
<Container maxWidth={false} sx={{ flex: "1 0 auto", padding: 0, width: "100%" }}> | ||
<LoginContainer disableGutters maxWidth={false}> | ||
<LoginBanner elevation={0}> | ||
<Typography variant="h3" sx={{ color: "primary.main", fontWeight: 700 }}> | ||
<Typography variant="h4" sx={{ color: "primary.main", fontWeight: 700 }}> | ||
SD Submit | ||
</Typography> | ||
<Typography sx={{ mt: "4vh", color: "secondary.main" }}>Tool for submitting metadata.</Typography> | ||
<Typography sx={{ mt: "2.25em", color: "secondary.main" }}>Tool for submitting metadata.</Typography> | ||
<LoginButton variant="contained" color="primary" href={loginRoute}> | ||
Login | ||
</LoginButton> | ||
</LoginBanner> | ||
</Container> | ||
<Footer container justifyContent="center"> | ||
<FooterItem item xs={12} md={4}> | ||
<Typography variant="subtitle1">CSC - IT Center for Science Ltd.</Typography> | ||
<Typography variant="body2">P.O. Box 405 FI-02101 Espoo, Finland</Typography> | ||
<Box sx={{ display: "flex" }}> | ||
<PhoneIcon color="secondary" fontSize="small" /> | ||
<Typography variant="body2" component="span"> | ||
+358 9 457 2001 | ||
</Typography> | ||
</Box> | ||
</FooterItem> | ||
<FooterItem item xs={12} md={4}> | ||
<Typography variant="subtitle1">Service Desk</Typography> | ||
<Typography variant="body2">Open Monday to Friday from 8.30 a.m. to 4 p.m.</Typography> | ||
<Box sx={{ display: "flex" }}> | ||
<PhoneIcon color="secondary" fontSize="small" /> | ||
<Typography variant="body2" component="span"> | ||
+358 9 457 2821 | ||
</Typography> | ||
</Box> | ||
<Box sx={{ display: "flex" }}> | ||
<MailOutlineIcon fontSize="small" /> | ||
<Typography variant="body2" component="span"> | ||
[email protected] | ||
</Typography> | ||
</Box> | ||
</FooterItem> | ||
</Footer> | ||
</LoginContainer> | ||
) | ||
} | ||
|
||
|