fix: use form to sign in

Co-authored-by: Lindsay Wardell <three060@gmail.com>
This commit is contained in:
Daniel Roe 2022-11-26 18:11:57 +00:00
parent 39de2c36a6
commit 19dd7f891d
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55

View file

@ -18,17 +18,17 @@ async function handleInput() {
</script>
<template>
<div text-center justify-center items-center flex="~ col gap2">
<form text-center justify-center items-center flex="~ col gap2" @submit.prevent="oauth">
<div text-3xl mb2>
Sign in
</div>
<div>Mastodon Server Name</div>
<div flex bg-gray:10 px2 py1 mxa rounded border="~ border" text-xl items-center>
<span op35 mr1 text-sm>https://</span>
<input v-model="server" :placeholder="DEFAULT_SERVER" outline-none bg-transparent @input="handleInput" @keyup.enter="oauth()">
<input v-model="server" :placeholder="DEFAULT_SERVER" outline-none bg-transparent @input="handleInput">
</div>
<button btn-solid mt2 @click="oauth()">
<button btn-solid mt2>
Sign in
</button>
</div>
</form>
</template>