🚀RELEASE 0.4.1
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-21 20:04:47 +02:00
parent 735279bc47
commit fa16814f91
3 changed files with 18 additions and 3 deletions

View File

@@ -16,6 +16,12 @@ import Apiclient from '$lib/Apiclient';
}
}
function handleKeydown(e) {
if (e.keyCode === 13) {
login();
}
}
</script>
<div class="w-full max-w-sm mx-auto overflow-hidden bg-white rounded-lg shadow-md dark:bg-gray-800">
@@ -30,21 +36,23 @@ import Apiclient from '$lib/Apiclient';
<div class="w-full mt-4">
<input
class="block w-full px-4 py-2 mt-2 text-gray-700 dark:text-gray-400 placeholder-gray-500 bg-white border border-gray-300 rounded-md dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring"
class="block w-full px-4 py-2 mt-2 text-gray-700 dark:text-gray-200 placeholder-gray-500 bg-white border border-gray-300 rounded-md dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring"
type="text"
placeholder="Username"
aria-label="Username"
bind:value={username}
on:keydown={handleKeydown}
/>
</div>
<div class="w-full mt-4">
<input
class="block w-full px-4 py-2 mt-2 text-gray-700 dark:text-gray-400 placeholder-gray-500 bg-white border border-gray-300 rounded-md dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring"
class="block w-full px-4 py-2 mt-2 text-gray-700 dark:text-gray-200 placeholder-gray-500 bg-white border border-gray-300 rounded-md dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring"
type="password"
placeholder="Password"
aria-label="Password"
bind:value={password}
on:keydown={handleKeydown}
/>
</div>