feat: remove password gate for public access

This commit is contained in:
elahe 2026-11-19 08:33:16 +00:00
parent 6ca7f3131e
commit a29f73c838
2 changed files with 2 additions and 126 deletions

View file

@ -18,69 +18,7 @@
</head>
<body class="bg-slate-50 text-slate-800 antialiased min-h-screen flex flex-col">
<!-- Security Access Gate Modal -->
<div id="security-gate" class="fixed inset-0 z-[9999] bg-slate-950/95 backdrop-blur-md flex items-center justify-center p-4 transition-all duration-300">
<div class="max-w-md w-full bg-slate-900 border border-indigo-500/30 rounded-2xl shadow-2xl p-6 sm:p-8 text-white relative overflow-hidden">
<div class="absolute -top-12 -right-12 w-32 h-32 bg-indigo-500/20 rounded-full blur-2xl pointer-events-none"></div>
<div class="flex items-center gap-3 mb-6">
<div class="w-12 h-12 rounded-xl bg-gradient-to-tr from-indigo-600 to-teal-400 flex items-center justify-center text-white shadow-lg shadow-indigo-500/30">
<i data-lucide="shield-lock" class="w-6 h-6"></i>
</div>
<div>
<h2 class="text-lg font-bold text-white">ورود به سند محرمانه زیما</h2>
<p class="text-xs text-slate-400">تحلیل استراتژیک C-Level موقعیت Head of Marketing</p>
</div>
</div>
<p class="text-xs text-slate-300 leading-relaxed mb-5 bg-slate-800/60 p-3.5 rounded-xl border border-slate-700/50">
🔒 این سند و داشبورد اجرایی به صورت اختصاصی توسط <strong>الهه فلاحی</strong> تدوین شده و دسترسی به آن نیازمند رمز عبور معتبر است.
</p>
<form id="gate-form" onsubmit="handleGateSubmit(event)" class="space-y-4">
<div>
<label class="block text-xs font-semibold text-slate-300 mb-1.5">رمز عبور دسترسی:</label>
<div class="relative">
<input type="password" id="access-pass-input" autofocus required placeholder="رمز عبور را وارد کنید..."
class="w-full px-4 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white placeholder-slate-500 text-sm focus:outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 transition dir-ltr text-center font-mono tracking-widest">
</div>
<p id="gate-error" class="hidden text-xs text-rose-400 mt-2 flex items-center gap-1">
<i data-lucide="alert-circle" class="w-3.5 h-3.5"></i> رمز عبور وارد شده نادرست است!
</p>
</div>
<button type="submit" class="w-full py-2.5 px-4 bg-gradient-to-r from-indigo-600 to-indigo-500 hover:from-indigo-500 hover:to-indigo-400 text-white font-medium text-sm rounded-xl transition duration-150 shadow-lg shadow-indigo-600/30 flex items-center justify-center gap-2">
<span>مشاهده کامل داشبورد و گزارش</span>
<i data-lucide="arrow-left" class="w-4 h-4"></i>
</button>
</form>
<div class="mt-4 pt-3 border-t border-slate-800 flex items-center justify-between text-[11px] text-slate-500">
<span>محافظت‌شده با لایه امنیت اختصاصی</span>
<span>نگارش ۱۴۰۳ - محرمانه</span>
</div>
</div>
</div>
<script>
const VALID_PASSWORDS = ['zeema2026', 'zeema1403', 'elahe2026', 'fallahi', 'zeema'];
function handleGateSubmit(e) {
e.preventDefault();
const input = document.getElementById('access-pass-input');
const err = document.getElementById('gate-error');
const val = (input.value || '').trim();
if (VALID_PASSWORDS.includes(val.toLowerCase())) {
document.getElementById('security-gate').style.opacity = '0';
setTimeout(() => {
document.getElementById('security-gate').style.display = 'none';
if (window.lucide) { lucide.createIcons(); }
}, 300);
sessionStorage.setItem('zeema_auth_passed', 'true');
} else {
err.classList.remove('hidden');
input.classList.add('border-rose-500', 'ring-1', 'ring-rose-500');
}
}
if (sessionStorage.getItem('zeema_auth_passed') === 'true') {
document.getElementById('security-gate').style.display = 'none';
}
</script>
<!-- Top Executive Header -->

View file

@ -18,69 +18,7 @@
</head>
<body class="bg-slate-50 text-slate-800 antialiased min-h-screen flex flex-col">
<!-- Security Access Gate Modal -->
<div id="security-gate" class="fixed inset-0 z-[9999] bg-slate-950/95 backdrop-blur-md flex items-center justify-center p-4 transition-all duration-300">
<div class="max-w-md w-full bg-slate-900 border border-indigo-500/30 rounded-2xl shadow-2xl p-6 sm:p-8 text-white relative overflow-hidden">
<div class="absolute -top-12 -right-12 w-32 h-32 bg-indigo-500/20 rounded-full blur-2xl pointer-events-none"></div>
<div class="flex items-center gap-3 mb-6">
<div class="w-12 h-12 rounded-xl bg-gradient-to-tr from-indigo-600 to-teal-400 flex items-center justify-center text-white shadow-lg shadow-indigo-500/30">
<i data-lucide="shield-lock" class="w-6 h-6"></i>
</div>
<div>
<h2 class="text-lg font-bold text-white">ورود به سند محرمانه زیما</h2>
<p class="text-xs text-slate-400">تحلیل استراتژیک C-Level موقعیت Head of Marketing</p>
</div>
</div>
<p class="text-xs text-slate-300 leading-relaxed mb-5 bg-slate-800/60 p-3.5 rounded-xl border border-slate-700/50">
🔒 این سند و داشبورد اجرایی به صورت اختصاصی توسط <strong>الهه فلاحی</strong> تدوین شده و دسترسی به آن نیازمند رمز عبور معتبر است.
</p>
<form id="gate-form" onsubmit="handleGateSubmit(event)" class="space-y-4">
<div>
<label class="block text-xs font-semibold text-slate-300 mb-1.5">رمز عبور دسترسی:</label>
<div class="relative">
<input type="password" id="access-pass-input" autofocus required placeholder="رمز عبور را وارد کنید..."
class="w-full px-4 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white placeholder-slate-500 text-sm focus:outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 transition dir-ltr text-center font-mono tracking-widest">
</div>
<p id="gate-error" class="hidden text-xs text-rose-400 mt-2 flex items-center gap-1">
<i data-lucide="alert-circle" class="w-3.5 h-3.5"></i> رمز عبور وارد شده نادرست است!
</p>
</div>
<button type="submit" class="w-full py-2.5 px-4 bg-gradient-to-r from-indigo-600 to-indigo-500 hover:from-indigo-500 hover:to-indigo-400 text-white font-medium text-sm rounded-xl transition duration-150 shadow-lg shadow-indigo-600/30 flex items-center justify-center gap-2">
<span>مشاهده کامل داشبورد و گزارش</span>
<i data-lucide="arrow-left" class="w-4 h-4"></i>
</button>
</form>
<div class="mt-4 pt-3 border-t border-slate-800 flex items-center justify-between text-[11px] text-slate-500">
<span>محافظت‌شده با لایه امنیت اختصاصی</span>
<span>نگارش ۱۴۰۳ - محرمانه</span>
</div>
</div>
</div>
<script>
const VALID_PASSWORDS = ['zeema2026', 'zeema1403', 'elahe2026', 'fallahi', 'zeema'];
function handleGateSubmit(e) {
e.preventDefault();
const input = document.getElementById('access-pass-input');
const err = document.getElementById('gate-error');
const val = (input.value || '').trim();
if (VALID_PASSWORDS.includes(val.toLowerCase())) {
document.getElementById('security-gate').style.opacity = '0';
setTimeout(() => {
document.getElementById('security-gate').style.display = 'none';
if (window.lucide) { lucide.createIcons(); }
}, 300);
sessionStorage.setItem('zeema_auth_passed', 'true');
} else {
err.classList.remove('hidden');
input.classList.add('border-rose-500', 'ring-1', 'ring-rose-500');
}
}
if (sessionStorage.getItem('zeema_auth_passed') === 'true') {
document.getElementById('security-gate').style.display = 'none';
}
</script>
<!-- Top Executive Header -->