100 lines
2.2 KiB
HTML
Raw Normal View History

2023-08-12 02:29:10 +01:00
<html xmlns:th="http://www.thymeleaf.org">
2023-08-20 21:57:19 +01:00
<th:block th:insert="~{fragments/common :: head(title=#{login.title})}"></th:block>
<style>
html, body {
height: 100%;
}
body {
display: flex;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
width: 100%;
max-width: 330px;
padding: 15px;
margin: auto;
}
.form-signin .checkbox {
font-weight: 400;
}
.form-signin .form-floating:focus-within {
z-index: 2;
}
.form-signin input[type="text"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.container-flex {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%; /* Set width to 100% */
align-items: center; /* Center its children horizontally */
}
.footer-bottom {
margin-top: auto;
}
</style>
2023-08-12 02:29:10 +01:00
<body>
<div class="container-flex">
<main class="form-signin text-center">
<div th:if="${logoutMessage}" class="alert alert-success"
th:text="${logoutMessage}"></div>
2023-08-12 02:29:10 +01:00
<form th:action="@{/login}" method="post">
<img class="mb-4" src="favicon.svg" alt="" width="144" height="144">
<h1 class="h1 mb-3 fw-normal">Stirling-PDF</h1>
<h2 class="h5 mb-3 fw-normal">Please sign in</h2>
2023-08-12 02:29:10 +01:00
<div class="form-floating">
<input type="text" class="form-control" id="username"
placeholder="admin"> <label for="username">Username</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" id="password"
placeholder="Password"> <label for="password">Password</label>
</div>
2023-08-12 02:29:10 +01:00
<div class="checkbox mb-3">
<label> <input type="checkbox" value="remember-me">
Remember me
</label>
</div>
<button class="w-100 btn btn-lg btn-primary" type="submit">Sign
in</button>
</form>
<div class="text-danger text-center">
<div th:if="${error == 'badcredentials'}">Invalid username or
password.</div>
<div th:if="${error == 'locked'}">Your account has been locked.
</div>
</div>
</main>
<div th:insert="~{fragments/footer.html :: footer}"></div>
</div>
2023-08-12 02:29:10 +01:00
</body>
</html>