Spaces:
Sleeping
Sleeping
Create templates/login.html
Browse files- templates/login.html +25 -0
templates/login.html
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>Login</title>
|
| 5 |
+
<style>
|
| 6 |
+
body { font-family: Arial, sans-serif; max-width: 400px; margin: 100px auto; padding: 20px; }
|
| 7 |
+
.login-form { background: #f9f9f9; padding: 20px; border-radius: 5px; }
|
| 8 |
+
input[type="password"] { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; }
|
| 9 |
+
button { background: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 3px; cursor: pointer; }
|
| 10 |
+
.error { color: red; margin-bottom: 10px; }
|
| 11 |
+
</style>
|
| 12 |
+
</head>
|
| 13 |
+
<body>
|
| 14 |
+
<div class="login-form">
|
| 15 |
+
<h2>Accesso Protetto</h2>
|
| 16 |
+
{% if error %}
|
| 17 |
+
<div class="error">{{ error }}</div>
|
| 18 |
+
{% endif %}
|
| 19 |
+
<form method="POST">
|
| 20 |
+
<input type="password" name="password" placeholder="Inserisci la password" required>
|
| 21 |
+
<button type="submit">Accedi</button>
|
| 22 |
+
</form>
|
| 23 |
+
</div>
|
| 24 |
+
</body>
|
| 25 |
+
</html>
|