96 lines
2.5 KiB
HTML
96 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-Hant">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>忘記密碼</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" />
|
|
<style>
|
|
body {
|
|
background-color: #f7f8fa;
|
|
font-family: 'Noto Sans TC', sans-serif;
|
|
}
|
|
header {
|
|
background-color: #9eaf9f;
|
|
color: #fff;
|
|
padding: 16px;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
.back-button {
|
|
position: absolute;
|
|
top: 12px;
|
|
left: 16px;
|
|
cursor: pointer;
|
|
}
|
|
.back-button img {
|
|
width: 24px;
|
|
height: 24px;
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
.verify-container {
|
|
background-color: #fff;
|
|
margin: 20px;
|
|
padding: 30px 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
.step-indicator {
|
|
font-size: 14px;
|
|
color: #888;
|
|
margin-bottom: 10px;
|
|
}
|
|
.status-message {
|
|
margin-top: 20px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
}
|
|
.success { color: green; }
|
|
.fail { color: red; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<div class="back-button">
|
|
<img src="https://img.icons8.com/ios-filled/50/ffffff/left.png" onclick="history.back()" />
|
|
</div>
|
|
忘記密碼
|
|
</header>
|
|
|
|
<div class="verify-container">
|
|
|
|
|
|
<h4 class="text-center mb-3">請輸入您的電子郵件</h4>
|
|
<p class="text-center text-muted mb-4">我們將會寄送重設密碼的連結至您的信箱</p>
|
|
|
|
<form onsubmit="submitEmail(event)" class="text-center">
|
|
<div class="mb-3">
|
|
<input type="email" id="emailInput" class="form-control form-control-lg" placeholder="example@email.com" required />
|
|
</div>
|
|
<button type="submit" class="btn btn-primary btn-lg w-100">發送重設連結</button>
|
|
</form>
|
|
|
|
<div id="statusMessage" class="status-message text-center"></div>
|
|
</div>
|
|
|
|
<script>
|
|
function submitEmail(event) {
|
|
event.preventDefault();
|
|
const email = document.getElementById("emailInput").value.trim();
|
|
const status = document.getElementById("statusMessage");
|
|
|
|
if (!email.includes("@")) {
|
|
status.innerHTML = '<span class="fail">❌ 請輸入有效的電子郵件地址</span>';
|
|
return;
|
|
}
|
|
|
|
// 模擬寄送成功
|
|
status.innerHTML = '<span class="success">📨 重設密碼的連結已寄出,請至信箱查收!</span>';
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |