@@ -17,9 +17,9 @@ const Tiers = {
1717
1818const Links = {
1919 Redirect : {
20- REGULAR : payURL ,
21- DISCOUNT : `${ payURL } #tier-discount ` ,
22- CORPORATE : `${ payURL } #tier-corporate ` ,
20+ REGULAR :
'mailto:[email protected] ?subject=[Payment]%20Your%20Question' , 21+ DISCOUNT :
`mailto:[email protected] ?subject=[Discount]%20Your%20Question ` , 22+ CORPORATE :
`mailto:[email protected] ?subject=[Corporate]%20Your%20Request ` , 2323 } ,
2424 Stripe : {
2525 REGULAR : 'https://buy.stripe.com/fZe15k7um5Em7scdQX' ,
@@ -114,7 +114,6 @@ const locales = {
114114} ;
115115
116116const htmlText = `
117- <div class="bg"></div>
118117<section class="pr">
119118 <div class="pr-wrapper">
120119 <h2 class="pr-heading" data-text="heading">Pay for using <span class="pr-heading__darkreader">Dark Reader</span></h2>
@@ -173,37 +172,11 @@ const htmlText = `
173172 <span class="button-link__text" data-text="card">Debit or Credit Card</span>
174173 </a>
175174 <a class="button-link button-link--other button-link--inactive js-link-other" href="${ Links . Redirect . CORPORATE } " target="_blank" rel="noopener" data-s="d-side-other">
176- <span class="button-link__text" data-text="more">More options </span>
175+ <span class="button-link__text" data-text="more">Contact us </span>
177176 </a>
178177 </div>
179178 </div>
180179</section>
181- <section class="pr-horizontal">
182- <h2 class="pr-heading">Pay for using <span class="pr-heading__darkreader">Dark Reader</span></h2>
183- <div class="pr-horizontal-wrapper">
184- <span class="card card--selected">
185- <span class="card__desc">Individual use</span>
186- <span class="card__price">${ DEFAULT_PRICE_REGULAR } </span>
187- <a class="button-link" href="${ Links . Redirect . REGULAR } " target="_blank" rel="noopener" data-s="d-card-regular">
188- <span class="button-link__text">Pay</span>
189- </a>
190- </span>
191- <span class="card">
192- <span class="card__desc">Discount</span>
193- <span class="card__price"><s class="card__price__strike"> ${ DEFAULT_PRICE_REGULAR } </s>${ DEFAULT_PRICE_DISCOUNT } </span>
194- <a class="button-link" href="${ Links . Redirect . DISCOUNT } " target="_blank" rel="noopener" data-s="d-card-discount">
195- <span class="button-link__text">Pay</span>
196- </a>
197- </span>
198- <span class="card">
199- <span class="card__desc">Organizations</span>
200- <span class="card__price">${ DEFAULT_PRICE_CORP . split ( '/' ) [ 0 ] } <span class="card__price__time">/year</span></span>
201- <a class="button-link" href="${ Links . Redirect . CORPORATE } " target="_blank" rel="noopener" data-s="d-card-corp">
202- <span class="button-link__text">Pay</span>
203- </a>
204- </span>
205- </div>
206- </section>
207180<section class="pr-small">
208181 <span class="pr-optional">Optional</span>
209182 <h2 class="pr-heading" data-text="heading_short">User Fee</h2>
@@ -217,7 +190,7 @@ const htmlText = `
217190 <span class="button-link__text" data-text="card_short">Pay with Card</span>
218191 </a>
219192 <a class="button-link button-link--other button-link--inactive js-link-other" href="${ Links . Redirect . CORPORATE } " target="_blank" rel="noopener" data-s="d-small-other">
220- <span class="button-link__text" data-text="more">More options </span>
193+ <span class="button-link__text" data-text="more">Contact us </span>
221194 </a>
222195 </div>
223196</section>
@@ -230,15 +203,6 @@ const cssText = `
230203 min-width: 16rem;
231204 position: relative;
232205}
233- .bg {
234- background-image: linear-gradient(to left, transparent, black, transparent);
235- height: 100%;
236- left: 0;
237- position: absolute;
238- top: 0;
239- width: 100%;
240- z-index: -1;
241- }
242206.pr-wrapper {
243207 margin: 0 auto;
244208 width: 16rem;
@@ -595,109 +559,16 @@ const cssText = `
595559.flag-au {
596560 background-position-x: -144px;
597561}
598- .pr-horizontal {
599- display: none;
600- }
601562:host {
602563 container-type: inline-size;
603564}
604- @container (width > 32rem) {
605- .bg {
606- display: none;
607- }
608- .pr {
609- display: none;
610- }
611- .pr-horizontal {
612- display: block;
613- }
614- .pr-heading {
615- font-size: 1.5rem;
616- text-align: center;
617- }
618- .pr-horizontal-wrapper {
619- align-items: center;
620- display: flex;
621- flex-direction: row;
622- gap: 1rem;
623- justify-content: space-evenly;
624- margin-top: 0.5rem;
625- }
626- .card {
627- align-items: center;
628- background-color: #121a1f;
629- border: 1px solid var(--color-control);
630- border-radius: 0.25rem;
631- box-shadow: 0 0 1rem rgb(0 0 0 / 50%);
632- display: flex;
633- flex-direction: column;
634- max-width: 10rem;
635- min-width: 8.5rem;
636- }
637- .card__price {
638- color: white;
639- display: inline-block;
640- font-size: 1.5rem;
641- font-weight: bold;
642- margin: 1rem 0;
643- }
644- .card__price__time {
645- color: var(--color-text);
646- font-size: 1rem;
647- }
648- .card__price__strike {
649- color: var(--color-text);
650- font-size: 1rem;
651- position: relative;
652- text-decoration: none;
653- }
654- .card__price__strike::after {
655- border-top: 2px solid var(--color-highlight);
656- bottom: 0;
657- content: "";
658- height: 40%;
659- left: 0;
660- position: absolute;
661- transform: rotate(-10deg);
662- width: 100%;
663- }
664- .card__desc {
665- border-bottom: 1px solid var(--color-control);
666- color: white;
667- display: inline-block;
668- font-weight: bold;
669- padding: 0.5rem 0;
670- text-align: center;
671- width: 100%;
672- }
673- .card--selected .card__desc {
674- background-color: var(--color-control);
675- }
676- .button-link {
677- margin: 0 1rem 1rem 1rem;
678- width: 8rem;
679- }
680- .card:not(.card--selected) .button-link {
681- background-color: var(--color-bg);
682- border: 1px solid var(--color-control);
683- }
684- .button-link__text {
685- font-size: 1.25rem;
686- font-weight: bold;
687- -webkit-text-stroke: 0.0625rem;
688- transform: skewX(-10deg);
689- }
690- }
691565
692566.pr-small {
693567 display: none;
694568}
695569:host([small]) .pr {
696570 display: none;
697571}
698- :host([small]) .pr-horizontal {
699- display: none;
700- }
701572:host([small]) .bg {
702573 display: none;
703574}
0 commit comments