Skip to content

Commit 19aa0da

Browse files
Adjust background image(s) for Legacy Lab promo
Update CSS and HTML for the auth screens to adjust how the background is displayed for the Legacy Lab promo. Change out the background image as well. This background uses a slicing technique to extend the vertical stripes of the image without repeating the legacy lab circle[1]. Also use classes to isolate legacy lab specific background changes from the defaults we want to use for normal images. That way, we can just remove the references to classes in HTML without having to revert the CSS back. [1]: https://en.wikipedia.org/wiki/9-slice_scaling Co-authored-by: Han Pham <han@permanent.org>
1 parent a1fe3a0 commit 19aa0da

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

src/app/auth/components/auth/auth.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<pr-announcement></pr-announcement>
2-
<div class="auth-root">
2+
<div class="auth-root legacy-lab">
33
<div class="auth-container">
4-
<div
5-
class="image"
6-
aria-description='Black and white photo of a child with a bicycle stopped in front of a black milk truck with a man standing by the door. The milk truck reads "Haadsma&#39;s Dairy." The photo appears to be from the 1950s.'
7-
>
4+
<div class="image legacy-lab">
5+
<div
6+
class="legacy-lab-center-slice"
7+
aria-label="The Legacy Lab by Permanent"
8+
></div>
89
<!-- <div class="testimony">
910
<p class="text">
1011
At Permanent, we celebrate our members’ hard work through our Public

src/app/auth/components/auth/auth.component.scss

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
flex-shrink: 1;
1818

1919
@media screen {
20-
padding: 20px 0px;
20+
&:not(.legacy-lab) {
21+
padding: 20px 0px;
22+
}
2123
}
2224
}
2325

@@ -56,9 +58,29 @@
5658
}
5759

5860
.image {
61+
&.legacy-lab {
62+
background: url('../../../../assets/img/legacy_lab_sign_in_stripe.png');
63+
background-size: contain;
64+
background-position: center right 1.5rem;
65+
background-repeat: repeat-y;
66+
}
67+
68+
.legacy-lab-center-slice {
69+
z-index: 0;
70+
position: absolute;
71+
left: 0;
72+
top: 0;
73+
width: 100%;
74+
height: 100%;
75+
background: url('../../../../assets/img/legacy_lab_sign_in_image.png');
76+
background-size: contain;
77+
background-position: center right 1.5rem;
78+
background-repeat: no-repeat;
79+
}
80+
5981
position: relative;
6082
height: 100%;
61-
background: url('../../../../assets/img/legacy_lab_sign_in_image.png');
83+
background: url('../../../../assets/img/sign_in_image.png');
6284
background-size: cover;
6385
background-position: center center;
6486
flex-grow: 1;
@@ -160,7 +182,7 @@
160182

161183
p {
162184
font-size: 1rem;
163-
width: 60%;
185+
width: 50%;
164186
font-family: 'UsualRegular', sans-serif;
165187
}
166188

41.1 KB
Loading
4.4 KB
Loading

0 commit comments

Comments
 (0)