97 lines
2.5 KiB
HTML
97 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">
|
|
<!-- 步驟指示 -->
|
|
<div class="step-indicator text-center mb-2">
|
|
步驟 <strong>1</strong> 之 <strong>3</strong>
|
|
</div>
|
|
|
|
<h4 class="text-center mb-4">輸入電子郵件</h4>
|
|
|
|
<form onsubmit="sendVerification(event)">
|
|
<div class="mb-3">
|
|
<label for="emailInput" class="form-label">電子郵件</label>
|
|
<input type="email" class="form-control" id="emailInput" placeholder="example@mail.com" required />
|
|
</div>
|
|
<button type="submit" onclick="location.href='resgiter_2.html'" class="btn btn-primary btn-lg w-100">發送驗證碼</button>
|
|
</form>
|
|
|
|
<div id="statusMessage" class="status-message text-center"></div>
|
|
</div>
|
|
|
|
<script>
|
|
function sendVerification(event) {
|
|
event.preventDefault();
|
|
const email = document.getElementById("emailInput").value;
|
|
const status = document.getElementById("statusMessage");
|
|
|
|
if (email && email.includes("@")) {
|
|
status.innerHTML = '<span class="success">📧 驗證碼已寄出至 ' + email + '</span>';
|
|
} else {
|
|
status.innerHTML = '<span class="fail">❌ 請輸入有效的 Email</span>';
|
|
}
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |