|
33 | 33 | autologin: {{{ features.autologin }}}
|
34 | 34 | iam_api_lookup: {{{ features.iam_api_lookup }}}
|
35 | 35 | supportedLoginMethods: {{{ supportedLoginMethods }}}
|
| 36 | + maintenance_mode: "{{{ features.maintenance_mode }}}" |
| 37 | + mozilla_accounts_banner_pre: "{{{ features.mozilla_accounts_banner_pre }}}" |
| 38 | + mozilla_accounts_banner_post: "{{{ features.mozilla_accounts_banner_post }}}" |
36 | 39 | Display names:
|
37 | 40 | github: {{{ displayNames.github }}}
|
38 | 41 | google-oauth2: {{{ displayNames.google-oauth2 }}}
|
|
98 | 101 | </div>
|
99 | 102 | </div>
|
100 | 103 | </div>
|
| 104 | + <div data-decorator="check-if-accounts-banner-post" hidden> |
| 105 | + <div class="banner-branding" id="accounts-banner-post"> |
| 106 | + <div class="flex"> |
| 107 | + <div class="cta-post flex"> |
| 108 | + <div class="flex-none order-last"> |
| 109 | + <button |
| 110 | + class="close-brand-banner" |
| 111 | + aria-label="Close Banner" |
| 112 | + type=button |
| 113 | + > |
| 114 | + <img |
| 115 | + src="{{{ cdn }}}/images/x.svg" |
| 116 | + class="cursor-pointer" |
| 117 | + data-handler="mozilla-accounts-post" |
| 118 | + alt="Close Banner" |
| 119 | + /> |
| 120 | + </button> |
| 121 | + </div> |
| 122 | + <div class="flex-initial max-w-md"> |
| 123 | + <p class="text-m"> |
| 124 | + We’ve renamed Firefox accounts to Mozilla accounts. You’ll still sign in with the same username and password, and there are no other changes to the products that you use. |
| 125 | + <a href="https://support.mozilla.org/kb/firefox-accounts-renamed-mozilla-accounts">Learn more</a> |
| 126 | + </p> |
| 127 | + </div> |
| 128 | + </div> |
| 129 | + </div> |
| 130 | + </div> |
| 131 | + </div> |
| 132 | + |
101 | 133 | <div class="card">
|
102 | 134 | <a href="https://mozilla.org" class="logo" target="_blank"><img alt="Mozilla" src="{{{ cdn }}}/images/mozilla.svg" /></a>
|
103 | 135 | <noscript><p>This login form requires JavaScript to work, please enable it to log in.</p></noscript>
|
|
117 | 149 | <input type="submit" class="button button--full-width" id="enter-initial" value="Enter" />
|
118 | 150 | <hr>
|
119 | 151 | <ul class="login-options list list--plain">
|
120 |
| - <li data-optional-login-method="firefoxaccounts"> |
| 152 | + <li data-optional-login-method="firefoxaccounts" id="firefoxaccounts"> |
121 | 153 | <button class="button button--full-width button--social button--secondary" type="button" data-handler="authorise-firefoxaccounts">
|
122 | 154 | <img class="icon" src="{{{ cdn }}}/images/firefox.svg" alt="">
|
123 | 155 | <span>Log in with Firefox</span>
|
124 | 156 | </button>
|
125 | 157 | </li>
|
| 158 | + <li data-optional-login-method="firefoxaccounts" id="mozillaaccounts" data-decorator="show-mozilla-accounts" hidden> |
| 159 | + <button class="button button--full-width button--social button--secondary" type="button" data-handler="authorise-firefoxaccounts"> |
| 160 | + <img class="icon" src="{{{ cdn }}}/images/m.svg" alt=""> |
| 161 | + <span>Sign in with Mozilla</span> |
| 162 | + </button> |
| 163 | + </li> |
126 | 164 | <li data-optional-login-method="github">
|
127 | 165 | <button class="button button--github button--full-width button--social button--secondary" type="button" data-handler="authorise-github">
|
128 | 166 | <img class="icon icon-default" src="{{{ cdn }}}/images/github.svg" alt="">
|
|
156 | 194 | <input type="submit" class="button button--full-width" id="enter-initial-signup" value="Enter" />
|
157 | 195 | <hr>
|
158 | 196 | <ul class="login-options list list--plain">
|
159 |
| - <li data-optional-login-method="firefoxaccounts"> |
| 197 | + <li data-optional-login-method="firefoxaccounts" id="firefoxaccounts"> |
160 | 198 | <button class="button button--full-width button--social button--secondary" type="button" data-handler="authorise-firefoxaccounts">
|
161 | 199 | <img class="icon" src="{{{ cdn }}}/images/firefox.svg" alt="">
|
162 | 200 | <span>Continue with Firefox</span>
|
163 | 201 | </button>
|
| 202 | + <li data-optional-login-method="firefoxaccounts" id="mozillaaccounts" data-decorator="show-mozilla-accounts"> |
| 203 | + <button class="button button--full-width button--social button--secondary" type="button" data-handler="authorise-firefoxaccounts"> |
| 204 | + <img class="icon" src="{{{ cdn }}}/images/m.svg" alt=""> |
| 205 | + <span>Continue with Mozilla</span> |
| 206 | + </button> |
164 | 207 | </li>
|
165 | 208 | <li data-optional-login-method="github">
|
166 | 209 | <button class="button button--github button--full-width button--social button--secondary" type="button" data-handler="authorise-github">
|
|
205 | 248 | <a href="https://wiki.mozilla.org/IAM/Frequently_asked_questions#Q:_Why_do_you_support_email_login_.28.22passwordless.22.29_if_it.27s_less_safe_than_other_methods.3F" class="button button--text-only button--unpadded" target="_blank">Why an email?</a>
|
206 | 249 | <hr>
|
207 | 250 | <ul class="login-options list list--plain">
|
208 |
| - <li data-optional-login-method="firefoxaccounts"> |
| 251 | + <li data-optional-login-method="firefoxaccounts" id="firefoxaccounts"> |
209 | 252 | <button class="button button--full-width button--social button--secondary" type="button" data-handler="authorise-firefoxaccounts">
|
210 | 253 | <img class="icon" src="{{{ cdn }}}/images/firefox.svg" alt="">
|
211 | 254 | <span>Continue with Firefox</span>
|
212 | 255 | </button>
|
213 | 256 | </li>
|
| 257 | + <li data-optional-login-method="firefoxaccounts" id="mozillaccounts" data-decorator="show-mozilla-accounts"> |
| 258 | + <button class="button button--full-width button--social button--secondary" type="button" data-handler="authorise-firefoxaccounts"> |
| 259 | + <img class="icon" src="{{{ cdn }}}/images/m.svg" alt=""> |
| 260 | + <span>Continue with Mozilla</span> |
| 261 | + </button> |
| 262 | + </li> |
214 | 263 | <li data-optional-login-method="github">
|
215 | 264 | <button class="button button--github button--full-width button--social button--secondary" type="button" data-handler="authorise-github">
|
216 | 265 | <img class="icon icon-default" src="{{{ cdn }}}/images/github.svg" alt="">
|
@@ -302,7 +351,8 @@ <h2 class="card__heading card__heading--iconless">Auto-login settings</h2>
|
302 | 351 | "autologin": "{{{ features.autologin }}}",
|
303 | 352 | "iam_api_lookup": "{{{ features.iam_api_lookup }}}",
|
304 | 353 | "maintenance_mode": "{{{ features.maintenance_mode }}}",
|
305 |
| - "mozilla_accounts_banner_pre": "{{{ features.mozilla_accounts_banner_pre }}}" |
| 354 | + "mozilla_accounts_banner_pre": "{{{ features.mozilla_accounts_banner_pre }}}", |
| 355 | + "mozilla_accounts_banner_post": "{{{ features.mozilla_accounts_banner_post }}}" |
306 | 356 | },
|
307 | 357 | "supportedLoginMethods": "{{{ supportedLoginMethods }}}",
|
308 | 358 | "logout_url": "{{{ logout_url }}}",
|
|
0 commit comments