diff --git a/app/contact/page.tsx b/app/contact/page.tsx index fcd4637..04ede26 100644 --- a/app/contact/page.tsx +++ b/app/contact/page.tsx @@ -1,24 +1,13 @@ "use client" -import type React from "react" - import Image from "next/image" import Link from "next/link" import { Button } from "@/components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" -import { Input } from "@/components/ui/input" -import { Textarea } from "@/components/ui/textarea" import { useState } from "react" export default function ContactPage() { const [isLoading, setIsLoading] = useState(false) - const [formData, setFormData] = useState({ - name: "", - email: "", - subject: "", - message: "", - }) - const [isSubmitting, setIsSubmitting] = useState(false) const handleMonthlySponsorship = async () => { setIsLoading(true) @@ -53,42 +42,6 @@ export default function ContactPage() { } } - const handleSubmit = async (e: React.FormEvent) => { - e.preventDefault() - setIsSubmitting(true) - - try { - console.log("[v0] Submitting contact form:", formData) - - const response = await fetch("/api/send-email", { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify(formData), - }) - - if (!response.ok) { - const errorData = await response.json() - throw new Error(errorData.error || "Failed to send message") - } - - // Reset form on success - setFormData({ name: "", email: "", subject: "", message: "" }) - alert("Message sent successfully! Jerry will get back to you soon.") - } catch (error) { - console.error("Error sending message:", error) - alert("There was an error sending your message. Please try again.") - } finally { - setIsSubmitting(false) - } - } - - const handleInputChange = (e: React.ChangeEvent) => { - const { id, value } = e.target - setFormData((prev) => ({ ...prev, [id]: value })) - } - return (
{/* Header */} @@ -133,72 +86,40 @@ export default function ContactPage() { {/* Contact Form */} - Send Jerry a Message + Contact Jerry Directly - -
-
- - + +
+

+ Ready to get in touch with Jerry? Reach out directly using his contact information below. +

+ + -
- - -
- -
- - -
- -
- -