diff --git a/public/images/contact.jpg b/public/images/contact.jpg new file mode 100644 index 0000000..9410a02 Binary files /dev/null and b/public/images/contact.jpg differ diff --git a/public/images/contact/contact.jpg b/public/images/contact/contact.jpg new file mode 100644 index 0000000..9410a02 Binary files /dev/null and b/public/images/contact/contact.jpg differ diff --git a/src/components/CallToAction.tsx b/src/components/CallToAction.tsx index 34a076c..f1f45ba 100644 --- a/src/components/CallToAction.tsx +++ b/src/components/CallToAction.tsx @@ -25,7 +25,7 @@ export function CallToAction() { - + Book a Meeting diff --git a/src/components/ContactHero.tsx b/src/components/ContactHero.tsx index 71bcbea..7f1ba27 100644 --- a/src/components/ContactHero.tsx +++ b/src/components/ContactHero.tsx @@ -1,63 +1,14 @@ 'use client' -import { BuildingOffice2Icon, EnvelopeIcon, PhoneIcon } from '@heroicons/react/24/outline' +import { BuildingOffice2Icon, EnvelopeIcon } from '@heroicons/react/24/outline' import { useState } from 'react' +import Image from 'next/image' export function ContactHero() { - const [formData, setFormData] = useState({ - firstName: '', - lastName: '', - email: '', - phoneNumber: '', - message: '' - }) - const [isSubmitting, setIsSubmitting] = useState(false) - const [submitStatus, setSubmitStatus] = useState<'idle' | 'success' | 'error'>('idle') - - const handleInputChange = (e: React.ChangeEvent) => { - const { name, value } = e.target - setFormData(prev => ({ - ...prev, - [name]: value - })) - } - - const handleSubmit = async (e: React.FormEvent) => { - e.preventDefault() - setIsSubmitting(true) - setSubmitStatus('idle') - - try { - const response = await fetch('/api/contact', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(formData), - }) - - if (response.ok) { - setSubmitStatus('success') - setFormData({ - firstName: '', - lastName: '', - email: '', - phoneNumber: '', - message: '' - }) - } else { - setSubmitStatus('error') - } - } catch (error) { - console.error('Error submitting form:', error) - setSubmitStatus('error') - } finally { - setIsSubmitting(false) - } - } return ( -
+
+ {/* Left container (unchanged) */}
@@ -100,7 +51,9 @@ export function ContactHero() { Get in Touch

- At OurWorld, we value your feedback and inquiries. Whether you're interested in our ventures, have questions about our technologies, or want to collaborate, we're here to connect. Reach out to us today and let's build a better digital future together. + At OurWorld, we value your feedback and inquiries. Whether you're interested in our ventures, have + questions about our technologies, or want to collaborate, we're here to connect. Reach out to us today + and let's build a better digital future together.

@@ -120,7 +73,7 @@ export function ContactHero() {
-
-
- {/* Status Messages */} - {submitStatus === 'success' && ( -
-
- Thank you! Your message has been sent successfully. We'll get back to you soon. -
-
- )} - {submitStatus === 'error' && ( -
-
- Sorry, there was an error sending your message. Please try again or contact us directly. -
-
- )} -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-