wickes-css2 2.96.0-develop.1 → 2.96.0-develop.3

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 (66) hide show
  1. package/Readme.md +1 -2
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/main.css +1 -1
  5. package/build/css/my-account-main-v2.css +1 -1
  6. package/build/css/my-account-main.css +1 -1
  7. package/build/css/pages/my-account-v2.css +1 -1
  8. package/build/css/pages/my-account.css +1 -1
  9. package/build/css/pages/page_default-store.css +1 -1
  10. package/build/css/pages/page_store-locator-details.css +1 -1
  11. package/build/css/pages/tradePro-rewards-old.css +1 -0
  12. package/build/css/pages/tradePro-rewards.css +1 -1
  13. package/build/css/pdp-main-before-combine.css +1 -1
  14. package/build/css/pdp-main-non-critical.css +1 -1
  15. package/build/css/pdp-main.css +1 -1
  16. package/build/css/plp-main.css +1 -1
  17. package/build/css/store-locator-main.css +1 -1
  18. package/build/js/basket.min.js +1 -1
  19. package/build/js/bundle.min.js +1 -1
  20. package/build/js/checkout.min.js +1 -1
  21. package/build/js/emulation.min.js +9 -4
  22. package/build/js/general.bundle.min.js +1 -1
  23. package/build/js/merged-checkout.min.js +1 -1
  24. package/build/js/page/tradePro-rewards.js +46 -0
  25. package/build/js/pdp.bundle.min.js +1 -1
  26. package/build/js/plp.bundle.min.js +1 -1
  27. package/build/js/project-list.min.js +1 -1
  28. package/build/js/tradePro-rewards.min.js +1 -0
  29. package/package.json +2 -10
  30. package/src/components/cards-slider.hbs +35 -0
  31. package/src/components/my-account/mobile-nav.hbs +7 -0
  32. package/src/components/navigation/menu-item-sub.hbs +33 -0
  33. package/src/components/navigation/menu-item-top.hbs +32 -0
  34. package/src/components/navigation/menu-item.hbs +32 -0
  35. package/src/components/navigation/nav-wrapper.hbs +12 -0
  36. package/src/components/reward_card.hbs +10 -0
  37. package/src/components/voucher.hbs +60 -158
  38. package/src/data/data_tradePro_cards.json +60 -0
  39. package/src/data/data_voucher_tradePro.json +123 -286
  40. package/src/data/my-account/data_my-account.json +34 -0
  41. package/src/data/navigation.json +854 -0
  42. package/src/js/components/cards-slider.js +62 -0
  43. package/src/js/components/general/main-nav.js +23 -14
  44. package/src/js/emulation/main-nav-local.js +6 -4
  45. package/src/js/emulation/vat-toggle.js +3 -0
  46. package/src/js/page/tradePro-rewards.js +46 -0
  47. package/src/page_old-navigation.html +10 -0
  48. package/src/page_tradePro_rewards_home.html +46 -0
  49. package/src/page_tradePro_rewards_home_single.html +44 -0
  50. package/src/page_tradePro_rewards_instore.html +67 -0
  51. package/src/page_tradePro_rewards_instoreAndOnline.html +65 -0
  52. package/src/page_tradePro_rewards_noInstoreAndOnline.html +65 -0
  53. package/src/page_tradePro_rewards_noOptional.html +65 -0
  54. package/src/page_tradePro_rewards_online.html +65 -0
  55. package/src/partials/main-nav.hbs +6 -2
  56. package/src/scss/components/_accordion.scss +4 -0
  57. package/src/scss/components/_cards-slider.scss +88 -0
  58. package/src/scss/components/_rewards.scss +74 -0
  59. package/src/scss/components/my-account/_mobile-nav.scss +15 -15
  60. package/src/scss/main.scss +1 -0
  61. package/src/scss/my-account-main-v2.scss +2 -0
  62. package/src/scss/pages/tradePro-rewards-old.scss +776 -0
  63. package/src/scss/pages/tradePro-rewards.scss +110 -715
  64. package/src/scss/partials/_main-nav.scss +9 -0
  65. package/src/sitemap.html +42 -7
  66. package/src/page_tradePro_rewards.html +0 -34
@@ -0,0 +1 @@
1
+ !function o(n,a,i){function d(t,e){if(!a[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=a[t]={exports:{}},n[t][0].call(r.exports,function(e){return d(n[t][1][e]||e)},r,r.exports,o,n,a,i)}return a[t].exports}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)d(i[e]);return d}({1:[function(e,t,r){"use strict";var o=e("./utils/copy-to-clipboard"),n=window.Wick||{};n.TradeProRewards={el:{$tradeProRewards:$(".page_tradePro-rewards"),buttonSelector:".copy-tradePro-barcode"},message:"Code copied to clipboard",copyToClipboardInit:function(){n.SnackBar.init(),$(n.TradeProRewards.el.buttonSelector).on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).parent().find("input"),r=t.val().trim();return t.removeAttr("disabled").attr("readonly","readonly"),(0,o.copyToClipboard)(r,e.currentTarget),t.attr("disabled","disabled").removeAttr("readonly"),window.getSelection().removeAllRanges(),n.SnackBar.show({text:n.TradeProRewards.message,type:n.SnackBar.types.SUCCESS,withCloseButton:!1,autoClose:!0,delayBeforeClose:3e3}),!1})},init:function(){n.TradeProRewards.copyToClipboardInit()}},$(document).ready(function(){n.TradeProRewards.el.$tradeProRewards.length&&n.TradeProRewards.init()})},{"./utils/copy-to-clipboard":2}],2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.copyToClipboard=function(e,t){var r=$("<textarea>").css({position:"absolute",top:0,left:0,opacity:0});$(t).parent().append(r);t=e.replace(/(^\w|\s\w)/g,function(e){return e.toUpperCase()}).split(" ").filter(function(e){return""!==e}).join(" ");r.val(t),navigator.userAgent.match(/TradeProMobile_iOS|DIYMobile_iOS/i)?function(e){var e=e.get(0),t=e.contentEditable,r=e.readOnly,o=document.createRange(),n=window.getSelection();e.contentEditable=!0,e.readOnly=!1,o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),e.setSelectionRange(0,999999),e.contentEditable=t,e.readOnly=r}(r):navigator.userAgent.match(/ipad|ipod|iphone/i)?(r.select(),r[0].setSelectionRange(0,999999)):r.select();document.execCommand("copy"),r.remove()}},{}]},{},[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.96.0-develop.1",
3
+ "version": "2.96.0-develop.3",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -108,15 +108,7 @@
108
108
  "branches": [
109
109
  "alt-master",
110
110
  {
111
- "name": "develop",
112
- "prerelease": true
113
- },
114
- {
115
- "name": "preprod",
116
- "prerelease": true
117
- },
118
- {
119
- "name": "custom-tag/*",
111
+ "name": "custom-tag/IC-574-meganav-integration",
120
112
  "prerelease": "${name.replace(/^custom-tag\\//g, '')}"
121
113
  }
122
114
  ],
@@ -0,0 +1,35 @@
1
+ <div class="cards-slider-boundary {{#if secondary}}cards-slider-boundary--secondary{{/if}}">
2
+ <div class="container">
3
+ <div class="row">
4
+ <div class="col-12">
5
+ <div class="cards-slider">
6
+ <div class="cards-slider__header">
7
+ {{#if secondary}}
8
+ <h3 class="cards-slider__title">{{title}}</h3>
9
+ {{else}}
10
+ <h1 class="cards-slider__title">{{title}}</h1>
11
+ {{/if}}
12
+ <div class="cards-slider__controls">
13
+ <div class="cards-slider__btn cards-slider__prev-btn">
14
+ <span class="icon">
15
+ <i class="fas fa-chevron-left"></i>
16
+ </span>
17
+ </div>
18
+ <div class="cards-slider__btn cards-slider__next-btn">
19
+ <span class="icon">
20
+ <i class="fas fa-chevron-right"></i>
21
+ </span>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ <div class="swiper-container">
26
+ <div class="cards-swiper-wrapper swiper-wrapper">
27
+ {{#block "cards"}}{{/block}}
28
+ </div>
29
+ <div class="swiper-pagination swiper-pagination-bullets"></div>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
@@ -15,6 +15,13 @@
15
15
  {{/if}}
16
16
  {{/each}}
17
17
  <span class="accordion__header-text">{{page-name}}</span>
18
+ {{#each menu}}
19
+ {{#if (eq @index ../active-index)}}
20
+ {{#if total}}
21
+ <span class="rewards">{{total}}</span>
22
+ {{/if}}
23
+ {{/if}}
24
+ {{/each}}
18
25
  <span class="icon accordion__header-icon">
19
26
  <i class="fas fa-angle-up"></i>
20
27
  </span>
@@ -0,0 +1,33 @@
1
+ <ul>
2
+ {{#each subMenuItems}}
3
+ <li class="main-nav__sub-menu__item nav-col">
4
+ <a
5
+ href="{{ url }}"
6
+ class="main-nav__sub-menu__link main-nav__sub-sub-menu__link-last
7
+ {{#if color}}main-nav__sub-menu__link--invert {{/if}}
8
+ {{#ifCond color '==' "GREEN"}}green{{/ifCond}}
9
+ {{#ifCond color '==' "RED"}}red{{/ifCond}}
10
+ "
11
+ tabindex="0"
12
+ style="
13
+ {{#ifCond color '==' "GREEN"}}background-color: #9acd32; color: #fff;{{/ifCond}}
14
+ {{#ifCond color '==' "RED"}}background-color: #cf000f; color: #fff;{{/ifCond}}
15
+ {{#if bold}}font-weight: 700;{{/if}}
16
+ "
17
+ >
18
+ {{ name }}
19
+ </a>
20
+ </li>
21
+ {{/each }}
22
+ {{#if originalChildrenCount}}
23
+ {{#ifCond originalChildrenCount '!=' subMenuItems.length }}
24
+ <a
25
+ href="{{ menuItemUrl }}"
26
+ class="main-nav__sub-menu__link main-nav__sub-menu__view-more main-nav__sub-sub-menu__link-last"
27
+ tabindex="0"
28
+ >
29
+ View More
30
+ </a>
31
+ {{/ifCond}}
32
+ {{/if}}
33
+ </ul>
@@ -0,0 +1,32 @@
1
+ {{#each navigation}}
2
+ <ul class="main-nav__top-level">
3
+ {{#each children}}
4
+ <li class="main-nav__top-level__item">
5
+ <a
6
+ href="{{ url }}"
7
+ class="main-nav__top-level__label
8
+ {{#if color}}main-nav__top-level__label--invert {{/if}}
9
+ {{#ifCond color '==' "GREEN"}}green{{/ifCond}}
10
+ {{#ifCond color '==' "RED"}}red{{/ifCond}}
11
+ "
12
+ tabindex="0"
13
+ style="
14
+ {{#ifCond color '==' "GREEN"}}background-color: #9acd32; color: #fff;{{/ifCond}}
15
+ {{#ifCond color '==' "RED"}}background-color: #cf000f; color: #fff;{{/ifCond}}
16
+ {{#if bold}}font-weight: 700;{{/if}}
17
+ "
18
+ >
19
+ {{ name }}
20
+ </a>
21
+ <div class="main-nav__menu-wrapper">
22
+ {{#if banner}}
23
+ <div class="main-nav__menu-banner">
24
+ {{{banner}}}
25
+ </div>
26
+ {{/if}}
27
+ {{> navigation/menu-item menuItems=children}}
28
+ </div>
29
+ </li>
30
+ {{/each}}
31
+ </ul>
32
+ {{/each}}
@@ -0,0 +1,32 @@
1
+ <ul class="main-nav__menu">
2
+ {{#each menuItems}}
3
+ <li class="main-nav__menu__item nav-col">
4
+ <a
5
+ href="{{ url }}"
6
+ class="main-nav__menu__label
7
+ {{#if color}}main-nav__menu__label--invert {{/if}}
8
+ {{#ifCond color '==' "GREEN"}}green{{/ifCond}}
9
+ {{#ifCond color '==' "RED"}}red{{/ifCond}}
10
+ "
11
+ tabindex="0"
12
+ style="
13
+ {{#ifCond color '==' "GREEN"}}background-color: #9acd32; color: #fff;{{/ifCond}}
14
+ {{#ifCond color '==' "RED"}}background-color: #cf000f; color: #fff;{{/ifCond}}
15
+ {{#if bold}}font-weight: 700;{{/if}}
16
+ "
17
+ >
18
+ {{ name }}
19
+ </a>
20
+ <div class="main-nav__sub-menu__wrapper" tabindex="0">
21
+ <div class="main-nav__sub-menu">
22
+ {{> navigation/menu-item-sub subMenuItems=children originalChildrenCount=originalChildrenCount menuItemUrl=url}}
23
+ <div class="main-nav__view-all">
24
+ <a href="{{ url }}" class="main-nav__view-all__link" tabindex="0">
25
+ View all {{ name }}
26
+ </a>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </li>
31
+ {{/each}}
32
+ </ul>
@@ -0,0 +1,12 @@
1
+ <div class="main-nav__section main-nav__section_main">
2
+ <div class="main-nav__back-btn__wrap">
3
+ <a href="#" class="main-nav__back-btn">
4
+ <span class="icon">
5
+ <i class="fas fa-arrow-left fa-lg"></i>
6
+ </span>
7
+ </a>
8
+ </div>
9
+ <div class="main-nav__top-level-wrap">
10
+ {{> navigation/menu-item-top }}
11
+ </div>
12
+ </div>
@@ -0,0 +1,10 @@
1
+ <div class="reward-card {{modificator}}">
2
+ <img src="{{imgSrc}}" alt="Trade Pro Reward" class="reward-card__img">
3
+ <div class="reward-card__content">
4
+ <p class="reward-card__title">{{title}}</p>
5
+ {{#if description}}
6
+ <p class="reward-card__description">{{description}}</p>
7
+ {{/if}}
8
+ <a href="{{btnUrl}}" class="btn btn-secondary">{{btnText}}</a>
9
+ </div>
10
+ </div>
@@ -1,174 +1,76 @@
1
- <div class="voucher {{modificator}} {{mod}}">
2
- {{#if voucher-title}}
3
- <h2 class="{{modificator}}-title">{{title}}</h2>
4
- {{/if}}
5
- {{#if voucher-info}}
6
- <div class="{{modificator}}-info">
7
- <div class="row">
8
- <div class="{{modificator}}-placeholder">
9
- <div class="{{modificator}}-placeholder-wrap">
10
- {{#if discount}}
11
- <span class="{{modificator}}-placeholder-discount">
12
- 10% off
13
- </span>
14
- {{/if}}
15
- <img src="{{imgPlaceholder}}" alt="">
16
- </div>
17
- </div>
18
- <div class="{{modificator}}-description">
19
- {{#if sub-header}}
20
- {{#each subheader-data}}
21
- <h{{subheaderIndex}} class="{{modificator}}-subheader">{{subheader}}</h{{subheaderIndex}}>
22
- {{/each}}
23
- {{/if}}
24
- <p>{{description}}</p>
25
- <p>{{description2}}</p>
26
- {{#if description-button}}
27
- <div class="{{modificator}}-code-actions {{button-mod}}">
28
- <a href="#" class="btn btn-primary">
29
- {{buttonValue}}
30
- </a>
31
- </div>
32
- {{/if}}
33
- </div>
1
+ <div class="voucher">
2
+ <div class="voucher__grid">
3
+ <div class="voucher__cell">
4
+ {{!-- image --}}
5
+ <div class="voucher__image-wrap">
6
+ <img src="{{img}}" alt="{{imgAlt}}">
34
7
  </div>
8
+ {{!-- /image --}}
35
9
  </div>
36
- {{/if}}
37
- {{#if hasBanner}}
38
- <div class="{{modificator}}-banner-wrap">
39
- <div class="{{modificator}}-banner-info">{{{bannerInfo}}}</div>
40
- <div class="{{modificator}}-banner-expiry-date">{{bannerExpiryDate}}</div>
41
- </div>
42
- {{/if}}
43
- {{#if voucher-code}}
44
- <div class="{{modificator}}-wrap {{modificator}}-wrap{{button-mod}}">
45
- <div class="row">
46
- {{#if hasBarcode}}
47
- <div class="{{modificator}}-barcode">
48
- <div class="{{modificator}}-barcode-container">
49
- <div class="{{modificator}}-barcode-title">
50
- <h5>{{barcodeTitle}}</h5>
51
- </div>
52
- <div class="{{modificator}}-barcode-info">
53
- {{#unless targetedVoucher}}
54
- <span class="name">{{barcodeName}}</span>
55
- <span class="date">{{barcodeDate}}</span>
56
- {{/unless}}
57
- <span class="hint">{{barcodeHint}}</span>
58
- </div>
59
- <div class="{{modificator}}-barcode-img">
60
- <svg id="barcode" jsbarcode-value="00010931000118010" jsbarcode-width="3" jsbarcode-height="119" jsbarcode-displayvalue="false" jsbarcode-margin="0" width="435px" height="119px" x="0px" y="0px" viewBox="0 0 435 119" xmlns="http://www.w3.org/2000/svg" version="1.1" style="transform: translate(0px, 0px);"><rect x="0" y="0" width="435" height="119" style="fill:#ffffff;"></rect><g transform="translate(0, 0)" style="fill:#000000;"><rect x="0" y="0" width="6" height="119"></rect><rect x="9" y="0" width="3" height="119"></rect><rect x="18" y="0" width="9" height="119"></rect><rect x="33" y="0" width="6" height="119"></rect><rect x="42" y="0" width="6" height="119"></rect><rect x="54" y="0" width="6" height="119"></rect><rect x="66" y="0" width="6" height="119"></rect><rect x="78" y="0" width="6" height="119"></rect><rect x="87" y="0" width="6" height="119"></rect><rect x="99" y="0" width="6" height="119"></rect><rect x="111" y="0" width="3" height="119"></rect><rect x="120" y="0" width="3" height="119"></rect><rect x="132" y="0" width="6" height="119"></rect><rect x="141" y="0" width="6" height="119"></rect><rect x="156" y="0" width="6" height="119"></rect><rect x="165" y="0" width="6" height="119"></rect><rect x="174" y="0" width="6" height="119"></rect><rect x="186" y="0" width="6" height="119"></rect><rect x="198" y="0" width="6" height="119"></rect><rect x="210" y="0" width="6" height="119"></rect><rect x="219" y="0" width="6" height="119"></rect><rect x="231" y="0" width="6" height="119"></rect><rect x="243" y="0" width="9" height="119"></rect><rect x="258" y="0" width="3" height="119"></rect><rect x="264" y="0" width="6" height="119"></rect><rect x="276" y="0" width="6" height="119"></rect><rect x="285" y="0" width="6" height="119"></rect><rect x="297" y="0" width="9" height="119"></rect><rect x="309" y="0" width="3" height="119"></rect><rect x="315" y="0" width="12" height="119"></rect><rect x="330" y="0" width="3" height="119"></rect><rect x="339" y="0" width="9" height="119"></rect><rect x="351" y="0" width="6" height="119"></rect><rect x="363" y="0" width="9" height="119"></rect><rect x="378" y="0" width="3" height="119"></rect><rect x="384" y="0" width="6" height="119"></rect><rect x="396" y="0" width="6" height="119"></rect><rect x="411" y="0" width="9" height="119"></rect><rect x="423" y="0" width="3" height="119"></rect><rect x="429" y="0" width="6" height="119"></rect></g></svg>
10
+ {{#ifCond isOnline '||' isInstore}}
11
+ <div class="voucher__column">
12
+ {{#if isInstore}}
13
+ <div class="voucher__cell d-flex flex-column">
14
+ {{!-- instore --}}
15
+ <span class="voucher__label">{{instore.label}}</span>
16
+ <div class="voucher__content">
17
+ <div>
18
+ <h4 class="mb-0">{{title}}</h4>
19
+ <p class="mt-1 mb-0">{{instore.name}}</p>
20
+ <p class="mt-1 mb-0">{{instore.expiration}}</p>
61
21
  </div>
62
- <div class="{{modificator}}-barcode-number">{{barcodeNumber}}</div>
63
- <div class="{{modificator}}-barcode-warning">{{barcodeWarning}}</div>
64
- {{#if barcode-expand}}
65
- <div class="barcode__footer_expand">
66
- <a href="#" class="icon" data-toggle="modal" data-target="#modal-barcode">
67
- <i class="far fa-expand-arrows"></i>
68
- <a href="#" data-toggle="modal" data-target="#modal-barcode">Use barcode</a>
69
- </a>
22
+ <div class="mt-3">
23
+ <div class="voucher__barcode-img">
24
+ <svg id="barcode" jsbarcode-value="00010931000118010" jsbarcode-width="3" jsbarcode-height="119" jsbarcode-displayvalue="false" jsbarcode-margin="0" width="435px" height="119px" x="0px" y="0px" viewBox="0 0 435 119" xmlns="http://www.w3.org/2000/svg" version="1.1" style="transform: translate(0px, 0px);"><rect x="0" y="0" width="435" height="119" style="fill:#ffffff;"></rect><g transform="translate(0, 0)" style="fill:#000000;"><rect x="0" y="0" width="6" height="119"></rect><rect x="9" y="0" width="3" height="119"></rect><rect x="18" y="0" width="9" height="119"></rect><rect x="33" y="0" width="6" height="119"></rect><rect x="42" y="0" width="6" height="119"></rect><rect x="54" y="0" width="6" height="119"></rect><rect x="66" y="0" width="6" height="119"></rect><rect x="78" y="0" width="6" height="119"></rect><rect x="87" y="0" width="6" height="119"></rect><rect x="99" y="0" width="6" height="119"></rect><rect x="111" y="0" width="3" height="119"></rect><rect x="120" y="0" width="3" height="119"></rect><rect x="132" y="0" width="6" height="119"></rect><rect x="141" y="0" width="6" height="119"></rect><rect x="156" y="0" width="6" height="119"></rect><rect x="165" y="0" width="6" height="119"></rect><rect x="174" y="0" width="6" height="119"></rect><rect x="186" y="0" width="6" height="119"></rect><rect x="198" y="0" width="6" height="119"></rect><rect x="210" y="0" width="6" height="119"></rect><rect x="219" y="0" width="6" height="119"></rect><rect x="231" y="0" width="6" height="119"></rect><rect x="243" y="0" width="9" height="119"></rect><rect x="258" y="0" width="3" height="119"></rect><rect x="264" y="0" width="6" height="119"></rect><rect x="276" y="0" width="6" height="119"></rect><rect x="285" y="0" width="6" height="119"></rect><rect x="297" y="0" width="9" height="119"></rect><rect x="309" y="0" width="3" height="119"></rect><rect x="315" y="0" width="12" height="119"></rect><rect x="330" y="0" width="3" height="119"></rect><rect x="339" y="0" width="9" height="119"></rect><rect x="351" y="0" width="6" height="119"></rect><rect x="363" y="0" width="9" height="119"></rect><rect x="378" y="0" width="3" height="119"></rect><rect x="384" y="0" width="6" height="119"></rect><rect x="396" y="0" width="6" height="119"></rect><rect x="411" y="0" width="9" height="119"></rect><rect x="423" y="0" width="3" height="119"></rect><rect x="429" y="0" width="6" height="119"></rect></g></svg>
70
25
  </div>
71
- {{else if barcode-targeted-expand}}
72
- <div class="barcode__footer_expand">
73
- <a href="#" class="icon" data-toggle="modal" data-target="#modal-barcode-targeted">
74
- <i class="far fa-expand-arrows"></i>
75
- <a href="#" data-toggle="modal" data-target="#modal-barcode-targeted">Use barcode</a>
76
- </a>
77
- </div>
78
- {{/if}}
79
- </div>
80
- </div>
81
- {{/if}}
82
- {{#if hasCode}}
83
- <div class="{{modificator}}-code">
84
- <div class="{{modificator}}-code-container">
85
- <div class="{{modificator}}-code-title">
86
- <h3>{{codeTitle}}</h3>
26
+ <div class="voucher__barcode-number">{{instore.barcodeNumber}}</div>
87
27
  </div>
88
- {{#unless copy-absent}}
89
- <div class="{{modificator}}-code-field">
90
- <input type="text" value="{{inputValue}}" disabled>
91
- <a href="#" class="copy-barcode">
92
- <span class="icon">
93
- <i class="fas fa-copy"></i>
94
- </span>
95
- <span>Copy</span>
96
- </a>
97
- </div>
98
- <div class="copy-barcode_notification">
99
-
100
- </div>
101
- {{/unless}}
102
- {{#if button-present}}
103
- <div class="{{modificator}}-code-actions">
104
- <a href="#" class="btn btn-primary">
105
- {{buttonValue}}
106
- </a>
107
- </div>
108
- {{/if}}
109
- {{#if warning-present}}
110
- <div class="{{modificator}}-code-warning">{{codeWarning}}</div>
111
- {{/if}}
112
28
  </div>
29
+ {{!-- /instore --}}
113
30
  </div>
114
31
  {{/if}}
115
- {{#if hasTargetedCode}}
116
- <div class="{{modificator}}-code">
117
- <div class="{{modificator}}-code-container">
118
- <div class="{{modificator}}-code-title">
119
- <h5>{{codeTitle}}</h5>
32
+ {{#if isOnline}}
33
+ <div class="voucher__cell d-flex flex-column">
34
+ {{!-- online --}}
35
+ <span class="voucher__label">{{online.label}}</span>
36
+ <div class="voucher__content">
37
+ <div>
38
+ {{#if online.title}}
39
+ <h4 class="mb-0">{{online.title}}</h4>
40
+ {{/if}}
41
+ <p class="mt-1 mb-0">{{online.note}}</p>
120
42
  </div>
121
- <div class="{{modificator}}-code-info">
122
- <span class="hint">{{codeHint}}</span>
123
- </div>
124
- <div class="{{modificator}}-code-field">
125
- <span>{{codeHeading}}</span>
126
- <div class="{{modificator}}-code-wrap">
127
- <input class="{{modificator}}-code-value" type="text" value="{{codeValue}}" disabled>
128
- </div>
43
+ <div class="my-3">
44
+ <div class="voucher__code-field copy-tradePro-barcode">
45
+ <input type="text" value="{{online.code}}" disabled>
46
+ <span class="icon">
47
+ <i class="fas fa-copy"></i>
48
+ </span>
129
49
  </div>
130
- <a href="#" class="copy-barcode">
131
- <span class="icon">
132
- <i class="far fa-copy"></i>
133
- </span>
134
- <span>Copy code</span>
50
+ </div>
51
+ {{#ifCond online.buttonLink "&&" online.buttonText}}
52
+ <a href="{{online.buttonLink}}" class="btn btn-primary">
53
+ <span class="btn__text">{{online.buttonText}}</span>
135
54
  </a>
136
- <div class="copy-barcode_notification"></div>
137
- {{#if notification}}
138
- <div class="copy-barcode_notification"></div>
139
- {{/if}}
140
- {{#if button-present}}
141
- <div class="{{modificator}}-code-actions">
142
- <a href="#" class="btn btn-primary">
143
- {{buttonValue}}
144
- </a>
145
- </div>
146
- {{/if}}
147
- {{#if warning-present}}
148
- <div class="{{modificator}}-code-warning">{{codeWarning}}</div>
149
- {{/if}}
55
+ {{/ifCond}}
150
56
  </div>
57
+ {{!-- /online --}}
151
58
  </div>
152
59
  {{/if}}
153
60
  </div>
61
+ {{/ifCond}}
62
+ <div class="voucher__cell voucher__description">
63
+ {{!-- description --}}
64
+ {{#if description.short}}
65
+ <p class="voucher__description-title mb-2">{{description.short}}</p>
66
+ {{/if}}
67
+ <p class="voucher__description-text mb-0">{{description.long}}</p>
68
+ {{#ifCond description.buttonLink "&&" description.buttonText}}
69
+ <a href="{{description.buttonLink}}" class="btn btn-primary voucher__description-button">
70
+ <span class="btn__text">{{description.buttonText}}</span>
71
+ </a>
72
+ {{/ifCond}}
73
+ {{!-- /description --}}
154
74
  </div>
155
- {{#if termsAndConditions}}
156
- <div class="terms">
157
- <div class="terms__btn-accordion">
158
- <span class="icon">
159
- <i class="fas fa-angle-down"></i>
160
- </span>
161
- Terms & Conditions
162
- </div>
163
- <div class="terms__content">
164
- Terms, conditions and exclusions apply. Credit subject to status. Over 18’s only. Offer ends 21st February 2018. Ask your design consultant for more information and
165
- terms and conditions. 24 month term. Equal monthly payments commence after delivery. Wickes Building Supplies Limited is registered in England and Wales with
166
- registration number 1840419 and is authorised and regulated by the Financial Conduct Authority to carry on credit-broking. Registered office; Lodge Way House,
167
- Harlestone Road, Northampton, NN5 7UG. Credit is exclusively provided by Hitachi Capital (UK) PLC, with whom Wickes have a commercial relationship. Hitachi Capital
168
- (UK) PLC is registered in England and Wales with registration number 1630491 and is authorised and regulated by the Financial Conduct Authority. Registered office;
169
- Hitachi Capital House, Thorpe Road, Staines-upon-Thames, Surrey, TW18 3HP. Excludes non showroom Kitchen and Bathroom products.
170
- </div>
171
- </div>
172
- {{/if}}
173
- {{/if}}
174
- </div>
75
+ </div>
76
+ </div>
@@ -141,6 +141,66 @@
141
141
  "src": "./img/placeholders/[e-img-4to3].jpg",
142
142
  "price": "£2,009.00"
143
143
  }
144
+ ],
145
+ "reward_cards": [
146
+ {
147
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
148
+ "title": "TradePro Active 15% off",
149
+ "description": "Short description",
150
+ "btnText": "Learn more",
151
+ "btnUrl": "#"
152
+ },
153
+ {
154
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
155
+ "title": "TradePro wit short description and long title that takes more lines",
156
+ "description": "Short description",
157
+ "btnText": "Learn more",
158
+ "btnUrl": "#"
159
+ },
160
+ {
161
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
162
+ "title": "TradePro with short description",
163
+ "description": "Short description that long and takes two lines of content",
164
+ "btnText": "Learn more",
165
+ "btnUrl": "#"
166
+ },
167
+ {
168
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
169
+ "title": "TradePro without short description",
170
+ "description": "",
171
+ "btnText": "Learn more",
172
+ "btnUrl": "#"
173
+ },
174
+ {
175
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
176
+ "title": "TradePro with short description",
177
+ "description": "Short description",
178
+ "btnText": "Learn more",
179
+ "btnUrl": "#"
180
+ },
181
+ {
182
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
183
+ "title": "TradePro without short description",
184
+ "description": "",
185
+ "btnText": "Learn more",
186
+ "btnUrl": "#"
187
+ },
188
+ {
189
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
190
+ "title": "TradePro without short description",
191
+ "description": "",
192
+ "btnText": "Learn more",
193
+ "btnUrl": "#"
194
+ }
195
+ ],
196
+ "reward_card": [
197
+ {
198
+ "imgSrc": "./img/placeholders/img-placeholder-rewards.png",
199
+ "title": "TradePro Active 15% off",
200
+ "description": "Short description",
201
+ "btnText": "Learn more",
202
+ "btnUrl": "#"
203
+ }
144
204
  ]
145
205
  }
146
206
  }