2019-03-30 22:55:48 +00:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<h1>Home page test</h1>
|
|
|
|
|
|
|
|
|
|
<form @submit.prevent="redirect">
|
|
|
|
|
<input type="text" placeholder="Entre un pseudo." class="bg-gray-300 p-2 rounded-l outline-none focus:bg-gray-400" v-model="search">
|
|
|
|
|
<button class="bg-teal-500 p-2 text-white rounded-r hover:bg-teal-400" type="submit">Rechercher</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2019-03-31 18:56:48 +00:00
|
|
|
search: ''
|
2019-03-30 22:55:48 +00:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
redirect() {
|
|
|
|
|
this.$router.push("/summoner/" + this.search)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|