From b2386f2f43da39e9d6448b29449544b17584e049 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 6 Mar 2026 21:46:54 +0000 Subject: [PATCH] Update src/app/contact/page.tsx --- src/app/contact/page.tsx | 185 ++++++++++++++++----------------------- 1 file changed, 77 insertions(+), 108 deletions(-) diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index dbab3ba..5aba4e2 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -2,30 +2,22 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen"; +import ContactSplitForm from "@/components/sections/contact/ContactSplitForm"; import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal"; -import { Mail, Phone, MapPin, Send } from "lucide-react"; -import { useState } from "react"; +import { Mail, Phone, MapPin, Clock } from "lucide-react"; +import Link from "next/link"; export default function ContactPage() { - const [formData, setFormData] = useState({ - name: "", email: "", subject: "", message: ""}); - const [submitted, setSubmitted] = useState(false); - const navItems = [ { name: "Ana Sayfa", id: "/" }, { name: "Öğretmenler", id: "/teachers" }, - { name: "Etkinlikler", id: "events" }, - { name: "Çalışma Programı", id: "schedule" }, + { name: "Etkinlikler", id: "/events" }, + { name: "Çalışma Programı", id: "/schedule" }, ]; - const handleSubmit = (e: React.FormEvent) => { - e.preventDefault(); - // Simulate form submission - setSubmitted(true); - setTimeout(() => { - setFormData({ name: "", email: "", subject: "", message: "" }); - setSubmitted(false); - }, 2000); + const handleFormSubmit = (data: Record) => { + console.log("Form submitted:", data); + alert("Teşekkürler! Mesajınız alındı. Kısa sürede sizinle iletişime geçeceğiz."); }; return ( @@ -41,6 +33,13 @@ export default function ContactPage() { secondaryButtonStyle="layered" headingFontWeight="light" > + {/* Breadcrumb */} + + -
-
-
+
+
+ {/* Header */} +

Bize Ulaşın

-

- Sorularınız mı var? Bize mesaj gönderin, en kısa sürede sizinle iletişime geçeceğiz. +

+ Sorularınız mı var? Destek ekibimiz size yardımcı olmaktan mutluluk duyacaktır.

-
- {/* Contact Info Cards */} - {[ - { icon: Mail, label: "Email", value: "info@platform.com" }, - { icon: Phone, label: "Telefon", value: "+90 (212) 555-0123" }, - { icon: MapPin, label: "Adres", value: "İstanbul, Türkiye" }, - ].map((item, idx) => { - const IconComponent = item.icon; - return ( -
- -

{item.label}

-

{item.value}

-
- ); - })} + {/* Contact Info Cards */} +
+
+
+ +

Email

+
+

info@platform.com

+

Yanıt süresi: 2 saat

+
+ +
+
+ +

Telefon

+
+

+90 (212) 555-0123

+

Haftada 7 gün açık

+
+ +
+
+ +

Adres

+
+

İstanbul, Türkiye

+

Merkez ofis

+
+ +
+
+ +

Saatler

+
+

24/7 Müşteri Desteği

+

Her zaman buradayız

+
{/* Contact Form */} -
-
-
-
- - setFormData({ ...formData, name: e.target.value })} - className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground placeholder-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary-cta min-h-11" - placeholder="Adınızı giriniz" - /> -
-
- - setFormData({ ...formData, email: e.target.value })} - className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground placeholder-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary-cta min-h-11" - placeholder="E-posta adresiniz" - /> -
-
- -
- - setFormData({ ...formData, subject: e.target.value })} - className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground placeholder-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary-cta min-h-11" - placeholder="Konuyu yazınız" - /> -
- -
- -