From 4820f175ddcac074c5afaab0d5ba9f48ac6a9fe4 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 1 Mar 2019 12:56:10 -0800 Subject: [PATCH] updated signin dialog --- app/ui/copyDialog.js | 2 +- app/ui/modal.js | 8 ++-- app/ui/okDialog.js | 4 +- app/ui/signupDialog.js | 77 +++++++++++++++++++++-------------- public/locales/en-US/send.ftl | 2 +- 5 files changed, 55 insertions(+), 38 deletions(-) diff --git a/app/ui/copyDialog.js b/app/ui/copyDialog.js index 7201fd97..08414520 100644 --- a/app/ui/copyDialog.js +++ b/app/ui/copyDialog.js @@ -5,7 +5,7 @@ module.exports = function(name, url) { return function(state, emit, close) { return html`

${state.translate('notifyUploadEncryptDone')} diff --git a/app/ui/modal.js b/app/ui/modal.js index 99d558b3..d5beb6be 100644 --- a/app/ui/modal.js +++ b/app/ui/modal.js @@ -3,11 +3,13 @@ const html = require('choo/html'); module.exports = function(state, emit) { return html` -
-
+
+
${state.modal(state, emit, close)}
diff --git a/app/ui/okDialog.js b/app/ui/okDialog.js index 2e945d4b..27ab1bb3 100644 --- a/app/ui/okDialog.js +++ b/app/ui/okDialog.js @@ -3,8 +3,8 @@ const html = require('choo/html'); module.exports = function(message) { return function(state, emit, close) { return html` - -
${message}
+ +

${message}

- `; + + +
+

${state.translate('accountBenefitTitle')}

+
    +
  • + ${state.translate('accountBenefitLargeFiles', { + size: bytes(state.LIMITS.MAX_FILE_SIZE) + })} +
  • +
  • ${state.translate('accountBenefitExpiry')}
  • +
  • + ${state.translate('accountBenefitExpiryTwo', { count: DAYS })} +
  • +
  • ${state.translate('accountBenefitSync')}
  • +
+
+
+
+ + +
+ +
+
+ `; function emailish(str) { if (!str) { diff --git a/public/locales/en-US/send.ftl b/public/locales/en-US/send.ftl index 724a3d0a..ec569851 100644 --- a/public/locales/en-US/send.ftl +++ b/public/locales/en-US/send.ftl @@ -169,7 +169,7 @@ signInContinueButton = Continue signInMenuOption = Sign in/up signInNextOption = Continue 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 } accountBenefitExpiry = Share files with more people accountBenefitExpiryTwo = { $count ->