Skip to content

Commit 157e06e

Browse files
committed
Scss and small amends
1 parent 5a1d441 commit 157e06e

18 files changed

+344
-92
lines changed

__mocks__/oktaMock.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,16 @@ export class OktaAuth {
6767
setLoginRedirect (loginRedirect) {
6868
this.loginRedirect = loginRedirect
6969
}
70+
71+
revokeAccessToken () {
72+
return Promise.resolve(true)
73+
}
74+
75+
revokeRefreshToken () {
76+
return Promise.resolve(true)
77+
}
78+
79+
closeSession () {
80+
return Promise.resolve(true)
81+
}
7082
}

src/app/analytics/analytics.factory.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ describe('analytics factory', () => {
128128
currency: 'USD',
129129
price: itemConfig.AMOUNT.toString(),
130130
quantity: '1',
131-
recurring_date: 'September 13, 2023',
132-
testing_transaction: 'false',
131+
recurring_date: `September 13, ${new Date().getFullYear()}`
133132
})
134133
});
135134

src/assets/cru-scss/cru.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@
231231
@import "sign-in";
232232
@import "footer";
233233

234+
<<<<<<< HEAD
235+
236+
@import "./components/signInForm";
237+
@import "./components/signUpModal";
238+
@import "./components/registerAccountModal";
239+
@import "./components/contactInfo";
240+
241+
=======
242+
>>>>>>> 468b762e (config sass to smaller files)
234243
@import "tabs";
235244
@import "global-changes";
236245
@import "responsive";

src/assets/scss/_sign-in.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
.redirect-user-after-login {
3+
position: fixed;
4+
width: 100%;
5+
background: #ffffff94;
6+
z-index: 2000;
7+
height: 100%;
8+
top: 0;
9+
display: flex;
10+
align-items: center;
11+
justify-content: center;
12+
13+
> div {
14+
text-align: center;
15+
}
16+
17+
p {
18+
margin-bottom: 5px;
19+
}
20+
21+
.btn {
22+
margin-top: 30px;
23+
width: 150px;
24+
display: inline-block;
25+
}
26+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
account-benefits-modal {
2+
display: inline-block;
3+
padding: 20px;
4+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@import "./signInForm";
2+
@import "./signInModal";
3+
@import "./signUpModal";
4+
@import "./signUpActivationModal";
5+
@import "./registerAccountModal";
6+
@import "./contactInfo";
7+
@import "./userMatchModal";
8+
@import "./mfaModal";
9+
@import "./accountBenefits";
10+
@import "./failedVerificationModal";
11+
12+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
contact-info {
2+
.add-spouse-btn {
3+
margin-bottom: 10px;
4+
}
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
failed-verification-modal {
2+
.modal-body {
3+
max-width: 500px;
4+
margin: 0 auto;
5+
padding: 0;
6+
}
7+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
mfa-modal {
2+
.mfa-authenicators {
3+
display: flex;
4+
flex-wrap: wrap;
5+
6+
.authenicator {
7+
flex: 1 100%;
8+
margin-bottom: 20px;
9+
}
10+
}
11+
12+
.button-centered {
13+
text-align: center;
14+
}
15+
}
Lines changed: 49 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
1-
sign-in-form .okta-button {
2-
width: 100%;
3-
display: flex;
4-
align-items: center;
5-
padding: 1em 0.5em;
6-
gap: 1em;
7-
8-
img {
9-
height: 20px;
10-
}
11-
}
12-
131
register-account-modal {
2+
display: block;
143
line-height: 1.2em;
154

5+
6+
&[data-state=sign-in],
7+
&[data-state=sign-up] {
8+
display: inline-block;
9+
}
10+
1611
.modal-header {
1712
padding-bottom: 30px;
1813
background-color: #EBECEC;
1914
}
2015

21-
h3 {
22-
padding-bottom: 30px;
23-
}
24-
2516
ul {
2617
padding-left: 1em;
2718
}
2819

2920
.section {
30-
padding-bottom: 30px;
21+
margin-top: 20px;
3122
}
3223

3324
.cart {
@@ -36,10 +27,6 @@ register-account-modal {
3627
color: white;
3728
}
3829

39-
.modal-dialog .give-modal-content & .modal-body {
40-
padding: 30px;
41-
}
42-
4330
.footer-buttons {
4431
button {
4532
width: 100%;
@@ -51,8 +38,29 @@ register-account-modal {
5138
}
5239
}
5340

41+
.signup-header {
42+
display: flex;
43+
justify-content: center;
44+
align-items: center;
45+
46+
span {
47+
font-size: 30px;
48+
font-weight: 400;
49+
margin: 0 10px;
50+
}
51+
52+
img {
53+
max-height: 35px;
54+
}
55+
}
56+
57+
.modal-dialog .give-modal-content & .modal-body {
58+
padding: 30px;
59+
}
60+
5461
.modal-dialog.modal-lg & {
55-
&[data-state=sign-in] {
62+
&[data-state=sign-in],
63+
&[data-state=loading] {
5664
$body-width: 530px;
5765
$body-margin: 80px;
5866
display: flex;
@@ -68,9 +76,26 @@ register-account-modal {
6876
.modal-body {
6977
width: $body-width - $body-margin * 2;
7078
margin: 60px $body-margin;
79+
80+
sign-in-modal {
81+
display: inline-block;
82+
padding: 0;
83+
}
7184
}
7285
}
7386
&[data-state=contact-info] {
87+
88+
.modal-header {
89+
text-align: center;
90+
width: 100%;
91+
92+
.paragraph {
93+
max-width: 500px;
94+
margin-left: auto;
95+
margin-right: auto;
96+
}
97+
}
98+
7499
contact-info-modal form {
75100
display: grid;
76101
grid-template: 1fr auto / auto 320px;
@@ -91,6 +116,7 @@ register-account-modal {
91116
}
92117
}
93118
&[data-state=user-match] {
119+
94120
.modal-header h3 {
95121
text-align: center;
96122
}
@@ -121,52 +147,8 @@ register-account-modal {
121147
flex-direction: column;
122148
}
123149
}
124-
}
125-
126-
user-match-modal {
127-
h4 {
128-
font-weight: bold;
129-
text-align: center;
130-
}
131-
132-
input {
133-
accent-color: $colorCru-gold;
134-
}
135-
136-
.activate-progress {
137-
padding-bottom: 30px;
138-
139-
progress {
140-
width: 100%;
141-
accent-color: $colorCru-gold;
142-
}
143-
144-
.step-label {
145-
font-weight: bold;
146-
padding-left: calc(var(--progress) * 320px);
147-
148-
.modal-dialog.modal-lg & {
149-
padding-left: calc(var(--progress) * 370px);
150-
}
151-
}
152-
}
153150

154-
.modal-dialog.modal-lg & .success .footer-buttons button {
155-
margin-right: auto;
156-
}
157-
}
158-
159-
sign-in-modal {
160-
h4 {
161-
font-size: 1.3em;
162-
line-height: 1.5em;
163-
}
164-
165-
.row {
166-
margin-bottom: 1em;
167-
}
151+
.modal-dialog[data-state=mfa] {
168152

169-
.content {
170-
margin-top: 1em;
171153
}
172154
}

0 commit comments

Comments
 (0)