Commit b9974523 authored by quentin.vrel's avatar quentin.vrel

redirection from login to home

parent 7e9e3db3
<template>
<div class="login-page">
<page-title pagetitle="Se Connecter"/>
<form action="#">
<text-input id="mail" label="Email"/>
<pwd-input id="password" label="Mot de passe"/>
<checkbox-input id="remember" label="Se souvenir de moi"/>
<form action="#" @submit.prevent="onSubmit">
<div class="form-content">
<text-input id="mail" label="Email"/>
<pwd-input id="password" label="Mot de passe"/>
<checkbox-input id="remember" label="Se souvenir de moi"/>
</div>
<svg-button svg="/icons/back.svg"/>
<svg-button svg="/icons/validate.svg"/>
</form>
<svg-button svg="/icons/back.svg"/>
<svg-button svg="/icons/validate.svg"/>
</div>
</template>
......@@ -27,6 +29,11 @@ export default {
TextInput,
PwdInput,
CheckboxInput
},
methods: {
onSubmit: function(){
this.$router.push('Home');
}
}
}
</script>
......@@ -37,7 +44,7 @@ export default {
position: relative;
}
.login-page > form{
.login-page .form-content{
flex-direction: column;
display: flex;
width: 900px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment