-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename contact.jsx to Contact.jsx
- Loading branch information
1 parent
f8975b1
commit d7c26bd
Showing
2 changed files
with
213 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
// import React from 'react'; | ||
|
||
// const Contact = () => { | ||
// const handleSubmit = (e) => { | ||
// e.preventDefault(); | ||
// // Handle form submission logic here (e.g., send to an API) | ||
// alert("Message submitted!"); | ||
// }; | ||
|
||
// return ( | ||
// <div className="max-w-[1240px] mx-auto p-6"> | ||
// <h2 className="text-3xl font-bold text-center mb-6">Contact Us</h2> | ||
|
||
// <form onSubmit={handleSubmit} className="mb-8"> | ||
// <div className="mb-4"> | ||
// <label htmlFor="name" className="block text-gray-700">Name:</label> | ||
// <input type="text" id="name" name="name" className="w-full p-2 border border-gray-300 rounded" required /> | ||
// </div> | ||
// <div className="mb-4"> | ||
// <label htmlFor="email" className="block text-gray-700">Email:</label> | ||
// <input type="email" id="email" name="email" className="w-full p-2 border border-gray-300 rounded" required /> | ||
// </div> | ||
// <div className="mb-4"> | ||
// <label htmlFor="subject" className="block text-gray-700">Subject:</label> | ||
// <input type="text" id="subject" name="subject" className="w-full p-2 border border-gray-300 rounded" required /> | ||
// </div> | ||
// <div className="mb-4"> | ||
// <label htmlFor="message" className="block text-gray-700">Message:</label> | ||
// <textarea id="message" name="message" className="w-full p-2 border border-gray-300 rounded" required></textarea> | ||
// </div> | ||
// <button type="submit" className="bg-green-500 text-white py-2 px-4 rounded hover:bg-green-600">Send Message</button> | ||
// </form> | ||
|
||
// <div className="mb-8"> | ||
// <h3 className="text-xl font-bold">Contact Information</h3> | ||
// <p>Email: <a href="mailto:[email protected]" className="text-blue-500">[email protected]</a></p> | ||
// <p>Phone: <a href="tel:+1234567890" className="text-blue-500">+1 (234) 567-890</a></p> | ||
// </div> | ||
|
||
// <div className="mb-8"> | ||
// <h3 className="text-xl font-bold">Our Location</h3> | ||
// <p>123 AgroTech Lane, Farming City, AG 12345</p> | ||
// <div className="h-64 w-full"> | ||
// <iframe | ||
// src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3151.835434509178!2d144.95373531531797!3d-37.81720997975197!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6ad642af0f2bfa39%3A0xa53e5c1a03bff6b!2sAgroTech!5e0!3m2!1sen!2sus!4v1633638358298!5m2!1sen!2sus" | ||
// width="100%" | ||
// height="100%" | ||
// style={{ border: 0 }} | ||
// allowFullScreen | ||
// loading="lazy" | ||
// /> | ||
// </div> | ||
// </div> | ||
|
||
// <div className="mb-8"> | ||
// <h3 className="text-xl font-bold">Follow Us</h3> | ||
// <div className="flex space-x-4"> | ||
// <a href="https://facebook.com/agrotech" target="_blank" rel="noopener noreferrer">Facebook</a> | ||
// <a href="https://twitter.com/agrotech" target="_blank" rel="noopener noreferrer">Twitter</a> | ||
// <a href="https://linkedin.com/company/agrotech" target="_blank" rel="noopener noreferrer">LinkedIn</a> | ||
// <a href="https://instagram.com/agrotech" target="_blank" rel="noopener noreferrer">Instagram</a> | ||
// </div> | ||
// </div> | ||
|
||
// <div> | ||
// <h3 className="text-xl font-bold">FAQs</h3> | ||
// <ul className="list-disc pl-5"> | ||
// <li>What services do you provide? - We offer AI solutions for agriculture, including crop predictions and soil analysis.</li> | ||
// <li>How can I get support? - You can reach out via our contact form or email us directly.</li> | ||
// <li>Where are you located? - Our office is located at 123 AgroTech Lane, Farming City, AG 12345.</li> | ||
// </ul> | ||
// </div> | ||
// </div> | ||
// ); | ||
// }; | ||
|
||
// export default Contact; | ||
|
||
import React from 'react'; | ||
|
||
const Contact = () => { | ||
const handleSubmit = (e) => { | ||
e.preventDefault(); | ||
alert("Message submitted!"); | ||
}; | ||
|
||
return ( | ||
<div className="max-w-[1240px] mx-auto p-6 bg-gray-50 rounded-lg shadow-md"> | ||
<h2 className="text-4xl font-extrabold text-center text-gray-800 mb-8">Get in Touch</h2> | ||
|
||
<form onSubmit={handleSubmit} className="bg-white p-8 rounded-lg shadow-lg mb-10"> | ||
<div className="mb-6"> | ||
<label htmlFor="name" className="block text-lg font-medium text-gray-700">Name:</label> | ||
<input | ||
type="text" | ||
id="name" | ||
name="name" | ||
className="w-full mt-2 p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-400" | ||
required | ||
/> | ||
</div> | ||
<div className="mb-6"> | ||
<label htmlFor="email" className="block text-lg font-medium text-gray-700">Email:</label> | ||
<input | ||
type="email" | ||
id="email" | ||
name="email" | ||
className="w-full mt-2 p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-400" | ||
required | ||
/> | ||
</div> | ||
<div className="mb-6"> | ||
<label htmlFor="subject" className="block text-lg font-medium text-gray-700">Subject:</label> | ||
<input | ||
type="text" | ||
id="subject" | ||
name="subject" | ||
className="w-full mt-2 p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-400" | ||
required | ||
/> | ||
</div> | ||
<div className="mb-6"> | ||
<label htmlFor="message" className="block text-lg font-medium text-gray-700">Message:</label> | ||
<textarea | ||
id="message" | ||
name="message" | ||
className="w-full mt-2 p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-400" | ||
rows="6" | ||
required | ||
/> | ||
</div> | ||
<button | ||
type="submit" | ||
className="w-full bg-green-500 text-white py-3 rounded-lg hover:bg-green-600 transition duration-300" | ||
> | ||
Send Message | ||
</button> | ||
</form> | ||
|
||
<div className="grid md:grid-cols-2 gap-8 mb-10"> | ||
<div> | ||
<h3 className="text-2xl font-bold text-gray-800 mb-4">Contact Information</h3> | ||
<p>Email: <a href="mailto:[email protected]" className="text-blue-500">[email protected]</a></p> | ||
<p>Phone: <a href="tel:+1234567890" className="text-blue-500">+1 (234) 567-890</a></p> | ||
</div> | ||
<div> | ||
<h3 className="text-2xl font-bold text-gray-800 mb-4">Our Location</h3> | ||
<p>123 AgroTech Lane, Farming City, AG 12345</p> | ||
<div className="h-64 w-full mt-4"> | ||
<iframe | ||
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3151.835434509178!2d144.95373531531797!3d-37.81720997975197!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6ad642af0f2bfa39%3A0xa53e5c1a03bff6b!2sAgroTech!5e0!3m2!1sen!2sus!4v1633638358298!5m2!1sen!2sus" | ||
width="100%" | ||
height="100%" | ||
style={{ border: 0 }} | ||
allowFullScreen | ||
loading="lazy" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="mb-10"> | ||
<h3 className="text-2xl font-bold text-gray-800 mb-4">Follow Us</h3> | ||
<div className="flex space-x-6"> | ||
<a | ||
href="https://facebook.com/agrotech" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-blue-600 hover:underline" | ||
> | ||
</a> | ||
<a | ||
href="https://twitter.com/agrotech" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-blue-400 hover:underline" | ||
> | ||
</a> | ||
<a | ||
href="https://linkedin.com/company/agrotech" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-blue-700 hover:underline" | ||
> | ||
</a> | ||
<a | ||
href="https://instagram.com/agrotech" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-pink-600 hover:underline" | ||
> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<h3 className="text-2xl font-bold text-gray-800 mb-4">FAQs</h3> | ||
<ul className="list-disc pl-6 space-y-2"> | ||
<li className="text-gray-600">What services do you provide? - We offer AI solutions for agriculture, including crop predictions and soil analysis.</li> | ||
<li className="text-gray-600">How can I get support? - You can reach out via our contact form or email us directly.</li> | ||
<li className="text-gray-600">Where are you located? - Our office is located at 123 AgroTech Lane, Farming City, AG 12345.</li> | ||
</ul> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Contact; | ||
|
This file was deleted.
Oops, something went wrong.