"use client"; import { motion } from "framer-motion"; import { useRef, useState, useEffect } from "react"; const testimonials = [ { name: "Ayşe Y.", location: "Türkiye", text: "Bardakçı Koyu'nun büyüleyici manzarasında unutulmaz bir tatil geçirdik. Personelin ilgisi ve otelin zarafeti bizi mest etti.", stars: 5 }, { name: "John D.", location: "United Kingdom", text: "An absolutely stunning resort. The spa treatment was world-class, and the breakfast by the sea was the highlight of our stay.", stars: 5 }, { name: "Klaus M.", location: "Germany", text: "Sehr schönes Hotel mit exzellentem Service. Der Privatstrand ist kristallklar ve sehr ruhig. Wir kommen auf jeden Fall wieder!", stars: 5 }, { name: "Elena S.", location: "Italy", text: "Un posto magico. La colazione è fantastica e la camera con vista mare ha superato le nostre aspettative. Grazie Salmakis!", stars: 5 }, { name: "Mehmet A.", location: "Türkiye", text: "Gastronomi anlamında gerçekten çok başarılı. Her akşam farklı bir lezzet şöleni yaşadık. Sahili ise kelimenin tam anlamıyla kusursuz.", stars: 5 } ]; export default function TestimonialsSlider() { const constraintsRef = useRef(null); const [width, setWidth] = useState(0); useEffect(() => { if (constraintsRef.current) { // Calculate how much we can drag: total width - container width setWidth(constraintsRef.current.scrollWidth - constraintsRef.current.offsetWidth); } }, []); return (
MİSAFİR YORUMLARI

Misafirlerimiz
Ne Diyor?

Gerçek deneyimler ve samimi sözler. Salmakis Resort & Spa'daki anıların her türlü tanımdan daha fazlasını anlattığına inanıyoruz.

{/* Slider Container */}
{testimonials.map((item, i) => (
{[...Array(item.stars)].map((_, i) => ( ))}
{item.location}

“{item.text}”

{item.name}
))}
); }