pdff / popup.html
abeea's picture
Update popup.html
5a66cdb verified
<style>
/* Popup Overlay */
#authorPopupOverlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.45);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
animation: fadeIn 0.3s ease-in-out;
}
/* Popup Box */
#authorPopupBox {
background: #ffffff;
padding: 2.5rem;
border-radius: 1.5rem;
max-width: 420px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
font-family: 'Playfair Display', serif;
animation: slideUp 0.3s ease-in-out;
}
/* WhatsApp Button */
.popup-btn {
background-color: #8a5b44;
color: white;
padding: 0.6rem 1.8rem;
border-radius: 50px;
text-decoration: none;
display: inline-block;
margin-top: 1rem;
transition: 0.3s ease;
}
.popup-btn:hover {
background-color: #6a453b;
}
/* Close Button */
#closePopup {
margin-top: 1rem;
background: none;
border: none;
color: #777;
cursor: pointer;
font-size: 0.9rem;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
</style>
<div id="authorPopupOverlay">
<div id="authorPopupBox">
<h3 style="color:#8a5b44; font-weight:bold;">
Stay Connected
</h3>
<p style="margin-top:1rem;">
Follow the WhatsApp Channel of
<strong>Mohsin Kamil</strong><br>
for updates about upcoming stories.
</p>
<a href="whatsapp://channel/0029Vb7mqh2BA1esJhYEDs0s"
class="popup-btn">
Follow Now
</a>
<br>
<button id="closePopup">Maybe Later</button>
</div>
</div>