LinuxDayDemo / templates /login.html
vagrillo's picture
Create templates/login.html
001bca3 verified
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<style>
body { font-family: Arial, sans-serif; max-width: 400px; margin: 100px auto; padding: 20px; }
.login-form { background: #f9f9f9; padding: 20px; border-radius: 5px; }
input[type="password"] { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; }
button { background: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 3px; cursor: pointer; }
.error { color: red; margin-bottom: 10px; }
</style>
</head>
<body>
<div class="login-form">
<h2>Accesso Protetto</h2>
{% if error %}
<div class="error">{{ error }}</div>
{% endif %}
<form method="POST">
<input type="password" name="password" placeholder="Inserisci la password" required>
<button type="submit">Accedi</button>
</form>
</div>
</body>
</html>