<!doctype html>



<style>

/* Previous styles remain the same until social-icons */


.modal {

  display: none;

  position: fixed;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  background-color: white;

  background-image: url('https://ratneshco.com/wp-content/uploads/2023/10/Join-Our-Whatsapp-Channel.-Banner.jpg');

  background-size: cover; /* Ensures the background image covers the modal */

  background-position: center; /* Centers the background image */

  padding: 25px;

  border-radius: 8px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

  width: 300px;

  height: 350px;

  opacity: 0;

  transition: opacity 0.3s ease-in-out;

  z-index: 1000;

}



.modal.show {

  display: block;

  opacity: 1;

}


.modal-content {

  position: relative;

}


.modal-header {

  margin-bottom: 15px;

}


.modal-title {

  color: #333;

  margin: 0;

  padding-right: 30px;

  font-size: 1.5rem;

}


.modal-body img {

  max-width: 100%;

  height: auto;

  border-radius: 4px;

}


.close-button {

  position: absolute;

  top: -15px;

  right: -15px;

  width: 30px;

  height: 30px;

  border-radius: 50%;

  background-color: #fff;

  border: 1px solid #ddd;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 18px;

  color: #666;

  transition: all 0.2s ease;

  box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}


.close-button:hover {

  background-color: #f0f0f0;

  transform: scale(1.1);

}


.social-icons {

  display: flex;

  flex-direction: column; /* Arrange icons vertically */

  gap: 15px;

  position: absolute;

  top: 50%; /* Centers them vertically */

  right: 10px; /* Positions them on the right side */

  transform: translateY(100%); /* Adjusts vertical centering */

  padding: 10px 0;

}



.social-icon {

  width: 40px;

  height: 40px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: white;

  text-decoration: none;

  transition: transform 0.2s ease;

}


.social-icon:hover {

  transform: scale(1.1);

}


.whatsapp {

  background-color: #25D366;

  animation: pulse 2s infinite;

  position: relative;

}


.whatsapp::after {

  content: '';

  position: absolute;

  width: 100%;

  height: 100%;

  border-radius: 50%;

  background-color: #25D366;

  z-index: -1;

  animation: ripple 2s infinite;

}


@keyframes pulse {

  0% {

    transform: scale(1);

  }

  50% {

    transform: scale(1.1);

  }

  100% {

    transform: scale(1);

  }

}


@keyframes ripple {

  0% {

    transform: scale(1);

    opacity: 0.5;

  }

  100% {

    transform: scale(2);

    opacity: 0;

  }

}


.instagram {

  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);

}


.youtube {

  background-color: #FF0000;

}


.whatsapp-text {

  position: absolute;

  background: #25D366;

  color: white;

  padding: 5px 10px;

  border-radius: 15px;

  font-size: 12px;

  white-space: nowrap;

  right: 50px;

  animation: fadeInOut 2s infinite;

  box-shadow: 0 2px 5px rgba(0,0,0,0.2);

}


@keyframes fadeInOut {

  0%, 100% {

    opacity: 0;

    transform: translateX(10px);

  }

  50% {

    opacity: 1;

    transform: translateX(0);

  }

}


.overlay {

  display: none;

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background-color: rgba(0, 0, 0, 0.5);

  z-index: 999;

  opacity: 0;

  transition: opacity 0.3s ease-in-out;

}


.overlay.show {

  display: block;

  opacity: 1;

}

</style>




<div class="overlay" id="overlay"></div>


<a href="https://whatsapp.com/channel/0029VazR9n560eBZ4wWhXL1q" target="_blank">

<div id="popup" class="modal">

  <div class="modal-content">

    <button class="close-button" id="close">&times;</button>

    

    <div class="modal-header">

      <!-- <h2 class="modal-title">Join for updates</h2> -->

    </div>

    

    <!-- <div class="modal-body">

      <a href="Post URL" target="_blank">

        <img src="/api/placeholder/400/300" alt="Post Image">

      </a>

    </div> -->


    <div class="social-icons">

      <a href="https://whatsapp.com/channel/0029VazR9n560eBZ4wWhXL1q" target="_blank" class="social-icon whatsapp" title="Share on WhatsApp">

        <span class="whatsapp-text">Join our WhatsApp</span>

        <svg width="34" height="34" viewbox="0 0 24 24" fill="currentColor">

          <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/>

        </path></svg>

      </a>

      

      <!-- <a href="https://whatsapp.com/channel/0029VazR9n560eBZ4wWhXL1q" target="_blank" class="social-icon instagram" title="Follow on Instagram">

        <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">

          <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>

        </svg>

      </a> -->

      

      <a href=" " target="_blank" class="social-icon youtube" title="Watch on YouTube">

        <svg width="24" height="24" viewbox="0 0 24 24" fill="currentColor">

          <path d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"/>

        </path></svg>

      </a>

    </div>

  </div>

</div>

</a>




<script>

document.addEventListener('DOMContentLoaded', function() {

  const popup = document.getElementById('popup');

  const overlay = document.getElementById('overlay');

  const closeButton = document.getElementById('close');


  function showPopup() {

    overlay.classList.add('show');

    popup.classList.add('show');

  }


  function hidePopup() {

    popup.classList.remove('show');

    overlay.classList.remove('show');

  }


  setTimeout(showPopup, 100);

  closeButton.addEventListener('click', hidePopup);

  overlay.addEventListener('click', hidePopup);

});

</script>



</!doctype>

Comments