Skip to content

Commit

Permalink
Add responsive feature for login's background image
Browse files Browse the repository at this point in the history
  • Loading branch information
hannyle committed Dec 30, 2021
1 parent 38e2467 commit 9387624
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/views/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ const LoginBanner = styled(Paper)(({ theme }) => ({
backgroundImage: `url(${CSCBannerLogin})`,
backgroundSize: "cover",
backgroundRepeat: "no-repeat",
backgroundPosition: "center center",
[theme.breakpoints.down("sm")]: {
backgroundPosition: "90% 10vh",
},
[theme.breakpoints.between("sm", "md")]: {
backgroundPosition: "85% 0",
},
[theme.breakpoints.between("md", "lg")]: {
backgroundPosition: "90% 0",
},
width: "53vw",
height: "55vh",
margin: "16vh auto auto auto",
Expand Down

0 comments on commit 9387624

Please sign in to comment.