Skip to content

Commit

Permalink
criando tela de login
Browse files Browse the repository at this point in the history
  • Loading branch information
beatriz-alcantara committed Sep 5, 2020
1 parent f90ab32 commit 8984642
Show file tree
Hide file tree
Showing 15 changed files with 172 additions and 108 deletions.
52 changes: 0 additions & 52 deletions src/components/SignUpFirst.vue

This file was deleted.

9 changes: 8 additions & 1 deletion src/css/app.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@
border-radius: 0 0 50% 50%

.q-toolbar
min-height: 80px
min-height: 80px

.logo-ada
position: relative
top: 24%

.container-logo-bmg
height: 50px !important
6 changes: 1 addition & 5 deletions src/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
this.$router.push('/login')
},
goSignUp () {
this.$router.push('/cadastrar')
this.$router.push('/cadastrar-primeira-etapa')
}
}
}
Expand All @@ -35,10 +35,6 @@ export default {
/* .borda {
border: 5px solid red;
} */
.logo-ada {
position: relative;
top: 24%;
}
.btn {
height: 35px;
padding: 0 20%;
Expand Down
48 changes: 45 additions & 3 deletions src/pages/Login.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,55 @@
<template>
<q-page></q-page>
<q-page class="container">
<div class="row justify-center">
<img class="logo-ada" src="../../public/ADA2.png" height="100"/>
</div>
<div class="row align-data">
<div class="row col-12">
<div class="text-secondary text-body1 text-weight-bold"> Oi, Fulaninha </div>
</div>
<div class="row col-12">
<span class="text-secondary text-body1 text-weight-bold"> Conta: 111111-1 </span>
</div>
</div>
<div class="row col-8 justify-center">
<q-input dark filled dense bg-color="secondary" :type="isPwd ? 'password' : 'text'">
<template v-slot:append>
<q-icon
:name="isPwd ? 'visibility_off' : 'visibility'"
class="cursor-pointer"
color="white"
@click="isPwd = !isPwd"
/>
</template>
</q-input>
<span class="text-secondary"> Esqueci minha senha </span>
</div>
<div class="row col-12 justify-center">
<q-btn label="entrar" color="secondary" dense class="btn"/>
</div>
<div class="row col-12 justify-center container-logo-bmg">
<img src="../../public/banco-bmg-logo.png" height="35px"/>
</div>
</q-page>
</template>

<script>
export default {
data () {
return {
isPwd: true
}
}
}
</script>

<style>
.btn {
height: 35px;
padding: 0 11%;
margin: 15% 0 10% 0;
}
.align-data {
padding: 10% 0 18% 20%
}
</style>
39 changes: 0 additions & 39 deletions src/pages/SignUp.vue

This file was deleted.

60 changes: 60 additions & 0 deletions src/pages/SignUpFirst.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<template>
<q-page class="row justify-center">
<div class="row justify-center col-12">
<span class="text-h6 text-secondary"> ABRA SUA CONTA </span>
</div>
<div class="row justify-center col-12">
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> Nome Completo </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> E-mail </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> Senha </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> Insira novamente sua senha </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> CPF </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> RG </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
</div>
<sign-up-second ref="SignUpSecond"/>
<div class="row col-8 borda justify-center q-pt-lg">
<q-btn label="avançar" color="secondary" dense class="q-px-lg btn" @click="next()"/>
</div>
</q-page>
</template>

<script>
import SignUpSecond from '../components/SignUpSecond'
export default {
components: {
SignUpSecond
},
data () {
return {
labelButton: 'Avançar'
}
},
methods: {
next () {
this.$router.push('/cadastrar-segunda-etapa')
}
}
}
</script>

<style>
</style>
41 changes: 41 additions & 0 deletions src/pages/SignUpSecond.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<template>
<q-page class="row justify-center">
<div class="row justify-center col-12">
<span class="text-h6 text-secondary"> ABRA SUA CONTA </span>
</div>
<div class="row justify-center col-12">
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> Gênero </span>
<q-radio dense color="secondary" label="Feminino" class="col-12 text-secondary"/>
<q-radio dense color="secondary" label="Outros" class="col-6 text-secondary"/>
<q-input class="col-6 q-mb-md" color="secondary" dense label="Qual"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> Data de nascimento </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> Celular </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center">
<span class="col-12 text-secondary"> Telefone </span>
<q-input dense dark bg-color="secondary" class="col-12"/>
</div>
<div class="row col-8 justify-center q-pt-sm">
<q-radio dense color="secondary" label="Li e concordo com os termos de uso e políticas de privacidade." class="col-12"/>
</div>
</div>
<div class="row col-8 borda justify-center q-pt-lg">
<q-btn label="criar Conta" color="secondary" dense class="q-px-lg btn" @click="createCount()"/>
</div>
</q-page>
</template>

<script>
export default {
methods: {
createCount () {}
}
}
</script>
3 changes: 2 additions & 1 deletion src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const routes = [
component: () => import('layouts/MainLayout.vue'),
children: [
{ path: '', component: () => import('pages/Index.vue') },
{ path: 'cadastrar', component: () => import('pages/SignUp.vue') },
{ path: 'cadastrar-primeira-etapa', component: () => import('pages/SignUpFirst.vue') },
{ path: 'cadastrar-segunda-etapa', component: () => import('pages/SignUpSecond.vue') },
{ path: 'login', component: () => import('pages/Login.vue') }
]
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions src/store/User/state.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default function () {
return {
form: {
name: '',
email: '',
cpf: '',
rg: '',
genre: '',
birthDate: '',
cellphone: ''
}
}
}
4 changes: 2 additions & 2 deletions src/store/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import Vuex from 'vuex'

// import example from './module-example'
import User from './User'

Vue.use(Vuex)

Expand All @@ -17,7 +17,7 @@ Vue.use(Vuex)
export default function (/* { ssrContext } */) {
const Store = new Vuex.Store({
modules: {
// example
User
},

// enable strict mode (adds overhead!)
Expand Down
5 changes: 0 additions & 5 deletions src/store/module-example/state.js

This file was deleted.

0 comments on commit 8984642

Please sign in to comment.