@@ -12,6 +12,7 @@ const payURL = '/support-us';
1212
1313const Tiers = {
1414 REGULAR : 'REGULAR' ,
15+ DISCOUNT : 'DISCOUNT' ,
1516 PLUS : 'PLUS' ,
1617 CORPORATE : 'CORPORATE' ,
1718} ;
@@ -59,8 +60,7 @@ const Prices = {
5960 CNY : '¥68.00' ,
6061 AUD : '$14.99' ,
6162 } ,
62- /*
63- PLUS: {
63+ DISCOUNT : {
6464 USD : '$4.99' ,
6565 GBP : '£3.99' ,
6666 EUR : '€4.99' ,
@@ -69,7 +69,6 @@ const Prices = {
6969 CNY : '¥38.00' ,
7070 AUD : '$7.99' ,
7171 } ,
72- */
7372 PLUS : {
7473 USD : '$9.99' ,
7574 GBP : '£7.99' ,
@@ -92,6 +91,7 @@ const Prices = {
9291
9392const DEFAULT_CURRENCY = country === 'GB' ? 'GBP' : country === 'JP' ? 'JPY' : country === 'CA' ? 'CAD' : country === 'AU' ? 'AUD' : country === 'CN' ? 'CNY' : isEUCountry ? 'EUR' : 'USD' ;
9493const DEFAULT_PRICE_REGULAR = Prices . REGULAR [ DEFAULT_CURRENCY ] ;
94+ const DEFAULT_PRICE_DISCOUNT = Prices . DISCOUNT [ DEFAULT_CURRENCY ] ;
9595const DEFAULT_PRICE_PLUS = Prices . PLUS [ DEFAULT_CURRENCY ] ;
9696const DEFAULT_PRICE_CORP = Prices . CORPORATE [ DEFAULT_CURRENCY ] ;
9797const DEFAULT_LINK_STRIPE = Links . Stripe . REGULAR ;
@@ -144,19 +144,28 @@ const htmlText = `
144144 <span class="tier__connect"></span>
145145 <span class="tier__price js-price-regular">${ DEFAULT_PRICE_REGULAR } </span>
146146 </label>
147- <label class="tier">
148- <input type="radio" name="tier" value="${ Tiers . PLUS } " checked >
147+ <label class="tier" style="display: none;" >
148+ <input type="radio" name="tier" value="${ Tiers . PLUS } ">
149149 <span class="tier__desc" data-text="plus">One-time payment</span>
150150 <span class="tier__connect"></span>
151151 <span class="tier__price js-price-plus">${ DEFAULT_PRICE_PLUS } </span>
152152 </label>
153+ <label class="tier">
154+ <input type="radio" name="tier" value="${ Tiers . DISCOUNT } " checked>
155+ <span class="tier__desc" data-text="plus">One-time payment</span>
156+ <span class="tier__connect"></span>
157+ <span class="tier__price js-price-plus">${ DEFAULT_PRICE_DISCOUNT } </span>
158+ </label>
153159 <label class="tier" style="display: none;">
154160 <input type="radio" name="tier" value="${ Tiers . CORPORATE } ">
155161 <span class="tier__desc" data-text="corporate">Corporate users</span>
156162 <span class="tier__connect"></span>
157163 <span class="tier__price js-price-corporate">${ DEFAULT_PRICE_CORP } </span>
158164 </label>
159165 </div>
166+ <div class="discount-description">
167+ 50% off until December 1
168+ </div>
160169 <div class="button-wrapper">
161170 <!--
162171 <a class="button-link button-link--paypal js-link-paypal" href="${ DEFAULT_LINK_PAYPAL } " target="_blank" rel="noopener" data-s="d-plus-paypal">
@@ -170,12 +179,20 @@ const htmlText = `
170179 <span class="button-link__text" data-text="more">More options</span>
171180 </a>
172181 -->
182+ <!--
173183 <a class="button-link button-link--paddle js-link-paddle" href="#pay" data-s="d-plus-paddle">
174184 <span class="button-link__text">
175185 <span data-text="pay">Pay</span>
176186 <span class="js-price-regular">${ DEFAULT_PRICE_PLUS } </span>
177187 </span>
178188 </a>
189+ -->
190+ <a class="button-link button-link--paddle js-link-paddle" href="#pay" data-s="d-plus-paddle">
191+ <span class="button-link__text">
192+ <span data-text="pay">Pay</span>
193+ <span class="js-price-discount">${ DEFAULT_PRICE_DISCOUNT } </span>
194+ </span>
195+ </a>
179196 </div>
180197 <div class="payment-methods">
181198 <i class="payment-methods__paypal"></i>
@@ -552,6 +569,12 @@ const cssText = `
552569 height: 1.5rem;
553570}
554571
572+ .discount-description {
573+ color: #63b79f;
574+ font-size: 0.875rem;
575+ font-weight: bold;
576+ }
577+
555578:host {
556579 container-type: inline-size;
557580 font-size: 1.25rem;
@@ -610,6 +633,7 @@ class PlusTiersElement extends HTMLElement {
610633
611634 s ( '.js-price-regular' ) . each ( ( node ) => node . textContent = Prices . REGULAR [ currency ] ) ;
612635 s ( '.js-price-plus' ) . each ( ( node ) => node . textContent = Prices . PLUS [ currency ] ) ;
636+ s ( '.js-price-discount' ) . each ( ( node ) => node . textContent = Prices . DISCOUNT [ currency ] ) ;
613637 s ( '.js-price-corporate' ) . each ( ( node ) => node . textContent = Prices . CORPORATE [ currency ] ) ;
614638 s ( '.js-currency-text' ) . each ( ( node ) => node . textContent = currency ) ;
615639 } ;
0 commit comments