Commit 7b20f0e4 authored by thibaut-felten's avatar thibaut-felten

Login Menu

parent 5629522d
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
height: 100vh; height: 100vh;
} }
*{
box-sizing: border-box;
}
.column { .column {
flex-basis: 100%; flex-basis: 100%;
} }
...@@ -39,10 +44,10 @@ body{ ...@@ -39,10 +44,10 @@ body{
#nav a { #nav a {
font-weight: bold; font-weight: bold;
color: #2c3e50;
} }
#nav a.router-link-exact-active { a{
color: #42b983; text-decoration: none;
} }
</style> </style>
<template> <template>
<nav class="row btn-bar"> <nav class="row btn-bar">
<button class="btn-login"><v-icon scale="2" name="plus"/> S'inscrire</button>
<button class="btn-login"><v-icon scale="2" name="sign-in-alt"/> Se connecter</button> <button class="btn-login">
<router-link to="/inscription">Sign Up </router-link>
</button>
<button class="btn-login">
<router-link to="/login">Log In</router-link>
</button>
</nav> </nav>
</template> </template>
...@@ -9,18 +15,24 @@ ...@@ -9,18 +15,24 @@
<script> <script>
export default { export default {
name: 'LoginNavbar', name: 'LoginNavbar',
components: { // components: {
'v-icon': Icon // 'v-icon': Icon
} // }
} }
import 'vue-awesome/icons' // import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon' // import Icon from 'vue-awesome/components/Icon'
</script> </script>
<style scoped> <style scoped>
.btn-bar{ .btn-bar{
justify-content: flex-end; justify-content: flex-end;
padding: 0.5%;
}
a{
text-decoration: none;
color: #403d39;
} }
.btn-login{ .btn-login{
...@@ -32,6 +44,7 @@ import Icon from 'vue-awesome/components/Icon' ...@@ -32,6 +44,7 @@ import Icon from 'vue-awesome/components/Icon'
font-size:28px; font-size:28px;
padding:16px 31px; padding:16px 31px;
font-weight: bold; font-weight: bold;
margin: 1%; white-space: nowrap;
margin-left: 1%;
} }
</style> </style>
\ No newline at end of file
import Vue from 'vue' import Vue from 'vue'
import VueRouter from 'vue-router' import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
Vue.use(VueRouter) Vue.use(VueRouter)
const routes = [ const routes = [
{
path: '/',
name: 'Home',
component: Home
},
{ {
path: '/about', path: '/about',
name: 'About', name: 'About',
...@@ -19,7 +13,7 @@ const routes = [ ...@@ -19,7 +13,7 @@ const routes = [
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
}, },
{ {
path: '/accueil', path: '/',
name: 'Accueil', name: 'Accueil',
// route level code-splitting // route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route // this generates a separate chunk (about.[hash].js) for this route
...@@ -31,6 +25,11 @@ const routes = [ ...@@ -31,6 +25,11 @@ const routes = [
name: 'Inscription', name: 'Inscription',
component: () => import(/* webpackChunkName: "inscription" */ '../views/Inscription.vue') component: () => import(/* webpackChunkName: "inscription" */ '../views/Inscription.vue')
}, },
{
path: '/login',
name: 'Login',
component: () => import(/* webpackChunkName: "login" */ '../views/Login.vue')
},
] ]
const router = new VueRouter({ const router = new VueRouter({
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
} }
.play{ .play{
margin: 20%; margin: 25%;
} }
.accueil{ .accueil{
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
<label for="ConfirmPassword"> Confirmer MdP </label> <label for="ConfirmPassword"> Confirmer MdP </label>
<input type="password" name="ConfirmPassword"> <input type="password" name="ConfirmPassword">
</div> </div>
<div class="row lmargin"> <div class="row lmargin">
<button type="submit" class="btn"> Valider </button> <button type="submit" class="btn"> Valider </button>
</div> </div>
...@@ -36,7 +35,6 @@ ...@@ -36,7 +35,6 @@
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<style scoped> <style scoped>
......
<template>
<div class="login">
<div class="row _centered">
<div class="column _600">
<h1>Login</h1>
<form action="/" method="post" class="form">
<div class="row lmargin">
<label for="Login"> Login </label>
<input type="text" name="Login">
</div>
<div class="row lmargin">
<label for="Password"> Mot de passe </label>
<input type="password" name="Password">
</div>
<div class="row lmargin">
<button type="submit" class="btn"> Valider </button>
</div>
</form>
</div>
</div>
</div>
</template>
<style scoped>
._600{
max-width: 600px;
}
.lmargin{
padding: 1%;
justify-content: center ;
}
label{
margin-right: 1%;
}
.btn{
background-color: transparent;
border-radius:10px;
border:4px solid #403d39;
color:#403d39;
font-family:Arial;
font-size:28px;
padding:16px 31px;
font-weight: bold;
margin: 1%;
}
.form{
background-color: transparent;
border-radius:10px;
border:4px solid #403d39;
color:#403d39;
font-family:Arial;
font-size:28px;
padding:16px 31px;
font-weight: bold;
margin: 1%;
justify-content: center;
}
._centered{
justify-content: center;
}
.inscription{
height: 100%;
margin: 0 auto;
max-width: 1200px;
}
</style>
<script>
export default {
name: 'Login'
}
</script>
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