diff --git a/components/narrative/Narrative.tsx b/components/narrative/Narrative.tsx index 8c413f7..e147c83 100644 --- a/components/narrative/Narrative.tsx +++ b/components/narrative/Narrative.tsx @@ -21,14 +21,14 @@ const Narrative = () => { { openNarrative && ( <> - logos_white + logos_white console.log('aa')}/>
- + {/* */}
diff --git a/components/narrative/Slider.tsx b/components/narrative/Slider.tsx index 8243626..99777be 100644 --- a/components/narrative/Slider.tsx +++ b/components/narrative/Slider.tsx @@ -1,13 +1,15 @@ "use client"; import Image from "next/image"; -import { useState } from "react"; +import { useState, useRef, useEffect } from "react"; import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/16/solid"; const Slider = () => { const [sliderPosition, setSliderPosition] = useState(50); const [isDragging, setIsDragging] = useState(false); + const ref = useRef() + const handleMove = (event: React.MouseEvent) => { if (!isDragging) return; @@ -26,8 +28,9 @@ const Slider = () => { setIsDragging(false); }; + return ( -
+