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

exportChoixpartie

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