refactor(login.html): move elements from main to #content

This commit is contained in:
2026-02-28 20:40:16 +01:00
parent 9971981f66
commit 840d9ce3c1

View File

@@ -9,23 +9,25 @@
<body> <body>
<div id="wrapper"> <div id="wrapper">
<header> <header>
<h1><a href="{{ url_for('index.index') }}">judas</a></h1> <h2><a href="{{ url_for('index.index') }}">judas</a></h2>
</header> </header>
<main> <main>
<h1>Login</h1> <div id="content">
<form method="post" class="center"> <h1>Login</h1>
<label for="password">Password:</label> <form method="post" class="center">
<input type="password" id="password" name="password" required autofocus> <label for="password">Password:</label>
<br> <input type="password" id="password" name="password" required autofocus>
<br> <br>
<input type="submit" value="Login" class="button"> <br>
{% if error %} <input type="submit" value="Login" class="button">
<div class="error-container"> {% if error %}
<h1>Login failure</h1> <div class="error-container">
<p>{{ error }}</p> <h1>Login failure</h1>
</div> <p>{{ error }}</p>
{% endif %} </div>
</form> {% endif %}
</form>
</div>
</main> </main>
</div> </div>
</body> </body>