feat: Add Formbricks integration, update forms with webhooks, enhance navigation

- Integrate @formbricks/js for future surveys (FormbricksProvider)
- Add WebhookForm component for unified form submission (contact/franchise/membership)
- Update contact form with reason dropdown field
- Update franchise form with new fields: estado, ciudad, socios checkbox
- Update franchise benefits: manuals, training platform, RH system, investment $100k
- Add Contacto link to desktop/mobile nav and footer
- Update membership form to use WebhookForm with membership_id select
- Update hero buttons to use #3E352E color consistently
- Refactor contact/franchise pages to use new hero layout and components
- Add webhook utility (lib/webhook.ts) for parallel submission to test+prod
- Add email receipt hooks to booking endpoints
- Update globals.css with new color variables and navigation styles
- Docker configuration for deployment
This commit is contained in:
Marco Gallegos
2026-01-17 22:54:20 -06:00
parent b7d6e51d67
commit 66e20d25a7
60 changed files with 4534 additions and 791 deletions

View File

@@ -187,6 +187,18 @@ export async function POST(request: NextRequest) {
)
}
// Send receipt email
try {
await fetch(`${process.env.NEXT_PUBLIC_APP_URL}/api/receipts/${booking.id}/email`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
}
})
} catch (emailError) {
console.error('Failed to send receipt email:', emailError)
}
return NextResponse.json({
success: true,
booking,

View File

@@ -149,6 +149,18 @@ export async function POST(request: NextRequest) {
)
}
// Send receipt email
try {
await fetch(`${process.env.NEXT_PUBLIC_APP_URL}/api/receipts/${booking.id}/email`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
}
})
} catch (emailError) {
console.error('Failed to send receipt email:', emailError)
}
return NextResponse.json({
success: true,
booking,