28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Admin Login</title>
|
|
<style>
|
|
body { font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background-color: #f0f0f0; }
|
|
.login-container { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 300px; }
|
|
h1 { text-align: center; }
|
|
input { width: 100%; padding: 10px; margin: 10px 0; box-sizing: border-box; }
|
|
button { width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; }
|
|
button:hover { background-color: #45a049; }
|
|
.error { color: red; margin: 10px 0; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-container">
|
|
<h1>Admin Login</h1>
|
|
{{ if .error }}
|
|
<div class="error">{{ .error }}</div>
|
|
{{ end }}
|
|
<form method="POST">
|
|
<input type="text" name="username" placeholder="Username" required>
|
|
<input type="password" name="password" placeholder="Password" required>
|
|
<button type="submit">Login</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html> |