diff --git a/components/Header.tsx b/components/Header.tsx index 21f3483..1c7bc4e 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -36,7 +36,7 @@ export default function Header({ dict, lang, dbSettings }: { dict: any, lang: st alt="Moy Beach Logo" width={120} height={48} - className={`h-12 w-auto transition-all duration-300 ${(!isScrolled && !dbSettings?.logoUrl) ? "brightness-0 invert opacity-90" : ""}`} + className={`h-12 w-auto transition-all duration-300 ${!isScrolled ? "brightness-0 invert opacity-90" : ""}`} style={{ width: "auto" }} /> diff --git a/components/Reservation.tsx b/components/Reservation.tsx deleted file mode 100644 index 814a7b3..0000000 --- a/components/Reservation.tsx +++ /dev/null @@ -1,170 +0,0 @@ -"use client"; - -import { motion } from "framer-motion"; -import { Calendar, Users, Coffee, Mail } from "lucide-react"; -import { useState } from "react"; -import { submitContactMessage } from "@/app/actions"; - -export default function Reservation() { - const [isSubmitting, setIsSubmitting] = useState(false); - const [status, setStatus] = useState<{ type: 'success' | 'error', message: string } | null>(null); - - const handleSubmit = async (e: React.FormEvent) => { - e.preventDefault(); - setIsSubmitting(true); - setStatus(null); - - const form = e.currentTarget; - const formData = new FormData(form); - - // Construct message from reservation fields - const date = formData.get('date') as string; - const guests = formData.get('guests') as string; - const serviceType = formData.get('serviceType') as string; - const name = formData.get('name') as string; - const phone = formData.get('phone') as string; - const email = formData.get('email') as string; - - const messageBody = `REZERVASYON TALEBİ -Tarih: ${date} -Kişi Sayısı: ${guests} -Hizmet Tipi: ${serviceType} -Telefon: ${phone}`; - - const contactFormData = new FormData(); - contactFormData.append('name', name); - contactFormData.append('email', email); - contactFormData.append('subject', 'Yeni Rezervasyon Talebi'); - contactFormData.append('message', messageBody); - - const result = await submitContactMessage(contactFormData); - - if (result.error) { - setStatus({ type: 'error', message: result.error }); - } else { - setStatus({ type: 'success', message: 'Rezervasyon talebiniz alınmıştır. Ekibimiz en kısa sürede sizinle iletişime geçecektir.' }); - form.reset(); - } - setIsSubmitting(false); - }; - - return ( -
- {/* Decorative background blobs */} -
-
- -
-
- {/* Inner glow */} -
- -
-
- -

Hemen Yerinizi Ayırtın

- -
-

Rezervasyon Talebi

-

- Unutulmaz bir Ege deneyimi için hemen formumuzu doldurun, ekibimiz en kısa sürede sizinle iletişime geçsin. -

-
- - -
- {/* Date */} -
- - -
- - {/* Guests */} -
- - -
- - {/* Service type */} -
- - -
-
- -
- - - -
- - {status && ( -
- {status.message} -
- )} - - - -

- Bu form ön rezervasyon talebidir. Kesin onay için ekibimiz sizinle iletişime geçecektir. -

-
-
-
-
- ); -}