updated signin dialog
This commit is contained in:
parent
1b9182aac7
commit
4820f175dd
|
@ -5,7 +5,7 @@ module.exports = function(name, url) {
|
||||||
return function(state, emit, close) {
|
return function(state, emit, close) {
|
||||||
return html`
|
return html`
|
||||||
<send-copy-dialog
|
<send-copy-dialog
|
||||||
class="flex flex-col items-center text-center p-4 max-w-sm"
|
class="flex flex-col items-center text-center p-4 max-w-sm m-auto"
|
||||||
>
|
>
|
||||||
<h1 class="font-bold my-4">
|
<h1 class="font-bold my-4">
|
||||||
${state.translate('notifyUploadEncryptDone')}
|
${state.translate('notifyUploadEncryptDone')}
|
||||||
|
|
|
@ -3,11 +3,13 @@ const html = require('choo/html');
|
||||||
module.exports = function(state, emit) {
|
module.exports = function(state, emit) {
|
||||||
return html`
|
return html`
|
||||||
<send-modal
|
<send-modal
|
||||||
class="absolute pin flex items-center justify-center overflow-hidden z-40 bg-white md:my-8"
|
class="absolute pin flex items-center justify-center overflow-hidden z-40 bg-white md:rounded-lg md:my-8"
|
||||||
onclick="${close}"
|
onclick="${close}"
|
||||||
>
|
>
|
||||||
<div class="h-full max-h-screen absolute pin-t flex items-center">
|
<div
|
||||||
<div class="" onclick="${e => e.stopPropagation()}">
|
class="h-full w-full max-h-screen absolute pin-t flex items-center justify-center"
|
||||||
|
>
|
||||||
|
<div class="w-full" onclick="${e => e.stopPropagation()}">
|
||||||
${state.modal(state, emit, close)}
|
${state.modal(state, emit, close)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,8 +3,8 @@ const html = require('choo/html');
|
||||||
module.exports = function(message) {
|
module.exports = function(message) {
|
||||||
return function(state, emit, close) {
|
return function(state, emit, close) {
|
||||||
return html`
|
return html`
|
||||||
<send-ok-dialog class="flex flex-col max-w-xs p-4">
|
<send-ok-dialog class="flex flex-col max-w-sm p-4 m-auto">
|
||||||
<div class="text-center m-8 leading-normal">${message}</div>
|
<h2 class="text-center m-8 leading-normal">${message}</h2>
|
||||||
<button
|
<button
|
||||||
class="btn rounded-lg w-full flex-no-shrink"
|
class="btn rounded-lg w-full flex-no-shrink"
|
||||||
onclick="${close}"
|
onclick="${close}"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const html = require('choo/html');
|
const html = require('choo/html');
|
||||||
|
const assets = require('../../common/assets');
|
||||||
const { bytes, platform } = require('../utils');
|
const { bytes, platform } = require('../utils');
|
||||||
const { canceledSignup, submittedSignup } = require('../metrics');
|
const { canceledSignup, submittedSignup } = require('../metrics');
|
||||||
|
|
||||||
|
@ -8,37 +9,51 @@ module.exports = function(trigger) {
|
||||||
const hidden = platform() === 'android' ? 'hidden' : '';
|
const hidden = platform() === 'android' ? 'hidden' : '';
|
||||||
let submitting = false;
|
let submitting = false;
|
||||||
return html`
|
return html`
|
||||||
<send-signup-dialog class="flex flex-col p-4">
|
<send-signup-dialog
|
||||||
<h2 class="font-bold">${state.translate('accountBenefitTitle')}</h3>
|
class="flex flex-col md:flex-row justify-center px-8 md:px-24 w-full h-full"
|
||||||
<ul class="my-2 leading-normal list-reset text-lg mb-8 mt-4">
|
>
|
||||||
<li>${state.translate('accountBenefitLargeFiles', {
|
<img src="${assets.get('firefox_logo-only.svg')}" class="h-16 mb-4" />
|
||||||
|
<section class="flex flex-col flex-no-shrink self-center mx-6 max-w-xs">
|
||||||
|
<h1 class="font-bold">${state.translate('accountBenefitTitle')}</h1>
|
||||||
|
<ul class="leading-normal text-grey-darkest my-2 mb-8 mt-4 pl-4">
|
||||||
|
<li>
|
||||||
|
${state.translate('accountBenefitLargeFiles', {
|
||||||
size: bytes(state.LIMITS.MAX_FILE_SIZE)
|
size: bytes(state.LIMITS.MAX_FILE_SIZE)
|
||||||
})}</li>
|
})}
|
||||||
|
</li>
|
||||||
<li>${state.translate('accountBenefitExpiry')}</li>
|
<li>${state.translate('accountBenefitExpiry')}</li>
|
||||||
<li>${state.translate('accountBenefitExpiryTwo', { count: DAYS })}</li>
|
<li>
|
||||||
|
${state.translate('accountBenefitExpiryTwo', { count: DAYS })}
|
||||||
|
</li>
|
||||||
<li>${state.translate('accountBenefitSync')}</li>
|
<li>${state.translate('accountBenefitSync')}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<form
|
</section>
|
||||||
onsubmit=${submitEmail}
|
<section class="flex flex-col flex-grow m-4">
|
||||||
data-no-csrf>
|
<form onsubmit=${submitEmail} data-no-csrf>
|
||||||
<input
|
<input
|
||||||
id="email-input"
|
id="email-input"
|
||||||
type="text"
|
type="text"
|
||||||
class="${hidden} border rounded-lg w-full px-2 py-1 h-12 mb-4 text-lg text-grey-darker leading-loose"
|
class="${hidden} border rounded-lg w-full px-2 py-1 h-12 mb-3 text-lg text-grey-darker leading-loose"
|
||||||
placeholder=${state.translate('emailEntryPlaceholder')} />
|
placeholder=${state.translate('emailEntryPlaceholder')}
|
||||||
|
/>
|
||||||
<input
|
<input
|
||||||
class="btn rounded-lg w-full flex flex-no-shrink items-center justify-center"
|
class="btn rounded-lg w-full flex flex-no-shrink items-center justify-center"
|
||||||
value="${state.translate('signInMenuOption')}"
|
value="${state.translate('signInMenuOption')}"
|
||||||
title="${state.translate('signInMenuOption')}"
|
title="${state.translate('signInMenuOption')}"
|
||||||
id="email-submit"
|
id="email-submit"
|
||||||
type="submit" />
|
type="submit"
|
||||||
|
/>
|
||||||
</form>
|
</form>
|
||||||
<button
|
<button
|
||||||
class="my-4 text-blue-dark hover:text-blue-darker focus:text-blue-darker font-medium"
|
class="my-3 text-blue-dark hover:text-blue-darker focus:text-blue-darker font-medium"
|
||||||
title="${state.translate('deletePopupCancel')}"
|
title="${state.translate('deletePopupCancel')}"
|
||||||
onclick=${cancel}>${state.translate('deletePopupCancel')}
|
onclick=${cancel}
|
||||||
|
>
|
||||||
|
${state.translate('deletePopupCancel')}
|
||||||
</button>
|
</button>
|
||||||
</send-signup-dialog>`;
|
</section>
|
||||||
|
</send-signup-dialog>
|
||||||
|
`;
|
||||||
|
|
||||||
function emailish(str) {
|
function emailish(str) {
|
||||||
if (!str) {
|
if (!str) {
|
||||||
|
|
|
@ -169,7 +169,7 @@ signInContinueButton = Continue
|
||||||
signInMenuOption = Sign in/up
|
signInMenuOption = Sign in/up
|
||||||
signInNextOption = Continue
|
signInNextOption = Continue
|
||||||
accountMenuOption = Firefox Account
|
accountMenuOption = Firefox Account
|
||||||
accountBenefitTitle = Create a Firefox Account or sign in to:
|
accountBenefitTitle = Create a Firefox Account or sign in
|
||||||
accountBenefitLargeFiles = Share files up to { $size }
|
accountBenefitLargeFiles = Share files up to { $size }
|
||||||
accountBenefitExpiry = Share files with more people
|
accountBenefitExpiry = Share files with more people
|
||||||
accountBenefitExpiryTwo = { $count ->
|
accountBenefitExpiryTwo = { $count ->
|
||||||
|
|
Loading…
Reference in New Issue