From a16a22e2e11c758103c851df9c8d03f580fab29e Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Sat, 7 Apr 2018 19:58:23 -0400 Subject: [PATCH] Modifications to welcome view, smoothing welcome transitions. Disabled clouds on welcome.ejs. Added some welcome text to replace the lorem ipsum. The alignment was also changed from center to justify, to make the UI look sharper. Transitions between each view was changed from 250ms to 500ms. Removed some testing code from login.ejs. --- app/assets/css/launcher.css | 13 ++++++++++++- app/login.ejs | 14 ++++++-------- app/welcome.ejs | 12 +++++++----- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css index 246c3731..41238f95 100644 --- a/app/assets/css/launcher.css +++ b/app/assets/css/launcher.css @@ -137,6 +137,7 @@ p { position: relative; } +/* .cloudDiv { position: absolute; height: 100%; @@ -171,6 +172,7 @@ p { background-position: 230%; } } +*/ #welcomeImageSeal { border-radius: 50%; @@ -179,7 +181,7 @@ p { height: 125px; width: 125px; box-shadow: 0px 0px 10px 0px rgb(0, 0, 0); - margin-bottom: 10%; + margin-bottom: 5%; margin-top: 10%; } @@ -194,6 +196,15 @@ p { } #welcomeDescription { + font-family: 'Avenir Book'; + text-align: justify; + color: white; + font-size: 14px; + font-weight: 100; + text-shadow: rgba(255, 255, 255, 0.75) 0px 0px 20px +} + +#welcomeDescCTA { font-family: 'Avenir Book'; text-align: center; color: white; diff --git a/app/login.ejs b/app/login.ejs index 25431e9a..a420ee9a 100644 --- a/app/login.ejs +++ b/app/login.ejs @@ -221,7 +221,12 @@ loginButton.innerHTML = loginButton.innerHTML.replace('LOGGING IN', 'SUCCESS') $('.circle-loader').toggleClass('load-complete') $('.checkmark').toggle() - console.log(value) + //console.log(value) + setTimeout(() => { + $('#loginContainer').fadeOut(500, () => { + $('#landingContainer').fadeIn(500) + }) + }, 1000) }).catch((err) => { loginLoading(false) const errF = resolveError(err) @@ -234,13 +239,6 @@ console.log(err) }) - // Temp for debugging, use procedure with real code. - setTimeout(() => { - loginButton.innerHTML = loginButton.innerHTML.replace('LOGGING IN', 'SUCCESS') - $('.circle-loader').toggleClass('load-complete') - $('.checkmark').toggle() - }, 2500) - }) diff --git a/app/welcome.ejs b/app/welcome.ejs index 45d4498b..96cc4691 100644 --- a/app/welcome.ejs +++ b/app/welcome.ejs @@ -1,12 +1,14 @@