Update formatting of game login selection
This commit is contained in:
parent
950797c984
commit
10d7e74db7
1 changed files with 49 additions and 26 deletions
|
|
@ -1,20 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="game_code_entry">
|
<div id="game_code_entry">
|
||||||
<h2>
|
<h1>
|
||||||
Enter a game code:
|
Secret Hitler Online
|
||||||
</h2>
|
</h1>
|
||||||
|
<div>
|
||||||
|
<label for="username">Username:</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="Game Code"
|
id="username"
|
||||||
v-model="game_code"
|
name="User Name"
|
||||||
@keyup.enter="submit_game_code()"
|
v-model="username"
|
||||||
>
|
>
|
||||||
<br>
|
<br>
|
||||||
<button
|
<label for="gamecode">Game Code:</label>
|
||||||
@onclick.stop="submit_game_code()"
|
<input
|
||||||
|
type="text"
|
||||||
|
id="gamecode"
|
||||||
|
name="Game Code"
|
||||||
|
v-model="game_code"
|
||||||
>
|
>
|
||||||
Confirm URL
|
</div>
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -24,28 +29,46 @@ export default {
|
||||||
components: {},
|
components: {},
|
||||||
data() {return {
|
data() {return {
|
||||||
game_code: ``,
|
game_code: ``,
|
||||||
|
username: ``,
|
||||||
}},
|
}},
|
||||||
methods: {
|
methods: {},
|
||||||
submit_game_code() {
|
|
||||||
if (this.game_code.length > 0) {
|
|
||||||
this.$emit(`set-game-code`, this.game_code);
|
|
||||||
} else {
|
|
||||||
alert(`Invalid game code. Must have a code`)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus">
|
||||||
|
@import "../theme.styl"
|
||||||
|
|
||||||
#game_code_entry {
|
#game_code_entry {
|
||||||
text-align: center
|
text-align: center
|
||||||
height: 100vh
|
|
||||||
width: 33vw
|
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
|
height: 100vh
|
||||||
|
width: 50vw
|
||||||
|
color: $main-text-colour
|
||||||
|
|
||||||
|
h1, h3 {
|
||||||
|
letter-spacing: $title-letter-spacing
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
letter-spacing: $body-letter-spacing
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
width: 90vw
|
width: 90vw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
@import "../theme.styl"
|
||||||
|
|
||||||
|
#game_code_entry {
|
||||||
|
label {
|
||||||
|
font-size: 1.2em
|
||||||
|
}
|
||||||
|
input[type="text"] {
|
||||||
|
margin-bottom: 10px
|
||||||
|
margin-left: 10px
|
||||||
|
text-align: left
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue