import { getServiceBySlug, getLocationBySlug, getProjectsByService, getSettings } from "@/app/actions"; import Navbar from "@/components/Navbar"; import Footer from "@/components/Footer"; import Image from "next/image"; import Link from "next/link"; import { ArrowRight, CheckCircle2 } from "lucide-react"; import { Metadata } from "next"; import { notFound } from "next/navigation"; interface Props { params: Promise<{ slug: string; location: string; }>; } export async function generateMetadata({ params }: Props): Promise { const { slug, location: locationSlug } = await params; const [service, location] = await Promise.all([ getServiceBySlug(slug), getLocationBySlug(locationSlug) ]); if (!service || !location) return {}; const title = `${location.name} ${service.title} | Muğla Dijital`; const description = `${location.name} bölgesinde profesyonel ${service.title.toLowerCase()} hizmetleri. Muğla Dijital Medya Ajansı ile markanızı zirveye taşıyın.`; return { title, description, alternates: { canonical: `/services/${slug}/${locationSlug}`, } }; } export default async function ServiceLocationPage({ params }: Props) { const { slug, location: locationSlug } = await params; const [service, location, settings] = await Promise.all([ getServiceBySlug(slug), getLocationBySlug(locationSlug), getSettings() ]); if (!service || !location) { notFound(); } const projects = await getProjectsByService(service.title); return (
{/* Hero Section */}
{location.name} / {service.title}

{location.name}
{service.title}
Çözümleri.

{location.name} bölgesindeki işletmeniz için profesyonel {service.title.toLowerCase()} hizmetleri sunuyoruz. Markanızın dijital varlığını {location.name} ruhuna uygun, estetik ve stratejik bir dille inşa ediyoruz.

{/* Content & Features */}

Neler Sunuyoruz?

{[ "Profesyonel Ekipman", "Yüksek Çözünürlük", "Hızlı Teslimat", "Stratejik Planlama", "Yaratıcı Kurgu", "Müşteri Odaklılık" ].map((feature) => (
{feature}
))}

{location.name}, Muğla'nın en değerli bölgelerinden biri olarak kendine has bir kimliğe sahip. Muğla Dijital olarak biz, bu bölgedeki rekabetin farkındayız ve markanızı öne çıkaracak {service.title.toLowerCase()} stratejilerini hayata geçiriyoruz.

{service.description || "Hizmetimiz hakkında detaylı bilgi için bizimle iletişime geçebilirsiniz."}

{`${location.name}
{/* Related Projects */} {projects.length > 0 && (
Referanslarımız

Örnek Çalışmalar

{projects.map((project: any) => (
{project.title}

{project.title}

))}
)} {/* CTA */}

{location.name} İçin
Strateji Geliştirelim.

{location.name} bölgesindeki projeniz için profesyonel destek almaya hazır mısınız?

Teklif Al
); }