fix: use form to sign in

Co-authored-by: Lindsay Wardell <three060@gmail.com>
pull/144/head
Daniel Roe 2022-11-26 18:11:57 +00:00
rodzic 39de2c36a6
commit 19dd7f891d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 22D5008E4F5D9B55
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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>