Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 51eb361051 | |||
| e405829fbf | |||
| dc946328a3 | |||
| 1b4ee73e77 |
@@ -276,7 +276,12 @@ export default function LandingPage() {
|
|||||||
imageAlt="Hotel contact section"
|
imageAlt="Hotel contact section"
|
||||||
mediaPosition="right"
|
mediaPosition="right"
|
||||||
buttonText="Send Message"
|
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"
|
ariaLabel="Contact form section"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user