diff --git a/.env.development b/.env.development index 180af45..acbd665 100644 --- a/.env.development +++ b/.env.development @@ -12,3 +12,4 @@ TEST_EMAIL='paolo.arena77@gmail.com' TEST_USERNAME='paoloar77' TEST_PASSWORD='mypassword@1A' PUBLICKEY_PUSH='BGxRrFWnPoa_ImUaWXmeEOFVI9VNKVKaAPsvsM1XY6wn24yxp9MyOQ4crNYCJKxSXV65Y1GblW5_VLoamedcZ1I' +IN_CONSTRUCTION='0' diff --git a/src/assets/i18n.js b/src/assets/i18n.js index ce83091..e4ae674 100644 --- a/src/assets/i18n.js +++ b/src/assets/i18n.js @@ -68,6 +68,7 @@ const messages = { richiesto: 'Campo Richiesto', email: 'Email', username : 'Nome Utente', + username_login : 'Nome Utente o email', password: 'Password', repeatPassword: 'Ripeti password', terms: "Accetto i termini e le condizioni", @@ -162,8 +163,8 @@ const messages = { }, pages: { home: 'Principal', - SignUp: 'Registrarte', - SignIn: 'Login', + SignUp: 'Nueva Cuenta', + SignIn: 'Entrar', vreg: 'Verifica Reg', Test: 'Test', Category: 'Categorías', @@ -205,6 +206,7 @@ const messages = { richiesto: 'Campo requerido', email: 'Email', username : 'Nombre usuario', + username_login : 'Nombre usuario o email', password: 'contraseña', repeatPassword: 'Repetir contraseña', terms: "Acepto los términos y condiciones", @@ -229,8 +231,8 @@ const messages = { }, login:{ incorso: 'Login en curso', - enter: 'Login', - errato: "Nombre de usuario o contraseña incorrectos. inténtelo de nuevo", + enter: 'Entrar', + errato: "Nombre de usuario, correo o contraseña incorrectos. inténtelo de nuevo", completato: 'Login realizado!', }, reset: { @@ -341,6 +343,7 @@ const messages = { incorso: 'Registration please wait...', richiesto: 'Field Required', email: 'Email', + username_login : 'Username or email', username : 'Username', password: 'Password', repeatPassword: 'Repeat password', diff --git a/src/layouts/drawer/drawer.ts b/src/layouts/drawer/drawer.ts index 3757172..3e5cecb 100644 --- a/src/layouts/drawer/drawer.ts +++ b/src/layouts/drawer/drawer.ts @@ -46,14 +46,14 @@ export default class Drawer extends Vue { routes2: listatodo }, { route: '/category', faIcon: 'fa fa-list-alt', materialIcon: 'category', name: 'pages.Category' }, - { route: '/signup', faIcon: 'fa fa-registered', materialIcon: 'home', name: 'pages.SignUp' }, + // { route: '/signup', faIcon: 'fa fa-registered', materialIcon: 'home', name: 'pages.SignUp' }, { route: '/admin/cfgserv', faIcon: 'fa fa-database', materialIcon: 'admin', name: 'pages.Admin' }, { route: '/admin/testp1/par1', faIcon: 'fa fa-database', materialIcon: 'admin', name: 'pages.Test1' }, { route: '/admin/testp1/par2', faIcon: 'fa fa-database', materialIcon: 'admin', name: 'pages.Test2' }, - { route: '/signin', faIcon: 'fa fa-anchor', materialIcon: 'home', name: 'pages.SignIn' }, + // { route: '/signin', faIcon: 'fa fa-anchor', materialIcon: 'home', name: 'pages.SignIn' }, /* {route: '/vreg?idlink=aaa', faIcon: 'fa fa-login', materialIcon: 'login', name: 'pages.vreg'},*/ ], - show: true, + show: true } } } else { @@ -77,9 +77,9 @@ export default class Drawer extends Vue { route: '/todo', faIcon: 'fa fa-list-alt', materialIcon: 'todo', name: 'pages.Todo', routes2: listatodo }, - { route: '/category', faIcon: 'fa fa-list-alt', materialIcon: 'category', name: 'pages.Category' }, - { route: '/signup', faIcon: 'fa fa-registered', materialIcon: 'home', name: 'pages.SignUp' }, - { route: '/signin', faIcon: 'fa fa-anchor', materialIcon: 'home', name: 'pages.SignIn' }, + { route: '/category', faIcon: 'fa fa-list-alt', materialIcon: 'category', name: 'pages.Category' } + // { route: '/signup', faIcon: 'fa fa-registered', materialIcon: 'home', name: 'pages.SignUp' }, + // { route: '/signin', faIcon: 'fa fa-anchor', materialIcon: 'home', name: 'pages.SignIn' }, /* {route: '/vreg?idlink=aaa', faIcon: 'fa fa-login', materialIcon: 'login', name: 'pages.vreg'},*/ ], show: true, @@ -112,8 +112,16 @@ export default class Drawer extends Vue { logoutHandler() { UserStore.actions.logout() - this.$router.push('/signin') - this.$q.notify(this.$t('logout.uscito')) + .then(() => { + this.$router.replace('/logout') + + const mythis = this + setTimeout(function () { + mythis.$router.replace('/') + }, 1000) + + this.$q.notify(this.$t('logout.uscito')) + }) } } diff --git a/src/root/home/home.scss b/src/root/home/home.scss index 9d3fbd4..602c750 100644 --- a/src/root/home/home.scss +++ b/src/root/home/home.scss @@ -40,7 +40,11 @@ } .landing__hero { - min-height: 100vh + min-height: 90vh +} + +.landing__header { + height: 18vh } .landing__arrow { @@ -77,8 +81,8 @@ .landing__footer { background: -webkit-gradient(linear, left top, left bottom, color-stop(65%, rgba(0, 0, 0, .1)), to(#000)); background: linear-gradient(180deg, rgba(0, 0, 0, .1) 65%, #000); - padding-top: 72px !important; - padding-bottom: 72px !important + //padding-top: 72px !important; + //padding-bottom: 72px !important } .landing__footer .doc-link { @@ -96,25 +100,27 @@ background-image: url(https://cdn.quasar-framework.org/img/landing_first_section.png) !important } - @media (max-width: 718px) { .landing__hero { text-align: center } + .landing__header { + height: 9vh + } .landing__hero .text-h1 { font-size: 3rem; line-height: 3.05rem; - margin-bottom: 24px + //margin-bottom: 24px } .landing > section.padding { - padding-top: 90px; - padding-bottom: 90px + //padding-top: 90px; + //padding-bottom: 90px } .landing .feature-item { text-align: center } .landing__hero-content { - padding-bottom: 180px + //padding-bottom: 180px } .landing__hero-btns { -webkit-box-pack: center; @@ -131,7 +137,7 @@ body.mobile .landing:before { content: ""; position: fixed; top: 0; - height: 100vh; + height: 90vh; left: 0; right: 0; bottom: 0; @@ -167,6 +173,10 @@ body.mobile .landing:before { justify-content: space-between; } +.btn-start { + margin: 5px; +} + .shadow { //color: white; text-shadow: 2px 2px 4px #000000; diff --git a/src/root/home/home.ts b/src/root/home/home.ts index fb11f6d..4579132 100644 --- a/src/root/home/home.ts +++ b/src/root/home/home.ts @@ -1,6 +1,6 @@ import Vue from 'vue' import { Component } from 'vue-property-decorator' -import { GlobalStore } from '@store' +import { GlobalStore, UserStore } from '@store' import { Logo } from '../../components/logo' @@ -30,6 +30,10 @@ export default class Home extends Vue { GlobalStore.actions.prova() } + get isLogged(){ + return UserStore.state.isLogged + } + meta() { return { @@ -82,6 +86,10 @@ export default class Home extends Vue { } + get isInCostruction () { + return process.env.IN_CONSTRUCTION === '1' + } + getPermission() { return Notification.permission } @@ -90,6 +98,14 @@ export default class Home extends Vue { return (!('serviceWorker' in navigator)) } + PagLogin () { + this.$router.replace('/signin') + } + + PagReg () { + this.$router.replace('/signup') + } + displayConfirmNotification() { let options = null if ('serviceWorker' in navigator) { diff --git a/src/root/home/home.vue b/src/root/home/home.vue index b15c6f3..a9f8fe5 100644 --- a/src/root/home/home.vue +++ b/src/root/home/home.vue @@ -3,7 +3,7 @@
-
+
@@ -29,24 +29,34 @@
- + Canale Telegram: + + + + --> -
+
{{$t('msg.underconstruction')}} +
+
+
+
+ + {{$t('login.enter')}} + + + {{$t('reg.submit')}} + +
-
+ :float-label="$t('reg.username_login')"> - {{$t('reg.submit')}} +
+ {{$t('reg.submit')}} +