From 4c54b0a9dde5b1b133cdc0450f93f9bb4ee0f74e Mon Sep 17 00:00:00 2001 From: ayrisdev Date: Sun, 12 Apr 2026 13:38:13 +0300 Subject: [PATCH] fix: activate all broken buttons and links across the site with WhatsApp integration --- app/hizmetler/page.tsx | 23 +++-- components/CTASection.tsx | 113 +++++++++++----------- components/Footer.tsx | 165 +++++++++++++++++++++------------ components/Hero.tsx | 118 ++++++++++++----------- components/Navbar.tsx | 159 ++++++++++++++++++------------- components/ServicesPreview.tsx | 136 +++++++++++++-------------- 6 files changed, 400 insertions(+), 314 deletions(-) diff --git a/app/hizmetler/page.tsx b/app/hizmetler/page.tsx index 4e7286e..f9a35f9 100644 --- a/app/hizmetler/page.tsx +++ b/app/hizmetler/page.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Navbar } from "@/components/Navbar"; import { Footer } from "@/components/Footer"; import { FloatingWhatsApp } from "@/components/FloatingWhatsApp"; @@ -5,14 +7,7 @@ import { CTASection } from "@/components/CTASection"; import { Settings, ArrowUp, Truck, Compass, ArrowRight, Shield, Zap, Clock } from "lucide-react"; import Image from "next/image"; import { cn } from "@/lib/utils"; -import { Metadata } from "next"; -import { SERVICES } from "@/lib/data"; - -export const metadata: Metadata = { - title: "Muğla Vinç Kiralama ve Ağır Nakliyat Hizmetleri", - description: "Dalaman merkezli 500 tona kadar mobil vinç kiralama, sepetli platform, ağır nakliyat ve proje taşımacılığı. Ege Bölgesi ve Türkiye geneli profesyonel çözümler.", - keywords: ["muğla vinç kiralama", "dalaman vinç kiralama", "sepetli platform", "ağır nakliyat muğla", "proje taşımacılığı", "fethiye vinç", "ortaca vinç"], -}; +import { SERVICES, siteConfig } from "@/lib/data"; const FEATURES = [ { @@ -43,6 +38,11 @@ const STATS = [ ]; export default function ServicesPage() { + const handleWhatsApp = (serviceTitle: string) => { + const message = encodeURIComponent(`Merhaba, ${serviceTitle} hizmetiniz hakkında bilgi ve teklif almak istiyorum.`); + window.open(`https://wa.me/${siteConfig.contact.whatsapp}?text=${message}`, '_blank'); + }; + return (
@@ -95,9 +95,12 @@ export default function ServicesPage() {

-
diff --git a/components/CTASection.tsx b/components/CTASection.tsx index dd69dbb..884ef29 100644 --- a/components/CTASection.tsx +++ b/components/CTASection.tsx @@ -1,66 +1,67 @@ -"use client"; +'use client'; import { motion } from "framer-motion"; +import { ArrowRight, MessageCircle } from "lucide-react"; +import { siteConfig } from "@/lib/data"; export function CTASection() { + const handleWhatsApp = () => { + const message = encodeURIComponent("Merhaba, nakliyat ve vinç hizmetleriniz için teklif almak istiyorum."); + window.open(`https://wa.me/${siteConfig.contact.whatsapp}?text=${message}`, '_blank'); + }; + return ( -
- {/* Background Image & Overlay */} -
- Construction site at night -
-
+
+ {/* Background Graphic Elements */} +
+
+
-
- - - 7/24 Acil Müdahale - +
+
+
+ + Projenizi Birlikte Yükseltelim + + + Güçlü Filo,
+ Kesintisiz Operasyon +
+ + Her türlü ağır yük ve yüksek irtifa projeleriniz için profesyonel mühendislik çözümleri sunuyoruz. Dalaman'dan tüm Türkiye'ye 7/24 hizmetinizdeyiz. + +
- - Sıradaki Büyük Projeniz İçin Hazır mısınız? - - - Dalaman ve çevresinde profesyonel vinç ve nakliyat çözümleri için hemen fiyat teklifi alın. - - - - - - + + +

+ Ortalama yanıt süresi: 15 Dakika +

+
+
); diff --git a/components/Footer.tsx b/components/Footer.tsx index 1e5efc2..b31f3c1 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,66 +1,117 @@ +'use client'; + import Link from "next/link"; +import { Facebook, Instagram, Twitter, MapPin, Phone, Mail, ArrowUpRight } from "lucide-react"; +import { siteConfig } from "@/lib/data"; + +const QUICK_LINKS = [ + { name: "Hizmetlerimiz", href: "/hizmetler" }, + { name: "Makine Parkuru", href: "/filomuz" }, + { name: "Kurumsal", href: "/hakkimizda" }, + { name: "İletişim", href: "/iletisim" }, +]; + +const SERVICES = [ + { name: "Mobil Vinç Kiralama", href: "/hizmetler" }, + { name: "Sepetli Platform", href: "/hizmetler" }, + { name: "Ağır Nakliyat", href: "/hizmetler" }, + { name: "Proje Taşımacılığı", href: "/hizmetler" }, +]; export function Footer() { return ( -