diff --git a/app/api/register/route.ts b/app/api/register/route.ts index 244d203..cd3b78d 100644 --- a/app/api/register/route.ts +++ b/app/api/register/route.ts @@ -5,7 +5,7 @@ export async function POST(request: NextRequest) { try { const body = await request.json() - const { name, email, contact, contributions, expectations, howHeard, dietary, crewConsent } = body + const { name, email, contact, contributions, expectations, howHeard, dietary, crewConsent, wantFood } = body // Validate required fields if (!name || !email || !contact || !contributions || !expectations || !crewConsent) { @@ -28,6 +28,7 @@ export async function POST(request: NextRequest) { howHeard: howHeard || "", dietary: Array.isArray(dietary) ? dietary.join(", ") : dietary || "", crewConsent, + wantFood: wantFood || false, }) console.log(`[Register API] Registration added for ${name} at row ${rowNumber}`) diff --git a/app/register/page.tsx b/app/register/page.tsx index 33e0a0e..3dcd2ec 100644 --- a/app/register/page.tsx +++ b/app/register/page.tsx @@ -16,6 +16,7 @@ export default function RegisterPage() { const [step, setStep] = useState<"form" | "payment">("form") const [isSubmitting, setIsSubmitting] = useState(false) const [includeAccommodation, setIncludeAccommodation] = useState(true) + const [wantFood, setWantFood] = useState(false) const [accommodationVenue, setAccommodationVenue] = useState<"commons-hub" | "herrnhof">("commons-hub") const [accommodationType, setAccommodationType] = useState("ch-multi") const [formData, setFormData] = useState({ @@ -85,6 +86,7 @@ export default function RegisterPage() { howHeard: formData.howHeard, dietary: dietaryString, crewConsent: formData.crewConsent, + wantFood, }), }) @@ -283,13 +285,26 @@ export default function RegisterPage() {
)} - {/* Food note */} + {/* Food */}- Food:{" "} - We'll follow up via email with food options and pricing closer to the event. - Your dietary preferences from step 1 have been noted. -
++ We are exploring co-producing our own meals as a community. More details and costs + will be shared soon — checking this box registers your interest so we can plan accordingly. + Your dietary preferences from step 1 have been noted. +
+