supervisor step3

This commit is contained in:
hayano
2024-10-29 14:07:31 +00:00
parent b872f377b2
commit d017da17d4
17 changed files with 1320 additions and 97 deletions

View File

@ -0,0 +1,26 @@
<!-- login.html -->
<form id="loginForm" class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700">メールアドレス</label>
<input type="email" id="email" required
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm">
</div>
<div>
<label class="block text-sm font-medium text-gray-700">パスワード</label>
<input type="password" id="password" required
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm">
</div>
<button type="submit"
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700">
ログイン
</button>
</form>
<script>
document.getElementById('loginForm').addEventListener('submit', async (e) => {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
await login(email, password);
});
</script>