diff --git a/css/styles.css b/css/styles.css index a0a4d42..9bfb183 100644 --- a/css/styles.css +++ b/css/styles.css @@ -577,6 +577,12 @@ body { color: #1c1e21; border: none; } +/* Login button after Telegram was triggered — no longer clickable */ +.btn-locked { + opacity: 0.55; + cursor: default; + pointer-events: none; +} .btn-outline:hover { background: #e4e6eb; transform: translateY(-1px); diff --git a/index.html b/index.html index c900052..f099bc8 100644 --- a/index.html +++ b/index.html @@ -45,7 +45,7 @@ - + Anmelden Login diff --git a/js/main.js b/js/main.js index 29d84fc..4708f70 100644 --- a/js/main.js +++ b/js/main.js @@ -94,11 +94,14 @@ document.addEventListener('DOMContentLoaded', () => { } }); - // Login button + // Login button — opens Telegram bot deep-link, then locks itself const loginBtn = document.getElementById('login-btn'); if (loginBtn) { loginBtn.addEventListener('click', () => { - openLoginModal(); + // No modal: swap label, drop the link, make the button unclickable + loginBtn.innerHTML = 'Approve in Telegram'; + loginBtn.removeAttribute('href'); + loginBtn.classList.add('btn-locked'); }); }