import React, { useState } from "react"; import { Mail, Phone, MapPin, FileText, Building, CalendarDays, CalendarCheck, MessageCircle, } from "lucide-react"; import { useLanguage } from "../context/LanguageContext"; const Contact: React.FC = () => { const { t } = useLanguage(); const [formData, setFormData] = useState({ company: "", fullName: "", email: "", phone: "", address: "", branchCount: "", userCount: "", message: "", }); const handleChange = ( e: React.ChangeEvent ) => { const { name, value } = e.target; setFormData((prev: any) => ({ ...prev, [name]: value, })); }; const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); const apiUrl = `${import.meta.env.VITE_API_URL}/api/app/demo/demo-form`; try { const response = await fetch(apiUrl, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(formData), }); if (response.ok) { alert("Form başarıyla gönderildi."); setFormData({ company: "", fullName: "", email: "", phone: "", address: "", branchCount: "", userCount: "", message: "", }); } else { alert("Bir hata oluştu. Lütfen tekrar deneyin."); } } catch (error) { console.error("Gönderim hatası:", error); alert("Sunucuya ulaşılamıyor."); } }; return (
{/* Hero Section */}

{t("contact.title")}

{t("contact.subtitle")}

{/* Contact Information */}

{t("contact.info.title")}

{t("contact.address.full")}

+90 (544) 769 7 638

Kozyatağı

32374982750

{t("contact.bank.title")}

Enpara Logo

Özlem Öztürk

03663 / Enpara
73941177
TR65 0011 1000 0000 0073 9411 77

{/* Bank Information */}

{t("contact.workHours")}

{t("contact.workHours.weekday")}

{t("contact.workHours.weekend")}

{t("contact.workHours.whatsapp")}

{t("demo.form.title")}