import Image from "next/image"; import Link from "next/link"; import * as Icons from "lucide-react"; import { ArrowRight, Star } from "lucide-react"; import ScrollReveal from "@/components/ScrollReveal"; import HeroVideo from "@/components/HeroVideo"; const defaultFeatures = [ { icon: "Wind", label: "Kitesurf Okulu", sub: "IKO Sertifikalı" }, { icon: "Anchor", label: "Yoga Platformu", sub: "Nehir Kenarı" }, { icon: "Utensils", label: "Restoran & Bar", sub: "Ege Mutfağı" }, { icon: "BedDouble", label: "Butik Odalar", sub: "3 Tip Konaklama" }, { icon: "Sun", label: "Gün Batımı Terası", sub: "Gökova Manzarası" }, ]; const rooms = [ { img: "https://images.unsplash.com/photo-1582719478250-c89404bb8a0e?q=80&w=2940&auto=format&fit=crop", badge: "Standart", badgeStyle: "bg-white/90 text-dark", name: "Standart Oda", desc: "Konforlu ve modern tasarımlı odamızda huzurlu bir konaklama.", price: "₺4.500", cta: "primary" as const, }, { img: "https://images.unsplash.com/photo-1566665797739-1674de7a421a?q=80&w=2874&auto=format&fit=crop", badge: "Popüler", badgeStyle: "bg-accent text-white", name: "Nehir Manzaralı Oda", desc: "Azmak nehrinin eşsiz manzarası eşliğinde güne uyanın.", price: "₺5.500", cta: "accent" as const, }, { img: "https://images.unsplash.com/photo-1499955085172-a104c9463ece?q=80&w=2940&auto=format&fit=crop", badge: "Premium", badgeStyle: "bg-white/90 text-dark", name: "Ahşap Bungalow", desc: "Doğayla tamamen iç içe, teraslı ve bağımsız girişli.", price: "₺7.000", cta: "primary" as const, }, ]; const testimonials = [ { text: "Akyaka'da pek çok yerde kaldım ama Kite Beach bambaşka bir deneyimdi. Nehrin sesi, kitesurf dersleri ve muhteşem kahvaltı — her şey mükemmeldi.", name: "Ayşe K.", from: "İstanbul", }, { text: "Yoga seansları ahşap platformda, sabah erken saatte, nehir manzarası eşliğinde. Kelimelerle anlatmak zor — mutlaka yaşanmalı.", name: "Marco B.", from: "İtalya", }, { text: "Eğitmenler son derece ilgili. Kitesurf derslerimden sonra bağımlısı oldum. Önümüzdeki yaz mutlaka döneceğim.", name: "Mehmet Ö.", from: "Ankara", }, ]; import { getDictionary, Locale } from "./dictionaries"; import prisma from "@/lib/prisma"; async function getInstagramData() { const url = 'https://instagram120.p.rapidapi.com/api/instagram/posts'; const options = { method: 'POST', headers: { 'x-rapidapi-key': process.env.RAPIDAPI_KEY || '', 'x-rapidapi-host': 'instagram120.p.rapidapi.com', 'Content-Type': 'application/json' }, body: JSON.stringify({ username: 'kitebeachakyaka', maxId: '' }), next: { revalidate: 86400 } }; try { const res = await fetch(url, options); if (!res.ok) throw new Error('Instagram fetch failed'); const data = await res.json(); return data.result?.edges?.slice(0, 4).map((edge: any) => edge.node) || []; } catch (err) { console.error("Instagram fetch error:", err); return []; } } export default async function Home({ params }: { params: Promise<{ lang: string }> }) { const { lang } = await params; const dict = await getDictionary(lang as Locale); const heroDb = await prisma.heroSection.findUnique({ where: { lang } }); const heroData = heroDb || { location: dict.home.location, welcome: dict.home.welcome, title: dict.home.title, subtitle: dict.home.subtitle, bookNow: dict.home.bookNow, exploreActivities: dict.home.exploreActivities, scroll: dict.home.scroll, }; const activities = await prisma.activity.findMany({ where: { lang }, orderBy: { order: "asc" } }); const events = await prisma.event.findMany({ where: { lang }, orderBy: { date: "asc" } }); const dbFeatures = await prisma.feature.findMany({ where: { lang }, orderBy: { order: "asc" } }); const aboutDb = await prisma.aboutSection.findUnique({ where: { lang } }); const aboutData = aboutDb || { badge: lang === "en" ? "Our Story" : "Hikayemiz", titleLine1: lang === "en" ? "In the" : "Doğanın", titleLine2: lang === "en" ? "Heart of Nature" : "Kalbinde", titleHighlight: lang === "en" ? "A Special Escape" : "Özel Bir Kaçış", description1: lang === "en" ? "Located right on the banks of the Azmak River flowing into the crystal waters of the Gulf of Gokova, we are in a unique location where the wind never ceases." : "Gökova Körfezi'nin kristal sularına dökülen Azmak Nehri'nin hemen kıyısında, rüzgarın hiç eksik olmadığı eşsiz bir konumda yer alıyoruz.", description2: lang === "en" ? "Kite Beach Akyaka offers a unique living space that integrates the passion for kitesurfing with nature, comfort, and local flavors." : "Kite Beach Akyaka; kitesurf tutkusunu doğayla, konforla ve yerel lezzetlerle bütünleştiren benzersiz bir yaşam alanı sunar.", image: "https://images.unsplash.com/photo-1544551763-46a013bb70d5?q=80&w=2940&auto=format&fit=crop", statsGuestCount: "500+", statsGuestLabel: lang === "en" ? "Happy Guests" : "Mutlu Misafir", statsYearCount: "10+", statsYearLabel: lang === "en" ? "Years Experience" : "Yıl Deneyim", badgeIkoTitle: "IKO", badgeIkoLabel: lang === "en" ? "Certified" : "Sertifikalı" }; const displayFeatures = dbFeatures.length > 0 ? dbFeatures : defaultFeatures; const instagramPosts = await getInstagramData(); return (
{heroData.subtitle}
{aboutData.description1}
{aboutData.description2}
Hikayemizi OkuyunAkyaka’nın en güzel köşesinde, nehrin dinginliği ile denizin sonsuz maviliğinin kucaklaştığı o özel noktadayız. Kapınızı açtığınız anda sizi karşılayan nehir kıyısının sessizliği, güne başlamak için en huzurlu davetiniz olacak. Doğanın kalbinde, nehir manzarasına karşı yaptığınız bir yoga seansıyla ruhunuzu dengelerken; hemen ardından Akyaka’nın meşhur rüzgarlarında Kite Surf ile adrenalini zirveye taşıyabilirsiniz. Günün yorgunluğunu ise, restoranımızın mutfağından çıkan lezzetlerle, Ege’nin kendine has o büyüleyici gün batımını izleyerek geride bırakın. Burada zaman, sadece sizin istediğiniz hızda akıyor.
{room.desc}
{act.description}
)} {i !== 0 && ( {act.price} )} {i === 0 && ( {act.price}{ev.description}
{post.caption?.text}
"{t.text}"
Rüzgar seni çağırıyor. Hemen yerini ayırt ve bu eşsiz deneyimin bir parçası ol.
Hemen Rezervasyon Yap