-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.html
72 lines (71 loc) · 1.75 KB
/
auth.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>ログイン</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.login-container {
background: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 10px;
background-color: #007bff;
border: none;
border-radius: 4px;
color: white;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="login-container">
<h2>ログイン</h2>
<form id="auth-form">
<input type="text" id="id" value="user" placeholder="ID" />
<input
type="password"
id="password"
value="12345678"
placeholder="パスワード"
/>
<button type="submit">送信</button>
</form>
</div>
<script>
document
.getElementById("auth-form")
.addEventListener("submit", (event) => {
console.log("step 1");
event.preventDefault();
const id = document.getElementById("id").value;
const password = document.getElementById("password").value;
window.electronAPI.submitAuth(id, password);
});
</script>
</body>
</html>