Commit 59c8a093 authored by thibaut-felten's avatar thibaut-felten

exportChoixpartie

parent b8ee91b9
<template>
<nav class="row btn-bar">
<button class="btn-login">
<router-link to="/inscription">Sign Up </router-link>
<router-link to="/">Accueil</router-link>
</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>
......@@ -27,7 +29,7 @@ export default {
<style scoped>
.btn-bar{
justify-content: flex-end;
padding: 0.5%;
padding: 1%;
}
a{
......
<template>
<div class="inscription">
<LoginNavbar></LoginNavbar>
<div class="row _centered">
<div class="column _600">
<form method="post" class="startGame">
......@@ -27,3 +28,14 @@
height: 90%;
}
</style>
<script>
export default {
name: 'AdminPartie',
components: {
LoginNavbar
}
}
import LoginNavbar from '../components/LoginNavbar.vue'
</script>
\ No newline at end of file
<template>
<div class="page">
<LoginNavbar></LoginNavbar>
<tr class="espaceHaut"></tr>
<div class = "titre">Veuillez choisir votre type de partie</div>
<tr class="espaceBas"></tr>
......@@ -74,3 +75,14 @@
}
</style>
<script>
export default {
name: 'ChoixPartie',
components: {
LoginNavbar
}
}
import LoginNavbar from '../components/LoginNavbar.vue'
</script>
\ No newline at end of file
<template>
<div class="inscription">
<LoginNavbar></LoginNavbar>
<div class="row _centered">
<div class="column _600">
<h1>Inscription</h1>
......@@ -91,6 +92,9 @@
<script>
export default {
name: 'Inscription',
components: {
LoginNavbar
},
methods: {
check: function(){
let firstname = this.firstname
......@@ -137,6 +141,8 @@ export default {
}
},
}
import LoginNavbar from '../components/LoginNavbar.vue'
</script>
<template>
<div class="login">
<LoginNavbar></LoginNavbar>
<div class="row _centered">
<div class="column _600">
<h1>Login</h1>
......@@ -64,7 +65,7 @@
justify-content: center;
}
.inscription{
.login{
height: 100%;
margin: 0 auto;
max-width: 1200px;
......@@ -93,8 +94,6 @@ export default {
pwd: password
}
console.log(JSON.stringify(data))
var params = {
method: 'POST',
......@@ -102,12 +101,19 @@ export default {
fetch(url, params)
.then(response=>response.json())
.then(data=>console.log(data))
.then(response => {
sessionStorage.setItem("JWT_TOKEN", response.data.jwt_token)
console.log(sessionStorage.getItem("JWT_TOKEN"))
})
}
},
components: {
LoginNavbar
},
}
import LoginNavbar from '../components/LoginNavbar.vue'
</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