vlcsolutions commited on
Commit
ffe1ae9
·
verified ·
1 Parent(s): 6a47eaa

section 1: B2C Form and B2B Form use other design patterns

Browse files
Files changed (2) hide show
  1. index.html +44 -29
  2. style.css +26 -0
index.html CHANGED
@@ -539,42 +539,57 @@ class="inline-flex items-center text-[#002060] hover:text-[#8DC63F] px-3 py-2 te
539
  </p>
540
 
541
  <div class="grid md:grid-cols-2 gap-8">
542
- <!-- B2C Form -->
543
- <div class="card-accent bg-[var(--vlc-card)] rounded-lg shadow-lg p-6" data-aos="fade-right">
544
- <h3 class="text-xl font-bold mb-4">B2C E-commerce</h3>
545
- <form id="send_email_to_customer" action="./sendEmailToCustomer.php" method="post">
546
- <div id="myModal" class="modal">
547
- <div class="modal-content">
548
- <span class="close_modal">&times;</span>
549
- <h4 class="modal-title">Enter your email to download</h4>
550
- <span id="error" style="display:none;color:red;">Please enter valid business email.</span>
551
- <input class="w-full p-3 border rounded mb-4" name="customer_email" id="customer_email" type="text" placeholder="Email*" autocomplete="off" required/>
552
- <input type="submit" value="Submit" id="B_to_C" class="btn-primary px-6 py-2 rounded cursor-pointer"/>
553
- <input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response">
554
- <input type="hidden" name="action" value="validate_captcha">
555
  </div>
556
- </div>
557
- </form>
 
 
 
 
 
 
558
  </div>
559
 
560
- <!-- B2B Form -->
561
- <div class="card-accent bg-[var(--vlc-card)] rounded-lg shadow-lg p-6" data-aos="fade-left">
562
- <h3 class="text-xl font-bold mb-4">B2B E-commerce</h3>
563
- <form action="./sendEmailToCustomerB2B.php" method="post">
564
- <div id="myModal2" class="modal">
565
- <div class="modal-content">
566
- <span class="close_modal_2">&times;</span>
567
- <h4 class="modal-title">Enter your email to download</h4>
568
- <span id="error_2" style="display:none;color:red;">Please enter valid business email.</span>
569
- <input class="w-full p-3 border rounded mb-4" name="customer_email_2" id="customer_email_2" type="text" placeholder="Email*" autocomplete="off" required/>
570
- <input type="submit" value="Submit" id="B_to_B" class="btn-primary px-6 py-2 rounded cursor-pointer"/>
571
- <input type="hidden" id="g-recaptcha-response-two" name="g-recaptcha-response-two">
572
- <input type="hidden" name="action" value="validate_captcha_two">
 
 
 
 
 
573
  </div>
 
574
  </div>
 
 
 
 
 
575
  </form>
576
  </div>
577
- </div>
578
  </div>
579
  </section>
580
 
 
539
  </p>
540
 
541
  <div class="grid md:grid-cols-2 gap-8">
542
+ <!-- B2C Form - Modern Floating Label Design -->
543
+ <div class="relative bg-white rounded-xl shadow-xl p-8 overflow-hidden" data-aos="fade-right">
544
+ <div class="absolute inset-0 bg-gradient-to-br from-[var(--vlc-sky)] to-[var(--vlc-leaf)] opacity-10"></div>
545
+ <div class="relative">
546
+ <h3 class="text-2xl font-bold mb-6 text-[var(--vlc-navy)]">B2C E-commerce</h3>
547
+ <form id="send_email_to_customer" action="./sendEmailToCustomer.php" method="post" class="space-y-6">
548
+ <div class="relative z-0">
549
+ <input type="email" id="customer_email" name="customer_email"
550
+ class="block w-full px-4 py-3 text-gray-700 bg-transparent border-b-2 border-[var(--vlc-navy)] focus:border-[var(--vlc-leaf)] focus:outline-none peer"
551
+ placeholder=" " required autocomplete="off" />
552
+ <label for="customer_email" class="absolute text-gray-500 duration-300 transform -translate-y-6 scale-75 top-3 origin-[0] peer-focus:left-0 peer-focus:text-[var(--vlc-leaf)] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Email Address</label>
 
 
553
  </div>
554
+ <span id="error" class="text-red-500 text-sm hidden">Please enter a valid business email</span>
555
+ <button type="submit" id="B_to_C" class="w-full btn-accent px-6 py-3 rounded-lg font-medium flex items-center justify-center gap-2">
556
+ Get Started <i data-feather="arrow-right" class="w-4 h-4"></i>
557
+ </button>
558
+ <input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response">
559
+ <input type="hidden" name="action" value="validate_captcha">
560
+ </form>
561
+ </div>
562
  </div>
563
 
564
+ <!-- B2B Form - Card with Icon Design -->
565
+ <div class="bg-white rounded-xl shadow-xl p-8" data-aos="fade-left">
566
+ <div class="text-center mb-6">
567
+ <div class="inline-flex items-center justify-center w-16 h-16 bg-[var(--vlc-leaf-tint)] rounded-full mb-4">
568
+ <i data-feather="briefcase" class="w-8 h-8 text-[var(--vlc-navy)]"></i>
569
+ </div>
570
+ <h3 class="text-2xl font-bold text-[var(--vlc-navy)]">B2B E-commerce</h3>
571
+ </div>
572
+ <form action="./sendEmailToCustomerB2B.php" method="post" class="space-y-6">
573
+ <div>
574
+ <label for="customer_email_2" class="block text-sm font-medium text-gray-700 mb-1">Business Email</label>
575
+ <div class="relative">
576
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
577
+ <i data-feather="mail" class="w-5 h-5 text-gray-400"></i>
578
+ </div>
579
+ <input type="email" id="customer_email_2" name="customer_email_2"
580
+ class="block w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[var(--vlc-leaf)] focus:border-[var(--vlc-leaf)]"
581
+ placeholder="your@company.com" required autocomplete="off" />
582
  </div>
583
+ <span id="error_2" class="text-red-500 text-sm hidden">Please enter a valid business email</span>
584
  </div>
585
+ <button type="submit" id="B_to_B" class="w-full btn-primary px-6 py-3 rounded-lg font-medium flex items-center justify-center gap-2">
586
+ Request Demo <i data-feather="calendar" class="w-4 h-4"></i>
587
+ </button>
588
+ <input type="hidden" id="g-recaptcha-response-two" name="g-recaptcha-response-two">
589
+ <input type="hidden" name="action" value="validate_captcha_two">
590
  </form>
591
  </div>
592
+ </div>
593
  </div>
594
  </section>
595
 
style.css CHANGED
@@ -34,6 +34,32 @@ p {
34
  .btn-primary:hover i {
35
  transform: rotate(15deg);
36
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  /* Flip Card Styles */
39
  .flip-card {
 
34
  .btn-primary:hover i {
35
  transform: rotate(15deg);
36
  }
37
+ /* Floating Label Form Styles */
38
+ .relative.z-0 input:focus ~ label,
39
+ .relative.z-0 input:not(:placeholder-shown) ~ label {
40
+ transform: translateY(-1.5rem) scale(0.75);
41
+ color: var(--vlc-leaf);
42
+ }
43
+
44
+ /* Form Input Transitions */
45
+ input, textarea, select {
46
+ transition: all 0.3s ease;
47
+ }
48
+
49
+ input:focus, textarea:focus, select:focus {
50
+ box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.2);
51
+ }
52
+
53
+ /* Form Button Hover Effects */
54
+ button[type="submit"] {
55
+ transition: all 0.3s ease;
56
+ transform: translateY(0);
57
+ }
58
+
59
+ button[type="submit"]:hover {
60
+ transform: translateY(-2px);
61
+ box-shadow: 0 4px 12px rgba(0, 32, 96, 0.15);
62
+ }
63
 
64
  /* Flip Card Styles */
65
  .flip-card {