From c5375903f3417499df30ac5920f06ed2fdc4270b Mon Sep 17 00:00:00 2001
From: Akshay
Date: Wed, 29 Jan 2025 12:53:06 +0530
Subject: [PATCH 1/2] Add success message to hero form
---
assets/js/script.js | 26 +++++++++++++++++++++++++-
index.html | 8 +++-----
2 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/assets/js/script.js b/assets/js/script.js
index da49fef..5f736b8 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -39,4 +39,28 @@ window.addEventListener("scroll", function () {
header.classList.remove("active");
backTopBtn.classList.remove("active");
}
-});
\ No newline at end of file
+});
+
+// Hero form variables
+const heroForm = document.querySelector("[data-hero-form]");
+const heroFormInput = document.querySelector("[data-hero-form-input]");
+const successMessage = document.getElementById("hero-success-message");
+
+// Listen for form submit
+heroForm.addEventListener("submit", function (e) {
+ e.preventDefault(); // Prevent the default form submission
+
+ // Check if the form is valid
+ if (heroForm.checkValidity()) {
+ // Show success message
+ successMessage.style.display = "block";
+
+ // Clear the form input field
+ heroFormInput.value = "";
+
+ // Hide the success message after 3 seconds
+ setTimeout(() => {
+ successMessage.style.display = "none";
+ }, 3000);
+ }
+});
diff --git a/index.html b/index.html
index 25e2fee..54917b1 100644
--- a/index.html
+++ b/index.html
@@ -113,13 +113,11 @@ Make Chat Easy For Today's Digital Customers
increase your sale.
-
-
+ Thank you! Your email has been successfully submitted.
-
From 291dbfec172f8de0edf1521207e9dcb5e4e1fc22 Mon Sep 17 00:00:00 2001
From: Akshay
Date: Wed, 29 Jan 2025 13:05:18 +0530
Subject: [PATCH 2/2] Updated 'Our Solutions For You' section content with
relevant descriptions
---
index.html | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/index.html b/index.html
index 54917b1..e5cbdf7 100644
--- a/index.html
+++ b/index.html
@@ -171,9 +171,7 @@
Make Chat Easy For Today's Digital Customers
Our Solutions For You
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla imperdiet nulla duis ac. Id massa scelerisque
- venenatis,
- massa gravida donec orci.
+ We offer a variety of innovative solutions tailored to meet your business needs. Whether you're looking for exceptional customer support, effective engagement strategies, or powerful marketing solutions, we have you covered.
@@ -193,8 +191,7 @@
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla imperdiet nulla duis consectetur
- adipiscing elit.
+ Our support team is always ready to assist you with any challenges you may face. We provide round-the-clock customer service, ensuring you get the help you need, when you need it.
@@ -223,8 +220,7 @@
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla imperdiet nulla duis consectetur
- adipiscing elit.
+ We specialize in creating lasting relationships with your audience. Our engagement strategies are designed to foster deeper connections, driving loyalty and enhancing user experience.
@@ -253,8 +249,7 @@
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla imperdiet nulla duis consectetur
- adipiscing elit.
+ Our marketing solutions are designed to help your business stand out in a crowded market. From digital advertising to social media strategies, we ensure your brand reaches the right audience.