wickes-css2 2.105.0-develop.7 → 2.105.0-develop.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/Readme.md +1 -1
  2. package/build/css/my-account-main-v2.css +1 -1
  3. package/build/css/pages/my-account-v2.css +1 -1
  4. package/build/css/pages/page_discount.css +1 -1
  5. package/build/js/basket.min.js +1 -1
  6. package/build/js/bundle.min.js +1 -1
  7. package/build/js/checkout.min.js +1 -1
  8. package/build/js/merged-checkout.min.js +1 -1
  9. package/build/js/my-account.min.js +1 -1
  10. package/build/js/page/my-account.js +32 -47
  11. package/build/js/project-list.min.js +1 -1
  12. package/build/js/share-project-list.min.js +1 -0
  13. package/package.json +2 -2
  14. package/src/components/my-account/barcode.hbs +1 -3
  15. package/src/components/my-account/cards-swap.hbs +10 -0
  16. package/src/components/my-account/clipboard-code-card.hbs +3 -3
  17. package/src/components/my-account/discount.hbs +1 -1
  18. package/src/components/my-account/greetings.hbs +1 -1
  19. package/src/data/my-account/data_my-account.json +9 -0
  20. package/src/js/components/cards-swap.js +74 -0
  21. package/src/js/components/share-project-list.js +56 -0
  22. package/src/js/page/my-account.js +32 -47
  23. package/src/page_my-account-installer.html +1 -1
  24. package/src/page_my-account-trade-pro-carousel-double.html +127 -0
  25. package/src/page_my-account-trade-pro-carousel.html +134 -0
  26. package/src/page_my-account-trade-pro.html +1 -1
  27. package/src/page_tradepro-discount-app.html +1 -1
  28. package/src/page_tradepro-discount-double.html +109 -0
  29. package/src/page_tradepro-discount.html +36 -2
  30. package/src/scss/components/my-account/_barcode.scss +9 -1
  31. package/src/scss/components/my-account/_cards-swap.scss +60 -0
  32. package/src/scss/components/my-account/_clipboard-code.scss +11 -3
  33. package/src/scss/components/my-account/_discount.scss +12 -2
  34. package/src/scss/pages/my-account-v2.scss +42 -5
  35. package/src/scss/pages/page_discount.scss +8 -4
  36. package/src/sitemap.html +3 -0
@@ -0,0 +1,109 @@
1
+ {{#extend
2
+ "my-account-v2"
3
+ dataBreadcrumbs=discount.tradePro.breadcrumbs
4
+ pageClass="page_my-account_new"
5
+ title="My Account discount double"
6
+ pageMyAcc=true
7
+ myAccV2=true
8
+ isLoggedIn=true
9
+ mainClass="discount-offer"
10
+ }}
11
+ {{#content "head" mode="append"}}
12
+ <link type="text/css" rel="stylesheet" href="./css/pages/page_discount.css">
13
+ {{/content}}
14
+ {{#content "main"}}
15
+ <div class="container">
16
+ <div class="row">
17
+ <div class="col-12">
18
+ {{> my-account/mobile-nav
19
+ menu=discount.menu
20
+ active-index=7
21
+ page-name=discount.menu.[7].title
22
+ }}
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="container">
28
+ <div class="row">
29
+ <div class="col-12 discount-offer__wrap pb-0">
30
+ <div class="discount-offer__header">
31
+ <h1 class="title">TradePro Event: 15% off</h1>
32
+ </div>
33
+ <div class="discount-offer__body discount-offer__body--secondary discount-offer__body--double">
34
+ {{> my-account/discount
35
+ secondary=true
36
+ mod="discount-offer--background-secondary"
37
+ discountText=my_account.tradepro2.discountText
38
+ title="In-store discount"
39
+ code=my_account.discount
40
+ }}
41
+ {{> my-account/clipboard-code-card
42
+ secondary=true
43
+ mod="trade-pro-id discount-offer--background-secondary"
44
+ icon=my_account.tradepro.icons.tradeproID
45
+ title="TradePro ID"
46
+ code=my_account.tradeProId
47
+ description=discount.tradePro.discountIdText
48
+ }}
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ <div class="container">
55
+ <div class="row">
56
+ <div class="col-12 discount-offer__wrap">
57
+ <div class="discount-offer__header">
58
+ <h1 class="title">TradePro Discount</h1>
59
+ </div>
60
+ <div class="discount-offer__body">
61
+ {{> my-account/discount
62
+ discountText=my_account.tradepro.discountText
63
+ title="In-store discount"
64
+ code=my_account.discount
65
+ }}
66
+ {{> my-account/clipboard-code-card
67
+ mod="trade-pro-id"
68
+ icon=my_account.tradepro.icons.tradeproID
69
+ title="TradePro ID"
70
+ code=my_account.tradeProId
71
+ description=discount.tradePro.discountIdText
72
+ }}
73
+ {{> my-account/clipboard-code-card
74
+ mod="discount-code"
75
+ icon="fas fa-badge-percent"
76
+ title="Online discount code"
77
+ code=my_account.tradepro.discountCode
78
+ description=discount.tradePro.onlineDiscountText
79
+ }}
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="app-info">
86
+ <div class="container">
87
+ <div class="row">
88
+ <div class="col-12 app-info__wrap">
89
+ <div class="app-info__header">
90
+ <h2 class="title">Download the APP</h2>
91
+ <p class="description">Download the Wickes TradePro App now and sign in to access your trade benefits.</p>
92
+ <div class="app-info__stores">
93
+ {{#each discount.downloadAppImages}}
94
+ <a href="#">
95
+ {{{this}}}
96
+ </a>
97
+ {{/each}}
98
+ </div>
99
+ </div>
100
+ <div class="download-app-img"></div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ {{/content}}
106
+ {{#content "foot" mode="append"}}
107
+ <script defer src="./js/my-account.min.js"></script>
108
+ {{/content}}
109
+ {{/extend}}
@@ -2,7 +2,7 @@
2
2
  "my-account-v2"
3
3
  dataBreadcrumbs=discount.tradePro.breadcrumbs
4
4
  pageClass="page_my-account_new"
5
- title="My Account DIY"
5
+ title="My Account discount"
6
6
  pageMyAcc=true
7
7
  myAccV2=true
8
8
  isLoggedIn=true
@@ -24,6 +24,40 @@
24
24
  </div>
25
25
  </div>
26
26
 
27
+ <div class="container">
28
+ <div class="row">
29
+ <div class="col-12 discount-offer__wrap pb-0">
30
+ <div class="discount-offer__header">
31
+ <h1 class="title">TradePro Event: 15% off</h1>
32
+ </div>
33
+ <div class="discount-offer__body discount-offer__body--secondary">
34
+ {{> my-account/discount
35
+ secondary=true
36
+ discountText=my_account.tradepro2.discountText
37
+ title="In-store discount"
38
+ code=my_account.discount
39
+ }}
40
+ {{> my-account/clipboard-code-card
41
+ secondary=true
42
+ mod="trade-pro-id"
43
+ icon=my_account.tradepro.icons.tradeproID
44
+ title="TradePro ID"
45
+ code=my_account.tradeProId
46
+ description=discount.tradePro.discountIdText
47
+ }}
48
+ {{> my-account/clipboard-code-card
49
+ secondary=true
50
+ mod="discount-code"
51
+ icon="fas fa-badge-percent"
52
+ title="Online discount code"
53
+ code=my_account.tradepro.discountCode
54
+ description=my_account.tradepro2.onlineDiscountText
55
+ }}
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+
27
61
  <div class="container">
28
62
  <div class="row">
29
63
  <div class="col-12 discount-offer__wrap">
@@ -32,7 +66,7 @@
32
66
  </div>
33
67
  <div class="discount-offer__body">
34
68
  {{> my-account/discount
35
- discountSrc=my_account.tradepro.discount
69
+ discountText=my_account.tradepro.discountText
36
70
  title="In-store discount"
37
71
  code=my_account.discount
38
72
  }}
@@ -5,7 +5,7 @@
5
5
  border-radius: 4px;
6
6
  color: $gray-dark;
7
7
  position: relative;
8
- font-size: .75rem;
8
+ font-size: 0.75rem;
9
9
  line-height: 1rem;
10
10
 
11
11
  &__discount {
@@ -13,6 +13,14 @@
13
13
  top: -8px;
14
14
  right: -8px;
15
15
 
16
+ &--text {
17
+ background: $red;
18
+ border-radius: 10px;
19
+ padding: 2px 8px;
20
+ color: $white;
21
+ font-weight: 700;
22
+ }
23
+
16
24
  img {
17
25
  border-radius: 40px;
18
26
  width: 100%;
@@ -0,0 +1,60 @@
1
+ .cards-swap {
2
+ position: relative;
3
+ width: 100%;
4
+ margin-bottom: 40px;
5
+
6
+ &__card {
7
+ position: absolute;
8
+ top: 0;
9
+ left: 0;
10
+ right: 0;
11
+ transform: translate(0, -16px) scale(0.9);
12
+ transform-origin: top;
13
+ height: inherit;
14
+ overflow: hidden;
15
+ filter: contrast(0.6) brightness(1.2);
16
+ z-index: 1;
17
+ transition-property: transform, filter;
18
+ transition-duration: 0.7s, 0.7s;
19
+ transition-timing-function: cubic-bezier(0.46, -0.59, 0.4, 0.89), linear;
20
+
21
+ &.active {
22
+ transform: translate(0, 0) scale(1);
23
+ filter: contrast(1) brightness(1);
24
+ z-index: 2;
25
+ height: auto;
26
+ overflow: visible;
27
+ }
28
+
29
+ &.static {
30
+ position: relative;
31
+ }
32
+ }
33
+
34
+ &__toggle {
35
+ position: absolute;
36
+ top: 12px;
37
+ right: 12px;
38
+ width: 23px;
39
+ height: 23px;
40
+ background: $white;
41
+ border-radius: 20px;
42
+ font-size: 12px;
43
+ font-weight: 700;
44
+ color: $blue-dark;
45
+ display: flex;
46
+ justify-content: center;
47
+ align-items: center;
48
+ line-height: 1.2;
49
+ cursor: pointer;
50
+ }
51
+ }
52
+
53
+ @include media-breakpoint-up(sm) {
54
+ .cards-swap {
55
+ &__card {
56
+ transform: translate(0, 16px) scale(0.9);
57
+ transform-origin: bottom;
58
+ }
59
+ }
60
+ }
@@ -1,5 +1,5 @@
1
1
  .clipboard-code {
2
- background: rgba(255, 255, 255, .08);
2
+ background: rgba(255, 255, 255, 0.08);
3
3
  border-radius: 4px;
4
4
  padding: 16px;
5
5
 
@@ -21,7 +21,7 @@
21
21
  .subtitle {
22
22
  display: inline-block;
23
23
  font-weight: 400;
24
- font-size: .875rem;
24
+ font-size: 0.875rem;
25
25
  line-height: 1.375rem;
26
26
  }
27
27
 
@@ -61,7 +61,7 @@
61
61
 
62
62
  &__description {
63
63
  margin-top: 16px;
64
- color: rgba(255, 255, 255, .8);
64
+ color: rgba(255, 255, 255, 0.8);
65
65
 
66
66
  p {
67
67
  font-size: 14px;
@@ -74,4 +74,12 @@
74
74
  color: inherit;
75
75
  }
76
76
  }
77
+
78
+ &--secondary {
79
+ background: $black-transparent40;
80
+
81
+ .icon {
82
+ color: $gray;
83
+ }
84
+ }
77
85
  }
@@ -1,5 +1,5 @@
1
1
  .discount {
2
- background: rgba(255, 255, 255, .08);
2
+ background: rgba(255, 255, 255, 0.08);
3
3
  border-radius: 4px;
4
4
  padding: 16px;
5
5
 
@@ -21,7 +21,7 @@
21
21
  .subtitle {
22
22
  display: inline-block;
23
23
  font-weight: 400;
24
- font-size: .875rem;
24
+ font-size: 0.875rem;
25
25
  line-height: 1.375rem;
26
26
  }
27
27
 
@@ -48,4 +48,14 @@
48
48
  &__code {
49
49
  margin-left: 8px;
50
50
  }
51
+
52
+ &--secondary {
53
+ background: $black-transparent40;
54
+
55
+ .discount__content {
56
+ .icon {
57
+ color: $gray;
58
+ }
59
+ }
60
+ }
51
61
  }
@@ -9,6 +9,7 @@
9
9
  @import '../components/my-account/barcode';
10
10
  @import '../components/my-account/discount';
11
11
  @import '../components/my-account/clipboard-code';
12
+ @import '../components/my-account/cards-swap';
12
13
  @import '../components/my-account/payment-status';
13
14
  @import '../libs/font-awesome-icons';
14
15
  @import '../components/my-account/payment-status';
@@ -50,7 +51,7 @@
50
51
  background: $virid-darker;
51
52
  color: $white;
52
53
  padding: 4px 5px;
53
- font-size: .875rem;
54
+ font-size: 0.875rem;
54
55
  }
55
56
  }
56
57
 
@@ -79,10 +80,10 @@
79
80
  color: $blue;
80
81
  display: flex;
81
82
  align-items: center;
82
- transition: all .3s;
83
+ transition: all 0.3s;
83
84
 
84
85
  &:hover {
85
- opacity: .7;
86
+ opacity: 0.7;
86
87
  text-decoration: underline;
87
88
  }
88
89
 
@@ -108,6 +109,10 @@
108
109
  color: $white;
109
110
  padding: 16px;
110
111
  width: 100%;
112
+
113
+ &--secondary {
114
+ background: $gray-wait;
115
+ }
111
116
  }
112
117
  }
113
118
 
@@ -124,6 +129,10 @@
124
129
  .greetings {
125
130
  word-break: break-all;
126
131
 
132
+ &--secondary {
133
+ color: $black;
134
+ }
135
+
127
136
  .title {
128
137
  font-weight: 500;
129
138
  font-size: 1.625rem;
@@ -161,7 +170,7 @@
161
170
  }
162
171
 
163
172
  .tooltip {
164
- filter: drop-shadow(0 0 8px rgba(0, 0, 0, .12));
173
+ filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.12));
165
174
  position: absolute;
166
175
 
167
176
  .tooltip-inner {
@@ -170,7 +179,7 @@
170
179
  padding: 8px 16px !important;
171
180
  border-radius: 4px;
172
181
  font-weight: 400;
173
- font-size: .75rem;
182
+ font-size: 0.75rem;
174
183
  line-height: 1rem;
175
184
  }
176
185
 
@@ -180,6 +189,10 @@
180
189
  }
181
190
 
182
191
  @include media-breakpoint-up(sm) {
192
+ .d-sm-grid {
193
+ display: grid !important;
194
+ }
195
+
183
196
  .my-account {
184
197
  .account-actions {
185
198
  padding-top: 32px;
@@ -233,6 +246,12 @@
233
246
  .clipboard-code {
234
247
  align-items: center;
235
248
  }
249
+
250
+ &--double {
251
+ .discount {
252
+ grid-row: auto;
253
+ }
254
+ }
236
255
  }
237
256
  }
238
257
 
@@ -240,6 +259,16 @@
240
259
  padding-top: 24px;
241
260
  }
242
261
  }
262
+
263
+ .my-account {
264
+ .cards-swap {
265
+ .account-summary {
266
+ &__wrapper {
267
+ grid-template-rows: auto;
268
+ }
269
+ }
270
+ }
271
+ }
243
272
  }
244
273
 
245
274
  @include media-breakpoint-up(md) {
@@ -270,6 +299,10 @@
270
299
  &__wrapper {
271
300
  grid-template-columns: minmax(auto, 502px) repeat(2, minmax(auto, 223px));
272
301
 
302
+ &--double {
303
+ grid-template-columns: repeat(2, 1fr);
304
+ }
305
+
273
306
  .clipboard-code,
274
307
  .discount {
275
308
  padding-top: 20px;
@@ -325,6 +358,10 @@
325
358
  &__wrapper {
326
359
  grid-template-columns: minmax(auto, 502px) 1fr 1fr;
327
360
 
361
+ &--double {
362
+ grid-template-columns: repeat(2, 1fr);
363
+ }
364
+
328
365
  .icon-wrap {
329
366
  width: 48px;
330
367
  height: 48px;
@@ -47,6 +47,10 @@
47
47
  margin-bottom: 8px;
48
48
  }
49
49
  }
50
+
51
+ &--secondary {
52
+ background: $gray-wait;
53
+ }
50
54
  }
51
55
 
52
56
  .app-info {
@@ -106,10 +110,6 @@
106
110
 
107
111
  @include media-breakpoint-up(md) {
108
112
  .discount-offer {
109
- &__wrap {
110
- padding-bottom: 72px;
111
- }
112
-
113
113
  &__header {
114
114
  padding-top: 40px;
115
115
 
@@ -183,6 +183,10 @@
183
183
  &__body {
184
184
  grid-template-columns: repeat(3, 1fr);
185
185
 
186
+ &--double {
187
+ grid-template-columns: 1fr 2fr;
188
+ }
189
+
186
190
  .clipboard-code.discount-code {
187
191
  grid-column: auto;
188
192
  }
package/src/sitemap.html CHANGED
@@ -528,6 +528,8 @@
528
528
  <li><span class="page-id">5.15</span><a href="page_my-account.html" target="_blank">My Account DIY</a></li>
529
529
  <li><a href="page_my-account-installer.html" target="_blank">My Account Installer</a></li>
530
530
  <li><a href="page_my-account-trade-pro.html" target="_blank">My Account TradePro</a></li>
531
+ <li><a href="page_my-account-trade-pro-carousel.html" target="_blank">My Account TradePro Carousel</a></li>
532
+ <li><a href="page_my-account-trade-pro-carousel-double.html" target="_blank">My Account TradePro Carousel Double</a></li>
531
533
  <li><a href="page_my-account-trade-pro-components.html" target="_blank">My Account TradePro Components</a></li>
532
534
  <li><a href="page_personal-details.html" target="_blank">My Account Personal Details</a></li>
533
535
  <li><a href="page_personal-details-installer.html" target="_blank">My Account Personal Details Installer</a></li>
@@ -543,6 +545,7 @@
543
545
  <li><a href="page_my-account_address-book_tradePro.html" target="_blank">Address Book Trade Pro</a></li>
544
546
  <li><a href="page_my-account_address-book-form.html" target="_blank">Address Book Form</a></li>
545
547
  <li><a href="page_tradepro-discount.html" target="_blank">Trade Pro Discount</a></li>
548
+ <li><a href="page_tradepro-discount-double.html" target="_blank">Trade Pro Discount (Double)</a></li>
546
549
  <li><a href="page_tradepro-discount-app.html" target="_blank">Trade Pro Discount App</a></li>
547
550
  </ul>
548
551
  <h3>Project list</h3>