From 26922db3e49774ba545f00c4127431a266e9932b Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Thu, 21 Aug 2025 17:24:42 +0200 Subject: [PATCH] ok --- src/components/Activities.jsx | 2 +- src/components/Boat.jsx | 10 ++--- src/components/Button.jsx | 4 +- src/components/CNNVIDEO.jsx | 14 ++----- src/components/Carousel.jsx | 69 +++++++++++++++------------------ src/components/Experiences.jsx | 8 ++-- src/components/Footer.jsx | 2 +- src/components/Hero.jsx | 12 +++--- src/components/NewFeatures.jsx | 14 +++---- src/components/NewFeatures2.jsx | 2 +- src/components/Route.jsx | 10 ++--- src/components/Testimonials.jsx | 8 ++-- 12 files changed, 72 insertions(+), 83 deletions(-) diff --git a/src/components/Activities.jsx b/src/components/Activities.jsx index 541124d..581b52b 100644 --- a/src/components/Activities.jsx +++ b/src/components/Activities.jsx @@ -34,7 +34,7 @@ const posts = [
-

+

Mind, Body, and Soul: For a Deeper Connection.

diff --git a/src/components/Boat.jsx b/src/components/Boat.jsx index ee43396..f06c497 100644 --- a/src/components/Boat.jsx +++ b/src/components/Boat.jsx @@ -100,7 +100,7 @@ function TestimonialCard({ ref={ref} style={{ opacity }} {...props} - className="w-72 shrink-0 snap-start scroll-ml-(--scroll-padding) bg-[#fffefa] rounded-3xl shadow-lg overflow-hidden lg:w-96" + className="w-72 shrink-0 snap-start scroll-ml-(--scroll-padding) bg-[#fffefa] rounded-3xl shadow-lg overflow-hidden sm:w-80 lg:w-96" > {/* Image Section */}
@@ -154,13 +154,13 @@ export function Boat() { } return ( -
+

Dahabiyas

-

+

Discover peaceful platforms where every detail ensures a truly memorable stay. Our fleet of traditional dahabiyas combines authentic Nile heritage with modern comfort, offering intimate sailing experiences that connect you with Egypt's timeless river culture.

@@ -168,9 +168,9 @@ export function Boat() {
diff --git a/src/components/Button.jsx b/src/components/Button.jsx index 18c4cad..2d75206 100644 --- a/src/components/Button.jsx +++ b/src/components/Button.jsx @@ -3,9 +3,9 @@ import clsx from 'clsx' const baseStyles = { solid: - 'group inline-flex items-center justify-center rounded-full py-2 px-4 text-sm font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2', + 'group inline-flex items-center justify-center rounded-xl py-1.5 px-3 sm:py-2 sm:px-4 text-xs sm:text-sm font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2', outline: - 'group inline-flex ring-1 items-center justify-center rounded-full py-2 px-4 text-sm focus:outline-none', + 'group inline-flex ring-1 items-center justify-center rounded-xl py-1.5 px-3 sm:py-2 sm:px-4 text-xs sm:text-sm focus:outline-none', } const variantStyles = { diff --git a/src/components/CNNVIDEO.jsx b/src/components/CNNVIDEO.jsx index 832df98..6a50c48 100644 --- a/src/components/CNNVIDEO.jsx +++ b/src/components/CNNVIDEO.jsx @@ -6,17 +6,12 @@ import React from 'react' const CnnVideo = () => { return ( -
-
+

VEDA ON CNN

-

+

CNN Travel visited the Veda boats to give you a first hand impression of what awaits you when cruising the Nile.

@@ -24,15 +19,14 @@ const CnnVideo = () => {
-
); }; diff --git a/src/components/Carousel.jsx b/src/components/Carousel.jsx index 960a45e..94090f3 100644 --- a/src/components/Carousel.jsx +++ b/src/components/Carousel.jsx @@ -1,7 +1,8 @@ "use client"; // <-- This line is crucial -import React, { useState, useEffect } from 'react'; +import React, { useState, useEffect, useRef } from 'react'; import Image from 'next/image'; +import clsx from 'clsx'; const cards = [ { @@ -39,6 +40,7 @@ const cards = [ const MultiCardCarousel = () => { const [currentIndex, setCurrentIndex] = useState(0); const [isMobile, setIsMobile] = useState(false); // Start with false, will be updated in useEffect + const scrollRef = useRef(null); useEffect(() => { const handleResize = () => { @@ -69,49 +71,42 @@ const MultiCardCarousel = () => { const displayCards = isMobile ? [cards[currentIndex]] : cards.slice(currentIndex, currentIndex + 3); return ( -
-
-
+
+
+

Activities

-

+

Explore a diverse range of activities designed to elevate your Mind, Body, and Soul, fostering a deeper connection and holistic well-being.

-
-
- {displayCards.map((card, index) => ( -
- {card.title} -
-

{card.title}

-

{card.description}

-
+
+ {cards.map((card, index) => ( +
+ {card.title} +
+

{card.title}

+

{card.description}

- ))} -
-
- - -
+
+ ))} +
diff --git a/src/components/Experiences.jsx b/src/components/Experiences.jsx index 9d854ad..6af196f 100644 --- a/src/components/Experiences.jsx +++ b/src/components/Experiences.jsx @@ -1,17 +1,17 @@ export function Experiences() { return ( -
+
-

+

Programs

-

+

From intimate community gatherings to professional retreats, VEDA offers transformative programs on the Nile. Each space is thoughtfully designed to foster connection, creativity, and personal growth in an inspiring riverside setting.

-
+
+