Skip to content

Commit 58e12da

Browse files
author
Derek Roode
committed
fixed some styling with desktop login page need more with mobile
1 parent ef9498a commit 58e12da

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

react-app/src/components/Atoms/LoginPageVideo/LoginPageVideo.module.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
.login__background_video{
22
position: absolute;
33
top: 0;
4-
left: 0;
5-
width: 100%;
6-
height: auto;
4+
left: 50%;
5+
/* remove the item in the left positioning */
6+
transform: translateX(-50%);
7+
width: auto;
8+
height: 100%;
9+
overflow: hidden;
710
/* background-image: url("http://cdn.shopify.com/s/files/1/2510/5836/articles/Mike_Rashid_Heavyweight_Boxer_Training_1200x1200.png?v=1610545981"); */
811
background-size: cover;
912
background-position: center;
@@ -19,6 +22,8 @@
1922
background-position: center;
2023
background-repeat: no-repeat;
2124
z-index: -1;
25+
26+
2227
}
2328
.login__background_video{
2429
display: none;

react-app/src/components/Molecules/LoginPageDisplayBlock/LoginPageDisplayBlock.module.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,56 @@
55
align-items: center;
66
width: 100%;
77
height: 100%;
8+
overflow: hidden;
9+
10+
811

912
}
1013
.login__background{
1114
z-index: -1;
1215
height: 100vh;
1316
width: auto;
1417
overflow: hidden;
18+
19+
1520
}
1621

1722

1823

1924
@media screen and (max-width: 768px) {
2025
.login__background{
21-
background-image: url("https://www.oxfordmail.co.uk/resources/images/10763753/");
22-
/* background-color: red; */
26+
27+
/* set linear gradient on top and bottom */
28+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.151) 0%,rgba(0, 0, 0, 0.171) 10%), url("https://www.oxfordmail.co.uk/resources/images/10763753/");
29+
background-blend-mode: multiply;
2330
background-size: cover;
2431
background-position: center;
2532
background-repeat: no-repeat;
2633
z-index: -1;
2734
height: 100vh;
2835
width: auto;
2936
overflow: hidden;
37+
38+
/* translate to transparency on top of image */
39+
/* background-image: linear-gradient(
40+
to right bottom,
41+
rgba(0,0,0, 0.8),
42+
rgba(0,0,0, 0.8)
43+
), */
44+
45+
46+
47+
48+
49+
3050
}
3151

3252
.login__container_login{
3353
display: flex;
3454
flex-direction: column;
3555
justify-content: center;
3656
align-items: center;
57+
overflow: hidden;
3758

3859

3960
}

0 commit comments

Comments
 (0)