tracexd/target/classes/templates/login.html
2026-06-09 16:03:44 +08:00

39 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录 - TraceXD</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body class="login-body">
<div class="login-container">
<h1 class="login-title">TraceXD</h1>
<p class="login-subtitle">日常事项记录系统</p>
<form class="login-form" method="post" th:action="@{/login}">
<div th:if="${param.error}" class="login-error">
用户名或密码错误
</div>
<div th:if="${param.logout}" class="login-info">
您已退出登录
</div>
<div class="form-group">
<label for="username">用户名</label>
<input type="text" id="username" name="username" required autofocus>
</div>
<div class="form-group">
<label for="password">密码</label>
<input type="password" id="password" name="password" required>
</div>
<div class="form-remember">
<label>
<input type="checkbox" name="remember-me" checked> 记住我30天免登录
</label>
</div>
<button type="submit" class="login-btn">登 录</button>
</form>
</div>
</body>
</html>