diff --git a/src/app/page.tsx b/src/app/page.tsx index 558ae58..d83abcd 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,6 +11,20 @@ import FooterSimple from "@/components/sections/footer/FooterSimple"; import { Award, BarChart3, Brain, Github, Linkedin, Mail, Sparkles, Target, Users, Zap } from "lucide-react"; export default function LandingPage() { + const handleContactSubmit = (data: Record) => { + // Send form data to webild email + fetch('https://api.example.com/contact', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ + ...data, + recipient: 'webild@webild.com' + }) + }).catch(err => console.error('Form submission error:', err)); + }; + return ( @@ -151,6 +162,7 @@ export default function LandingPage() { ]} textarea={{ name: "message", placeholder: "Tell us about your project...", rows: 5, required: true }} buttonText="Send Message" + onSubmit={handleContactSubmit} ariaLabel="Contact form section" />