Merge version_4 into main #3
@@ -276,7 +276,12 @@ export default function LandingPage() {
|
||||
imageAlt="Hotel contact section"
|
||||
mediaPosition="right"
|
||||
buttonText="Send Message"
|
||||
onSubmit={(data) => console.log("Form submitted:", data)}
|
||||
onSubmit={(data) => {
|
||||
const { name, email, message } = data;
|
||||
const subject = encodeURIComponent("Luxe Hotel Inquiry");
|
||||
const body = encodeURIComponent(`Name: ${name}\nEmail: ${email}\n\nMessage:\n${message}`);
|
||||
window.location.href = `mailto:rainerahi@gmail.com?subject=${subject}&body=${body}`;
|
||||
}}
|
||||
ariaLabel="Contact form section"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user