|
18 | 18 | <style> |
19 | 19 | html { |
20 | 20 | background-color: #141e24; |
| 21 | + -webkit-tap-highlight-color: transparent; |
21 | 22 | } |
22 | 23 |
|
23 | 24 | body { |
24 | 25 | background-color: #141e24; |
25 | | - color: #c2bcb8; |
26 | | - font-family: Helvetica Neue, sans-serif; |
| 26 | + color: #adaca5; |
| 27 | + font-family: system-ui, sans-serif; |
27 | 28 | max-width: 40em; |
28 | 29 | margin: 0 auto; |
29 | 30 | padding: 1em |
|
36 | 37 | color: #e96c4c; |
37 | 38 | } |
38 | 39 |
|
39 | | - .banner, |
40 | | - .banner__image { |
41 | | - display: inline-block; |
| 40 | + .title { |
| 41 | + font-size: 2.15rem; |
42 | 42 | margin: 0; |
43 | | - width: 100%; |
| 43 | + } |
| 44 | + |
| 45 | + .title-darkreader { |
| 46 | + color: #e96c4c; |
| 47 | + font-weight: 900; |
| 48 | + text-transform: uppercase; |
| 49 | + } |
| 50 | + |
| 51 | + .title-mobile { |
| 52 | + color: white; |
| 53 | + font-weight: 100; |
| 54 | + text-transform: uppercase; |
44 | 55 | } |
45 | 56 |
|
46 | 57 | a { |
47 | 58 | color: #53a1b3; |
| 59 | + word-break: break-word; |
| 60 | + } |
| 61 | + |
| 62 | + strong { |
| 63 | + color: #d2d1ca; |
| 64 | + } |
| 65 | + |
| 66 | + .store-badge { |
| 67 | + display: inline-block; |
| 68 | + margin: 1rem 0; |
| 69 | + width: 16rem; |
| 70 | + } |
| 71 | + |
| 72 | + .mini-instruction { |
| 73 | + align-items: center; |
| 74 | + color: white; |
| 75 | + display: flex; |
| 76 | + flex-direction: row; |
| 77 | + font-size: 3rem; |
| 78 | + gap: 1rem; |
| 79 | + margin: 1rem 0; |
| 80 | + } |
| 81 | + |
| 82 | + .mini-instruction-icon { |
| 83 | + display: inline-block; |
| 84 | + height: 4rem; |
| 85 | + width: 4rem; |
48 | 86 | } |
49 | 87 | </style> |
50 | 88 | </head> |
51 | 89 |
|
52 | 90 | <body> |
53 | | - <a class="banner" href="/"> |
54 | | - <img class="banner__image" src="/images/darkreader-main.svg" /> |
55 | | - </a> |
56 | | - |
57 | | - <h3> |
58 | | - Please wait while you are being redirected... |
59 | | - </h3> |
60 | | - |
61 | | - <p> |
62 | | - If you haven't been redirected automatically, please use the following installation links: |
63 | | - </p> |
64 | | - |
65 | | - <h3>Android</h3> |
66 | | - <p> |
67 | | - <a |
68 | | - href="https://www.microsoft.com/edge/emmx/darkreadercollaboration">https://www.microsoft.com/edge/emmx/darkreadercollaboration</a> |
69 | | - </p> |
70 | | - |
71 | | - <h3>iOS & iPadOS</h3> |
72 | | - <p> |
73 | | - <a |
74 | | - href="https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180?platform=iphone">https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180?platform=iphone</a> |
75 | | - </p> |
| 91 | + <h1 class="title"> |
| 92 | + <span class="title-darkreader">Dark Reader</span> <span class="title-mobile">Mobile</span> |
| 93 | + </h1> |
| 94 | + |
| 95 | + <section id="ios-redirect" style="display: none;"> |
| 96 | + <h3> |
| 97 | + Please wait while you are being redirected to the App Store |
| 98 | + </h3> |
| 99 | + <p> |
| 100 | + If you haven't been redirected automatically, please use the following link:<br> |
| 101 | + <a data-s="drios-qr-manual" |
| 102 | + href="https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180?platform=iphone"> |
| 103 | + <img src="/images/app-store-badge.svg" class="store-badge"> |
| 104 | + </a><br> |
| 105 | + <a data-s="drios-qr-manual" |
| 106 | + href="https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180"> |
| 107 | + https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180 |
| 108 | + </a> |
| 109 | + </p> |
| 110 | + </section> |
| 111 | + |
| 112 | + <section id="android-static" style="display: none;"> |
| 113 | + <h3>Dark Reader for Android</h3> |
| 114 | + <p class="mini-instruction"> |
| 115 | + <img class="mini-instruction-icon" src="/images/icon-android-dark.svg"> |
| 116 | + ➡ |
| 117 | + <img class="mini-instruction-icon" src="/images/icon-edge-256x256.svg"> |
| 118 | + ➡ |
| 119 | + <img class="mini-instruction-icon" src="/images/icon-256.png"> |
| 120 | + </p> |
| 121 | + <p> |
| 122 | + Please follow this link to install <strong style="white-space: pre;">Microsoft Edge</strong> browser |
| 123 | + with <strong style="white-space: pre;">Dark Reader</strong> included:<br> |
| 124 | + <a data-s="drand-qr-badge" |
| 125 | + href="https://www.microsoft.com/edge/emmx/darkreadercollaboration"> |
| 126 | + <img src="/images/google-play-badge.svg" class="store-badge"> |
| 127 | + </a><br> |
| 128 | + <a data-s="drand-qr-text" |
| 129 | + href="https://www.microsoft.com/edge/emmx/darkreadercollaboration"> |
| 130 | + https://www.microsoft.com/edge/emmx/darkreadercollaboration |
| 131 | + </a> |
| 132 | + </p> |
| 133 | + </section> |
| 134 | + |
| 135 | + <section id="unrecognized"> |
| 136 | + <h3> |
| 137 | + iOS & iPadOS |
| 138 | + </h3> |
| 139 | + <p> |
| 140 | + Please use the following link:<br> |
| 141 | + <a data-s="drios-qr-badge" |
| 142 | + href="https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180"> |
| 143 | + <img src="/images/app-store-badge.svg" class="store-badge"> |
| 144 | + </a><br> |
| 145 | + <a data-s="drios-qr-text" |
| 146 | + href="https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180"> |
| 147 | + https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180 |
| 148 | + </a> |
| 149 | + </p> |
| 150 | + <h3>Android</h3> |
| 151 | + <p class="mini-instruction"> |
| 152 | + <img class="mini-instruction-icon" src="/images/icon-android-dark.svg"> |
| 153 | + ➡ |
| 154 | + <img class="mini-instruction-icon" src="/images/icon-edge-256x256.svg"> |
| 155 | + ➡ |
| 156 | + <img class="mini-instruction-icon" src="/images/icon-256.png"> |
| 157 | + </p> |
| 158 | + <p> |
| 159 | + Please use the following link to install <strong style="white-space: pre;">Microsoft Edge</strong> browser |
| 160 | + with <strong style="white-space: pre;">Dark Reader</strong> included:<br> |
| 161 | + <a data-s="drand-qr-badge" |
| 162 | + href="https://www.microsoft.com/edge/emmx/darkreadercollaboration"> |
| 163 | + <img src="/images/google-play-badge.svg" class="store-badge"> |
| 164 | + </a><br> |
| 165 | + <a data-s="drand-qr-text" |
| 166 | + href="https://www.microsoft.com/edge/emmx/darkreadercollaboration"> |
| 167 | + https://www.microsoft.com/edge/emmx/darkreadercollaboration |
| 168 | + </a> |
| 169 | + </p> |
| 170 | + </section> |
76 | 171 |
|
77 | 172 | <footer> |
78 | 173 | <p> |
79 | 174 | © 2024 Dark Reader Ltd |
80 | 175 | </p> |
81 | 176 | </footer> |
82 | 177 |
|
| 178 | + <script> |
| 179 | + (() => { |
| 180 | + const sectionIosRedirect = document.getElementById('ios-redirect'); |
| 181 | + const sectionAndroidStatic = document.getElementById('android-static'); |
| 182 | + const sectionUnrecognized = document.getElementById('unrecognized'); |
| 183 | + const ua = navigator.userAgent.toLocaleLowerCase(); |
| 184 | + if (ua.includes('iphone')) { |
| 185 | + sectionIosRedirect.style.display = 'block'; |
| 186 | + sectionAndroidStatic.style.display = 'none'; |
| 187 | + sectionUnrecognized.style.display = 'none'; |
| 188 | + } else if (ua.includes('android')) { |
| 189 | + sectionIosRedirect.style.display = 'none'; |
| 190 | + sectionAndroidStatic.style.display = 'block'; |
| 191 | + sectionUnrecognized.style.display = 'none'; |
| 192 | + } |
| 193 | + })(); |
| 194 | + </script> |
| 195 | + |
83 | 196 | <script type="module" src="/elements/stats.js"></script> |
84 | 197 |
|
85 | 198 | <script defer> |
86 | 199 | setTimeout(() => { |
87 | 200 | const ua = navigator.userAgent.toLocaleLowerCase(); |
88 | | - if (ua.includes('iphone') || ua.includes('macintosh')) { |
| 201 | + if (ua.includes('iphone')) { |
89 | 202 | location.replace('https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180?platform=iphone'); |
90 | | - } else if (ua.includes('android')) { |
91 | | - location.replace('https://www.microsoft.com/edge/emmx/darkreadercollaboration'); |
92 | 203 | } |
93 | 204 | }, 2000); |
94 | 205 | </script> |
|
0 commit comments