From 9b618cc20fe7afd6d476f3bd6fe189dfb0a310bf Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Thu, 31 Jul 2014 14:51:26 +0200 Subject: [PATCH] [WO-524] Cleanup login ui * Make design more mobile friendly * Make label for terms agreement clickable (easier for touch) * Button width is 100% for mobile * Let user import key file as alternative to sync * Make key import option more clear login-initial * Make whiteout logo smaller in mobile mode --- src/sass/views/_login.scss | 31 +++++++++++--------------- src/tpl/login-initial.html | 12 +++++----- src/tpl/login-privatekey-download.html | 15 +++++++++---- 3 files changed, 31 insertions(+), 27 deletions(-) diff --git a/src/sass/views/_login.scss b/src/sass/views/_login.scss index 682eb24..63988b9 100644 --- a/src/sass/views/_login.scss +++ b/src/sass/views/_login.scss @@ -9,20 +9,15 @@ .logo { max-width: 700px; - margin: 75px auto; + margin: 45px auto; img { display: block; - max-width: 100%; + max-width: 50%; width: 320px; - margin-left: auto; - margin-right: auto; } @include respond-to(desktop) { - margin-top: 135px; - img { - margin-left: 0; - } + margin: 135px auto 75px; } } @@ -39,6 +34,16 @@ color: $color-blue; } + button, a.btn { + color: $btn-color; + margin-right: 10px; + margin-bottom: 10px; + + @include respond-to(mobile) { + width: 100%; + } + } + p, label { line-height: 150%; } @@ -90,13 +95,6 @@ color: green; } - .opt-in-terms { - .checkbox-wrapper { - margin-top: 0; - float: left; - } - } - .popover-info { display: none; // hide on mobile } @@ -119,9 +117,6 @@ .view-login-initial { .content { - button { - margin-right: 10px; - } } } diff --git a/src/tpl/login-initial.html b/src/tpl/login-initial.html index 1e20114..de83e3e 100644 --- a/src/tpl/login-initial.html +++ b/src/tpl/login-initial.html @@ -6,7 +6,8 @@
-

Generate PGP key. You can set a passphrase to protect your key on disk. This must be entered everytime you start the app. For no passphrase just press continue.

Alternatively you can also import an existing PGP key.

+

PGP key. You can either import an existing PGP key or generate a new one.

+

If you want to generate a new key, you can set a passphrase to protect your key on disk.


@@ -15,13 +16,14 @@
-
-
-
I agree to the Whiteout Networks Terms of Service and have read the Privacy Policy.
+
+ +
- + +
diff --git a/src/tpl/login-privatekey-download.html b/src/tpl/login-privatekey-download.html index 1c8266e..5ab09af 100644 --- a/src/tpl/login-privatekey-download.html +++ b/src/tpl/login-privatekey-download.html @@ -6,13 +6,20 @@
-

Key sync. We have sent you an email containing a recovery token. Please copy and paste the identifier below.

+

Key sync. We have sent you an email containing a recovery token. Please copy and paste the token below to download your key.

+

You can also just import the key file manually e.g. if you're on a device with USB access.

+ +
+ Import key file + +

Key sync. Please enter the keychain code you wrote down during sync setup.

+ - - - @@ -20,10 +27,10 @@ - -
-
- +
+ +