fix: use form to sign in

Co-authored-by: Lindsay Wardell <three060@gmail.com>
zio/stable
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
1 changed files with 4 additions and 4 deletions

View File

@ -18,17 +18,17 @@ async function handleInput() {
</script> </script>
<template> <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> <div text-3xl mb2>
Sign in Sign in
</div> </div>
<div>Mastodon Server Name</div> <div>Mastodon Server Name</div>
<div flex bg-gray:10 px2 py1 mxa rounded border="~ border" text-xl items-center> <div flex bg-gray:10 px2 py1 mxa rounded border="~ border" text-xl items-center>
<span op35 mr1 text-sm>https://</span> <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> </div>
<button btn-solid mt2 @click="oauth()"> <button btn-solid mt2>
Sign in Sign in
</button> </button>
</div> </form>
</template> </template>