krgm.so-manager-dev.com/resources/views/auth/password-change-success.blade.php
OU.ZAIKOU 6aa82dde3b
All checks were successful
Deploy main / deploy (push) Successful in 22s
【定期パスワード変更】実装
2026-01-27 01:13:17 +09:00

160 lines
4.6 KiB
PHP

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>パスワード変更完了 - So-Manager</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css">
<style>
body {
background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.success-container {
background: white;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
max-width: 600px;
width: 100%;
padding: 40px;
text-align: center;
}
.success-icon {
width: 80px;
height: 80px;
margin: 0 auto 30px;
background-color: #28a745;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 48px;
color: white;
}
.success-title {
font-size: 28px;
font-weight: 700;
color: #333;
margin-bottom: 20px;
}
.success-message {
font-size: 16px;
color: #666;
line-height: 1.6;
margin-bottom: 30px;
}
.countdown {
font-size: 18px;
font-weight: 600;
color: #007bff;
margin-bottom: 30px;
}
.countdown-timer {
display: inline-block;
background-color: #e7f3ff;
border: 2px solid #007bff;
border-radius: 6px;
padding: 10px 20px;
min-width: 80px;
}
.return-login-btn {
padding: 14px 30px;
background-color: #f5f5f5;
border: 2px solid #333;
border-radius: 6px;
font-size: 16px;
font-weight: 600;
color: #333;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
}
.return-login-btn:hover {
background-color: #e8e8e8;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
color: #333;
text-decoration: none;
}
.return-login-btn:active {
transform: translateY(0);
}
.info-text {
font-size: 14px;
color: #999;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="success-container">
{{-- 成功アイコン --}}
<div class="success-icon"></div>
{{-- 成功タイトル --}}
<div class="success-title">パスワード変更完了</div>
{{-- 成功メッセージ --}}
<div class="success-message">
パスワードが正常に変更されました。<br>
システムは安全に保護されています。
</div>
{{-- カウントダウン --}}
<div class="countdown">
<span id="countdown-text">自動的にログイン画面に戻ります:</span><br>
<div class="countdown-timer">
<span id="countdown-timer">10</span>
</div>
</div>
{{-- 手動でログイン画面に戻るボタン --}}
<a href="{{ route('logout') }}" class="return-login-btn">
ログイン画面へ
</a>
{{-- 補足テキスト --}}
<div class="info-text">
自動的にログイン画面に遷移しない場合は、上記ボタンをクリックしてください。
</div>
</div>
<script>
// 10秒後に自動的にログアウトしてログイン画面へリダイレクト
let countdownSeconds = 10;
const countdownElement = document.getElementById('countdown-timer');
const countdownTextElement = document.getElementById('countdown-text');
const countdownInterval = setInterval(() => {
countdownSeconds--;
countdownElement.textContent = countdownSeconds;
if (countdownSeconds <= 0) {
clearInterval(countdownInterval);
// ログアウト処理を実行してからログイン画面へ遷移
window.location.href = "{{ route('logout') }}";
}
}, 1000);
</script>
</body>
</html>