vlcsolutions commited on
Commit
9639d67
·
verified ·
1 Parent(s): fcd290c

popup keep it in the middle and height and width should be the same and do some big

Browse files
Files changed (2) hide show
  1. index.html +5 -6
  2. style.css +12 -0
index.html CHANGED
@@ -377,9 +377,9 @@ class="inline-flex items-center text-[#002060] hover:text-[#8DC63F] px-3 py-2 te
377
 
378
  <!-- Panel -->
379
  <div class="relative h-full w-full flex items-center justify-center p-4">
380
- <div class="w-full max-w-md bg-white rounded-2xl shadow-2xl border border-[rgba(0,32,96,.08)] overflow-hidden">
381
- <div class="bg-[var(--vlc-navy)] text-white px-5 py-4">
382
- <div class="flex items-center justify-between">
383
  <h4 id="cta-modal-title" class="text-lg font-semibold">
384
  Enter your business email to download
385
  </h4>
@@ -390,9 +390,8 @@ class="inline-flex items-center text-[#002060] hover:text-[#8DC63F] px-3 py-2 te
390
  </button>
391
  </div>
392
  </div>
393
-
394
- <div class="p-6 space-y-4">
395
- <p id="cta-error" class="hidden text-sm text-red-600">
396
  Please use a valid business email (not a personal domain).
397
  </p>
398
 
 
377
 
378
  <!-- Panel -->
379
  <div class="relative h-full w-full flex items-center justify-center p-4">
380
+ <div class="w-[500px] h-[500px] bg-white rounded-2xl shadow-2xl border border-[rgba(0,32,96,.08)] overflow-hidden flex flex-col">
381
+ <div class="bg-[var(--vlc-navy)] text-white px-5 py-4 flex-shrink-0">
382
+ <div class="flex items-center justify-between">
383
  <h4 id="cta-modal-title" class="text-lg font-semibold">
384
  Enter your business email to download
385
  </h4>
 
390
  </button>
391
  </div>
392
  </div>
393
+ <div class="p-8 space-y-6 flex-grow flex flex-col justify-center">
394
+ <p id="cta-error" class="hidden text-sm text-red-600">
 
395
  Please use a valid business email (not a personal domain).
396
  </p>
397
 
style.css CHANGED
@@ -1,8 +1,20 @@
 
1
  body {
2
  padding: 2rem;
3
  font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
  }
5
 
 
 
 
 
 
 
 
 
 
 
 
6
  h1 {
7
  font-size: 16px;
8
  margin-top: 0;
 
1
+
2
  body {
3
  padding: 2rem;
4
  font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
5
  }
6
 
7
+ /* Modal styles */
8
+ #cta-modal {
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ }
13
+
14
+ #cta-modal .absolute {
15
+ position: static;
16
+ margin: auto;
17
+ }
18
  h1 {
19
  font-size: 16px;
20
  margin-top: 0;