|
1 | 1 | // @ts-check |
2 | 2 |
|
3 | | -import {country, isEUCountry} from './locales.js'; |
| 3 | +import {country, isEdge, isEUCountry} from './locales.js'; |
4 | 4 | import {initPaddle} from './paddle.js'; |
5 | 5 | import {clicker} from './stats.js'; |
6 | 6 | import { |
@@ -286,6 +286,13 @@ const htmlText = ` |
286 | 286 | </div> |
287 | 287 | <darkreader-donate-mascot narrow></darkreader-donate-mascot> |
288 | 288 | </section> |
| 289 | + <div class="pr-description pr-edge-plus" data-text="edge_plus" style="${isEdge ? '' : 'display: none;'}"> |
| 290 | + <i class="pr-edge-plus__edge-icon"></i> |
| 291 | + Microsoft Edge users will get early access to |
| 292 | + <span class="pr-edge-plus__title"><span class="pr-edge-plus__title--dr">Dark Reader</span> <span class="pr-edge-plus__title--plus">Plus</span></span>. |
| 293 | + New user interface, premium themes & custom colors. |
| 294 | + <a href="/plus/" target="_blank">Learn more.</a> |
| 295 | + </div> |
289 | 296 | </div> |
290 | 297 | </section> |
291 | 298 | <section class="pr-small"> |
@@ -330,7 +337,7 @@ const cssText = ` |
330 | 337 | color: var(--color-highlight); |
331 | 338 | font-size: 1.0rem; |
332 | 339 | font-weight: bold; |
333 | | - margin: 0; |
| 340 | + margin: 0 0 0.25rem 0; |
334 | 341 | position: relative; |
335 | 342 | text-align: left; |
336 | 343 | -webkit-text-stroke: 0.0625rem; |
@@ -361,6 +368,44 @@ const cssText = ` |
361 | 368 | text-align: center; |
362 | 369 | */ |
363 | 370 | } |
| 371 | +.pr-edge-plus { |
| 372 | + margin-top: 1rem; |
| 373 | + padding-left: 1.25rem; |
| 374 | + text-indent: -1.25rem; |
| 375 | +
|
| 376 | + a { |
| 377 | + color: var(--color-text); |
| 378 | + } |
| 379 | +} |
| 380 | +.pr-edge-plus__edge-icon { |
| 381 | + background-image: url(/images/icon-edge-256x256.svg); |
| 382 | + background-position: center; |
| 383 | + background-repeat: no-repeat; |
| 384 | + background-size: contain; |
| 385 | + bottom: -0.125rem; |
| 386 | + display: inline-block; |
| 387 | + height: 1rem; |
| 388 | + position: relative; |
| 389 | + width: 1rem; |
| 390 | +} |
| 391 | +.pr-edge-plus__title { |
| 392 | + font-family: system-ui; |
| 393 | + text-transform: uppercase; |
| 394 | +} |
| 395 | +.pr-edge-plus__title--dr { |
| 396 | + background-image: linear-gradient(to right, #e7573b, #af6ce9, #40a6e5); |
| 397 | + background-clip: text; |
| 398 | + color: transparent; |
| 399 | + font-weight: 900; |
| 400 | + -webkit-text-stroke: 0.5px; |
| 401 | +} |
| 402 | +.pr-edge-plus__title--plus { |
| 403 | + color: white; |
| 404 | + font-weight: 300; |
| 405 | + /* |
| 406 | + text-shadow: 0 0 1rem var(--color-text), 0 0 0.75rem var(--color-text), 0 0 0.5rem var(--color-text), 0 0 0.25rem var(--color-text); |
| 407 | + */ |
| 408 | +} |
364 | 409 | .tiers { |
365 | 410 | align-items: stretch; |
366 | 411 | display: flex; |
|
0 commit comments