implement server-side catering inquiry email submission and add styling for catering services page
This commit is contained in:
parent
617034ff08
commit
d1060fe508
@ -29,7 +29,7 @@ export async function submitReservation(formData: FormData) {
|
||||
|
||||
export async function submitCateringInquiry(formData: FormData) {
|
||||
const rawFormData = {
|
||||
namhello@antalyarestaurant.ca),
|
||||
name: formData.get('name'),
|
||||
email: formData.get('email'),
|
||||
phone: formData.get('phone'),
|
||||
eventType: formData.get('eventType'),
|
||||
@ -38,7 +38,7 @@ export async function submitCateringInquiry(formData: FormData) {
|
||||
message: formData.get('message'),
|
||||
};
|
||||
|
||||
try {
|
||||
try {
|
||||
// Send email to hello@antalyarestaurant.ca
|
||||
await transporter.sendMail({
|
||||
from: process.env.EMAIL_USER || '"Antalya Website" <noreply@antalyarestaurant.ca>',
|
||||
@ -71,8 +71,8 @@ try {
|
||||
});
|
||||
|
||||
return { success: true, message: 'Your catering inquiry has been submitted successfully to hello@antalyarestaurant.ca!' };
|
||||
} catch (error) {
|
||||
} catch (error) {
|
||||
console.error('Failed to send catering inquiry email:', error);
|
||||
return { success: false, message: 'There was an error sending your inquiry. Please try again or email us directly.' };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -468,7 +468,7 @@
|
||||
.mainHeading {
|
||||
font-family: var(--font-playfair);
|
||||
font-size: var(--main-heading-size);
|
||||
color: #5d4037;
|
||||
color: #c49c5c;
|
||||
line-height: 1.3;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user