From 847a0d463a8c49fdcdb1d4c7aa1ea8ed8d258542 Mon Sep 17 00:00:00 2001 From: kevin-asprec Date: Tue, 17 Mar 2026 09:50:10 +0800 Subject: [PATCH] feat: connect Request Demo form to TapTrack Hub API Replace Formspree placeholder with live POST to taptrack-hub.juankibin.space/api/demo-requests so all inbound demo leads are stored in the Hub. --- src/components/ContactSection.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ContactSection.vue b/src/components/ContactSection.vue index b00f754..c9249ae 100644 --- a/src/components/ContactSection.vue +++ b/src/components/ContactSection.vue @@ -13,7 +13,7 @@ const bulletPoints = [ '✓ Demo of the live system before you commit', ] -const FORMSPREE_URL = 'https://formspree.io/f/YOUR_FORM_ID' +const HUB_API_URL = 'https://taptrack-hub.juankibin.space/api/demo-requests' async function handleSubmit() { error.value = '' @@ -23,7 +23,7 @@ async function handleSubmit() { } submitting.value = true try { - const res = await fetch(FORMSPREE_URL, { + const res = await fetch(HUB_API_URL, { method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, body: JSON.stringify({ school: form.value.school, contact: form.value.contact, phone: form.value.phone }),