@@ -22,21 +22,22 @@ const locales = {
2222
2323const htmlText = `
2424<section class="mob">
25- <div class="mob-subtitle">
26- <div class="mob-subtitle__news" data-text="breaking_news">
27- Breaking News
28- </div>
25+ <div class="mob-picture">
26+ <div class="mob-picture__text mob-picture__text-1">Reduce the brightness<br>of your screen</div>
27+ <div class="mob-picture__text mob-picture__text-2">with <strong>Dark Reader Mobile</strong></div>
28+ </div>
29+ <div class="mob-subtitle" style="display: none;">
2930 <a class="mob-text-link" href="${ edgeURL } " target="_blank" rel="noopener" data-s="drand-side-text">
30- <span class="mob-text-link__darkreader">Dark Reader</span> <span data-text="is_now_available_for">is now<br> available for</span>
31+ <span class="mob-text-link__darkreader">Now available for</span>
3132 <span class="mob-text-link__android">Android</span>!
3233 </a>
3334 </div>
34- <div class="mob-badge-wrapper">
35+ <div class="mob-badge-wrapper" style="display: none;" >
3536 <a class="mob-badge-link" href="${ edgeURL } " target="_blank" rel="noopener" data-s="drand-side-badge">
3637 <img src="/images/google-play-badge.svg">
3738 </a>
3839 </div>
39- <div class="mob-description">
40+ <div class="mob-description" style="display: none;" >
4041 <a href="${ edgeURL } " target="_blank" rel="noopener" data-s="drand-side-text" data-text="check_out_exclusive">
4142 Check out exclusive <strong>Premium Themes & Custom Colors</strong>
4243 </a>
@@ -54,13 +55,18 @@ const htmlText = `
5455 <img src="/images/plus-screen-2.png" class="mob-screenshot">
5556 </div>
5657 </div>
58+ <div class="mob-badge-wrapper">
59+ <a class="mob-badge-link" href="${ edgeURL } " target="_blank" rel="noopener" data-s="drand-side-badge">
60+ <img src="/images/google-play-badge.svg">
61+ </a>
62+ </div>
5763 <div class="mob-description">
5864 Browser extensions for Android
5965 are brought to you by<br>
6066 <i class="mob-description__edge-icon"></i> <strong>Microsoft Edge</strong>
6167 </div>
62- <div class="mob-description">
63- Having iPhone or iPad?
68+ <div class="mob-description mob-description--last ">
69+ Having iPhone or iPad?<br>
6470 <a href="${ safariURL } " target="_blank" rel="noopener" data-s="drios-side-text">
6571 Download on the App Store
6672 </a>
@@ -69,6 +75,11 @@ const htmlText = `
6975` ;
7076
7177const cssText = `
78+ :host {
79+ --color-bg: black;
80+ --color-text: white;
81+ color: var(--color-text);
82+ }
7283a {
7384 color: var(--color-text);
7485 outline: none;
@@ -98,9 +109,12 @@ section {
98109
99110.mob {
100111 align-items: center;
112+ background-color: var(--color-bg);
113+ border-radius: 1rem;
101114 gap: 1rem;
102115 margin-top: 1rem;
103- width: 14rem;
116+ padding-bottom: 1.5rem;
117+ width: 16rem;
104118}
105119.mob-subtitle {
106120 font-weight: bold;
@@ -163,6 +177,8 @@ section {
163177 box-shadow: 0 0 0 0.0625rem hsla(0, 0%, 100%, 1), 0 0 0.75rem var(--color-text);
164178}
165179.mob-description {
180+ box-sizing: border-box;
181+ padding: 0 0.5rem;
166182 text-align: center;
167183 width: 100%;
168184}
@@ -175,10 +191,21 @@ section {
175191 height: 1rem;
176192 width: 1rem;
177193}
194+ .mob-description--last {
195+ color: #ffffff88;
196+ font-size: 0.75rem;
197+ a {
198+ color: #ffffff88;
199+ }
200+ a:hover {
201+ color: white;
202+ }
203+ }
178204.mob-qr-2 {
179205 align-items: center;
180206 display: flex;
181207 flex-direction: row;
208+ padding: 0.5rem 0.75rem;
182209}
183210.just-qr {
184211 border-radius: 5%;
@@ -244,6 +271,44 @@ section {
244271.mob-screenshot:not(:first-child).mob-screenshot--visible {
245272 opacity: 1;
246273}
274+ .mob-picture {
275+ background-image: url(/images/night-reading.jpg);
276+ background-position: center;
277+ background-size: cover;
278+ border-top-left-radius: 1rem;
279+ border-top-right-radius: 1rem;
280+ height: 16rem;
281+ /* mix-blend-mode: lighten; */
282+ position: relative;
283+ width: 16rem;
284+ }
285+ .mob-picture__text {
286+ color: white;
287+ font-size: 1.5rem;
288+ font-weight: 400;
289+ left: 0;
290+ position: absolute;
291+ text-align: center;
292+ text-shadow: 0 0 1rem black, 0 0 0.5rem black;
293+ width: 100%;
294+ }
295+ .mob-picture__text-1 {
296+ top: 0.5rem;
297+ }
298+ .mob-picture__text-2 {
299+ bottom: 0rem;
300+ }
301+ .mob-picture__text strong {
302+ font-size: 1.5rem;
303+ font-weight: 400;
304+ /* -webkit-text-stroke: 0.0625rem; */
305+ }
306+
307+ @media (max-height: 50rem) {
308+ .mob-qr {
309+ display: none;
310+ }
311+ }
247312` ;
248313
249314class MobileSideElement extends HTMLElement {
0 commit comments