diff --git a/src/components/Boat.jsx b/src/components/Boat.jsx index 2774a2c..2c39a68 100644 --- a/src/components/Boat.jsx +++ b/src/components/Boat.jsx @@ -100,7 +100,7 @@ function TestimonialCard({ {/* Image Section */}
@@ -119,7 +119,7 @@ function TestimonialCard({ - + {subtitle} @@ -141,10 +141,16 @@ export function Boat() { let { scrollX } = useScroll({ container: scrollRef }) let [setReferenceWindowRef, bounds] = useMeasure() let [activeIndex, setActiveIndex] = useState(0) + let [scrollProgress, setScrollProgress] = useState(0) useMotionValueEvent(scrollX, 'change', (x) => { if (scrollRef.current && scrollRef.current.children[0]) { setActiveIndex(Math.floor(x / scrollRef.current.children[0].clientWidth)) + + // Calculate scroll progress + const maxScroll = scrollRef.current.scrollWidth - scrollRef.current.clientWidth + const progress = maxScroll > 0 ? (x / maxScroll) * 100 : 0 + setScrollProgress(Math.min(100, Math.max(0, progress))) } }) @@ -202,6 +208,19 @@ export function Boat() { ))}
+ + {/* Progress Bar */} +
+
+
+ {/* Progress dots for visual clarity */} +
+
+
+
diff --git a/src/components/CallToAction.jsx b/src/components/CallToAction.jsx index cc360ca..4503241 100644 --- a/src/components/CallToAction.jsx +++ b/src/components/CallToAction.jsx @@ -9,7 +9,7 @@ export function CallToAction() { return (
diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index 6784bcf..4327639 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -8,12 +8,12 @@ import Image from 'next/image' export function Hero() { return (
- {/* Background Image with opacity to show sand background */} + {/* Background Image with opacity to show sand background i changed the src for now bc its not uploaded to server*/}
App screenshot