vlcsolutions commited on
Commit
5a5963c
·
verified ·
1 Parent(s): 982ed65

Download Now add popup

Browse files
Files changed (2) hide show
  1. index.html +23 -2
  2. style.css +28 -1
index.html CHANGED
@@ -557,8 +557,29 @@
557
  Download Now
558
  </button>
559
 
560
- <form id="send_email_to_customer" action="./HP_Dell_and_IBM_Managed_NOC.php" method="post" class="hidden mt-8 bg-white p-8 rounded-xl shadow-md max-w-md mx-auto">
561
- <div class="modal-content">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
562
  <h4 class="modal-title text-xl font-bold text-[var(--vlc-navy)] mb-4">Enter your email to download</h4>
563
  <span id="error" class="hidden text-red-500 text-sm mb-2">Please enter valid business email.</span>
564
  <input class="w-full px-4 py-2 border border-gray-300 rounded-md mb-4 focus:outline-none focus:ring-2 focus:ring-[var(--vlc-leaf)]"
 
557
  Download Now
558
  </button>
559
 
560
+ <!-- Download Modal -->
561
+ <div id="downloadModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
562
+ <div class="bg-white p-8 rounded-xl shadow-xl max-w-md w-full mx-4">
563
+ <div class="flex justify-between items-center mb-4">
564
+ <h3 class="text-xl font-bold text-[var(--vlc-navy)]">Download Resource</h3>
565
+ <button id="closeModal" class="text-gray-500 hover:text-gray-700">
566
+ <i data-feather="x"></i>
567
+ </button>
568
+ </div>
569
+ <form id="send_email_to_customer" action="./HP_Dell_and_IBM_Managed_NOC.php" method="post">
570
+ <div class="modal-content">
571
+ <h4 class="modal-title text-lg font-semibold text-[var(--vlc-navy)] mb-4">Enter your email to download</h4>
572
+ <span id="error" class="hidden text-red-500 text-sm mb-2">Please enter valid business email.</span>
573
+ <input class="w-full px-4 py-2 border border-gray-300 rounded-md mb-4 focus:outline-none focus:ring-2 focus:ring-[var(--vlc-leaf)]"
574
+ name="customer_email" id="customer_email" type="email" placeholder="Business Email *" required autocomplete="off"/>
575
+ <input type="submit" value="Submit" id="distribution_btn" class="btn-primary w-full py-2 rounded-md font-bold"/>
576
+ <input type="hidden" id="g-recaptcha-response-two" name="g-recaptcha-response-two">
577
+ <input type="hidden" name="action" value="validate_captcha_two">
578
+ </div>
579
+ </form>
580
+ </div>
581
+ </div>
582
+ <div class="modal-content">
583
  <h4 class="modal-title text-xl font-bold text-[var(--vlc-navy)] mb-4">Enter your email to download</h4>
584
  <span id="error" class="hidden text-red-500 text-sm mb-2">Please enter valid business email.</span>
585
  <input class="w-full px-4 py-2 border border-gray-300 rounded-md mb-4 focus:outline-none focus:ring-2 focus:ring-[var(--vlc-leaf)]"
style.css CHANGED
@@ -27,10 +27,37 @@ body {
27
  font-weight: bold;
28
  cursor: pointer;
29
  }
30
-
31
  .close_modal:hover {
32
  color: var(--vlc-leaf);
33
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  h1 {
35
  font-size: 16px;
36
  margin-top: 0;
 
27
  font-weight: bold;
28
  cursor: pointer;
29
  }
 
30
  .close_modal:hover {
31
  color: var(--vlc-leaf);
32
  }
33
+
34
+ /* Modal styles */
35
+ #downloadModal {
36
+ transition: opacity 0.3s ease;
37
+ }
38
+
39
+ #downloadModal .bg-white {
40
+ animation: modalFadeIn 0.3s ease-out;
41
+ }
42
+
43
+ @keyframes modalFadeIn {
44
+ from {
45
+ opacity: 0;
46
+ transform: translateY(-20px);
47
+ }
48
+ to {
49
+ opacity: 1;
50
+ transform: translateY(0);
51
+ }
52
+ }
53
+
54
+ #closeModal {
55
+ transition: color 0.2s ease;
56
+ }
57
+
58
+ #closeModal:hover {
59
+ color: var(--vlc-navy);
60
+ }
61
  h1 {
62
  font-size: 16px;
63
  margin-top: 0;