-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.html
94 lines (84 loc) · 2.53 KB
/
test.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Irrigation System Login</title>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.login-container {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
width: 300px;
text-align: center;
}
.login-header {
background-color: #4CAF50;
color: #ffffff;
padding: 15px;
}
.login-form {
padding: 20px;
}
.input-field {
width: 100%;
padding: 10px;
margin: 10px 0;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
}
.submit-button {
background-color: #4CAF50;
color: #ffffff;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
.submit-button:hover {
background-color: #45a049;
}
.register-link {
color: #4CAF50;
text-decoration: none;
font-weight: bold;
}
</style>
</head>
<body>
<div class="login-container">
<div class="login-header">
<h2>Irrigation System Login</h2>
</div>
<div class="login-form">
<form id="loginForm">
<input type="text" class="input-field" id="username" placeholder="Username" required>
<input type="password" class="input-field" id="password" placeholder="Password" required>
<button type="submit" class="submit-button">Login</button>
</form>
<p>Don't have an account? <a href="#" class="register-link">Register</a></p>
</div>
</div>
<script>
document.getElementById('loginForm').addEventListener('submit', function(event) {
event.preventDefault();
// You can add your login logic here
// For example, you can use AJAX to send login credentials to the server
});
</script>
</body>
</html>