From d3380d4930cfe5d57792061893bf0780c58e4341 Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 29 Jun 2018 17:26:36 -0700 Subject: [PATCH] improved login screen. --- resources/public/index.html | 11 +++++++++++ src/cljs/auto_ap/views/pages/login.cljs | 17 +++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/resources/public/index.html b/resources/public/index.html index 11b3b8ed..efc56e57 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -38,6 +38,14 @@ } } + @keyframes slideInFromBelow { + from { + -webkit-transform: translateY(25%); + transform: translateY(25%); + opacity: 0; + } + } + @keyframes moveToTop { from { } to { -webkit-transform: translateY(-100%); transform: @@ -87,6 +95,9 @@ color: #2EB398; border: 3px solid #2EB398; } + .slideInFromBelow { + animation: slideInFromBelow 1.5s ease both; + } .modal { animation: appear .7s ease both; diff --git a/src/cljs/auto_ap/views/pages/login.cljs b/src/cljs/auto_ap/views/pages/login.cljs index 66c6788e..ccf09fcd 100644 --- a/src/cljs/auto_ap/views/pages/login.cljs +++ b/src/cljs/auto_ap/views/pages/login.cljs @@ -10,7 +10,16 @@ [bidi.bidi :as bidi])) (defn login-page [] - [:div - [:h1.title "Login"] - [:h2.subtitle "To get started, " - [:a {:href login-url} "Login with Google"]]]) + [:div.container + [:section.is-fullheight.hero + [:div.hero-body + [:div.container + [:div.column.is-4.is-offset-4.has-text-centered + [:h1.title "Login"] + [:div.box.slideInFromBelow + + [:img {:src "http://www.integreatconsult.com/wp-content/uploads/2016/11/logo.png"}] + [:div + [:a.button.is-large.is-primary {:href login-url} "Login with Google"]]] + [:p.has-text-gray + "Copyright Integreat 2018"]]]]]])