From 6e93a377247c3c964772b47ac3c6e0c65e1ae736 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 21:21:38 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 328 ++++++++++++++++++----------------------------- 1 file changed, 122 insertions(+), 206 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 62c11f9..662134b 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -7,67 +7,9 @@ import TextSplitAbout from "@/components/sections/about/TextSplitAbout"; import PricingCardTwo from "@/components/sections/pricing/PricingCardTwo"; import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree"; import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal"; -import { ArrowRight, CheckCircle, Sparkles, Phone, Mail } from "lucide-react"; -import { useState } from "react"; +import { Sparkles, CheckCircle, Phone, Mail, Scissors, Users, Star } from "lucide-react"; export default function LandingPage() { - const [submitted, setSubmitted] = useState(false); - const [formData, setFormData] = useState({ - fullName: "", businessName: "", email: "", phone: "", message: "" - }); - const [error, setError] = useState(""); - - const handlePhoneClick = () => { - window.location.href = "tel:206-741-9017"; - }; - - const handleEmailClick = () => { - window.location.href = "mailto:CoreScale.co@gmail.com"; - }; - - const handleFormSubmit = async (e: React.FormEvent) => { - e.preventDefault(); - setError(""); - - try { - // Send email using EmailJS or direct backend call - const response = await fetch("/api/send-email", { - method: "POST", headers: { - "Content-Type": "application/json" - }, - body: JSON.stringify({ - to: "CoreScale.co@gmail.com", subject: "New Website Request – CoreScale", name: formData.fullName, - email: formData.email, - businessName: formData.businessName, - phone: formData.phone, - message: formData.message - }) - }); - - if (response.ok) { - setSubmitted(true); - setFormData({ - fullName: "", businessName: "", email: "", phone: "", message: "" - }); - setTimeout(() => setSubmitted(false), 5000); - } else { - setError("Failed to send form. Please try again."); - } - } catch (error) { - console.error("Error submitting form:", error); - setError("An error occurred. Please try again."); - } - }; - - const handleInputChange = ( - e: React.ChangeEvent - ) => { - setFormData({ - ...formData, - [e.target.name]: e.target.value - }); - }; - return ( {/* Contact Form */} - {!submitted ? ( -
- {error && ( -
-

{error}

-
- )} -
-
- - -
-
- - -
-
- -
-
- - -
-
- - -
-
- -
+ +
+
-