From b51dc753b763410feb9794381a4cc1d2088bd2da Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 29 May 2018 00:51:51 -0400 Subject: [PATCH] Login fixed, color scheme fixed, vuex still has an issue --- src/css/themes/common.variables.styl | 8 +++--- src/layouts/default.vue | 25 ++++++++--------- src/pages/hello.vue | 40 +++++++++++++++------------- src/pages/login.vue | 31 ++++++++++----------- src/router/routes.js | 2 +- src/store/index.js | 18 ++++++++++--- 6 files changed, 71 insertions(+), 53 deletions(-) diff --git a/src/css/themes/common.variables.styl b/src/css/themes/common.variables.styl index 4d659aa..6767aa0 100644 --- a/src/css/themes/common.variables.styl +++ b/src/css/themes/common.variables.styl @@ -14,12 +14,14 @@ // It's highly recommended to change the default colors // to match your app's branding. -$primary = #027be3 -$secondary = #26A69A -$tertiary = #555 +$primary = #435058 +$secondary = #7FB087 +$tertiary = #E1C46E $neutral = #E0E1E2 $positive = #21BA45 $negative = #DB2828 $info = #31CCEC $warning = #F2C037 + +$light = #F5F4F1 diff --git a/src/layouts/default.vue b/src/layouts/default.vue index 028cf7a..fa91a37 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -17,7 +17,7 @@ Ashtag - Help - + Logout @@ -71,17 +71,18 @@ export default { }, methods: { logOut() { - auth.signOut().then(() => { + auth.logout() + // auth.signOut().then(() => { // Sign-out successful. - console.log("I logged out"); + console.log("I logged out") + this.$store.dispatch('resetState', this.$store.state) // window.location.reload() - }) - .catch(function(error) { - console.log(error) - window.location.reload() - }); - // auth.logout() - this.$store.dispatch('resetState', this.$store.state) + /* }) + .catch(function(error) { + console.log(error) + //window.location.reload() + });*/ + // auth.logout() }, help() { this.$router.push('/identification') @@ -113,7 +114,7 @@ export default { header margin 0 height 10px - background-color $tertiary + background-color $primary .bg-primary background-color $primary diff --git a/src/pages/hello.vue b/src/pages/hello.vue index 340a222..16a1cef 100644 --- a/src/pages/hello.vue +++ b/src/pages/hello.vue @@ -1,21 +1,23 @@