diff --git a/src/app/version/page.tsx b/src/app/version/page.tsx index 5306496..4774e62 100644 --- a/src/app/version/page.tsx +++ b/src/app/version/page.tsx @@ -1,78 +1,16 @@ "use client"; -import React, { useEffect, useRef, useState } from 'react'; -import VersionCard from './version'; -import { versionData } from './versionData'; +import React from 'react'; import Header from '@/components/shared/Header'; import Footer from '@/components/shared/Footer'; import ScrollToTopButton from '@/components/shared/ScrollUp'; +import Version from '@/components/shared/Version'; -const gradientClasses = [ - 'custom-gradient-3', - 'custom-gradient-4', - 'custom-gradient-1', - 'custom-gradient-2', -]; - -const Timeline: React.FC = () => { - const [activeIndex, setActiveIndex] = useState(-1); - const cardRefs = useRef<(HTMLDivElement | null)[]>([]); - - useEffect(() => { - const observer = new IntersectionObserver( - (entries) => { - entries.forEach((entry) => { - const index = Number(entry.target.getAttribute('data-index')); - if (entry.isIntersecting) { - setActiveIndex(index); - } else if (activeIndex === index) { - setActiveIndex(-1); - } - }); - }, - { threshold: 0.5 } - ); - - cardRefs.current.forEach((ref) => { - if (ref) { - observer.observe(ref); - } - }); - - return () => { - observer.disconnect(); - }; - }, [activeIndex]); - +const Timeline = () => { return ( <>
-
-
-

What's new?

-
-
-
-
- {versionData.map((version, index) => ( -
(cardRefs.current[index] = el)} - data-index={index} - > -
-
- -
-
- ))} -
-
+

What's new?

+