
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Telegram Popup</title>
<!-- FontAwesome CDN (For Icons) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<style>
/* Background Overlay */
#telegram-modal {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
padding: 20px;
display: none; /* Hidden by default */
}
/* Modal Box */
.modal-content {
background: #0a0f2c;
border: 1px solid #1d2a5a;
border-radius: 20px;
padding: 30px 20px;
text-align: center;
position: relative;
width: 100%;
max-width: 400px;
box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
animation: popup 0.5s ease;
}
/* Popup Animation */
@keyframes popup {
0% { transform: scale(0.7); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
/* Close Button */
.close-btn {
position: absolute;
top: 15px;
right: 20px;
background: none;
border: none;
font-size: 28px;
color: #aaa;
cursor: pointer;
transition: 0.3s;
}
.close-btn:hover {
color: #fff;
}
/* Telegram Icon Circle */
.icon-wrapper {
width: 70px;
height: 70px;
background: rgba(33, 150, 243, 0.2);
color: #2196f3;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
}
.telegram-icon {
font-size: 36px;
}
/* Modal Title */
.modal-title {
color: #fff;
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
/* Modal Text */
.modal-text {
color: #cbd5e1;
font-size: 14px;
margin-bottom: 25px;
}
/* Join Button */
.join-btn {
display: inline-block;
background: #2196f3;
color: #fff;
padding: 12px 20px;
border-radius: 10px;
font-weight: bold;
font-size: 16px;
text-decoration: none;
transition: 0.3s;
}
.join-btn:hover {
background: #1d7cd2;
}
/* Small Text */
.small-text {
margin-top: 15px;
color: #888;
font-size: 12px;
}
</style>
</head>
<body>
<!-- Telegram Modal -->
<div id="telegram-modal">
<div class="modal-content">
<button class="close-btn" onclick="closeModal()">×</button>
<div class="icon-wrapper">
<i class="fab fa-telegram telegram-icon"></i>
</div>
<h2 class="modal-title">Join Our Community</h2>
<p class="modal-text">Get notified about new uploads and exclusive content on Telegram.</p>
<a href="https://t.me/" class="join-btn">
<i class="fab fa-telegram"></i> Join Telegram Channel
</a>
<p class="small-text">No spam, just updates.</p>
</div>
</div>
<!-- JavaScript -->
<script>
// Show modal on page load
window.onload = function() {
document.getElementById('telegram-modal').style.display = 'flex';
}
// Close modal function
function closeModal() {
document.getElementById('telegram-modal').style.display = 'none';
}
</script>
</body>
</html>