From 6812bb4d4869423a5e5860a08ea5b7946a73baf3 Mon Sep 17 00:00:00 2001 From: shroominic <34897716+shroominic@users.noreply.github.com> Date: Mon, 15 Dec 2025 16:54:28 +0800 Subject: [PATCH] Add rotating hero messaging for AI use cases --- components/landing/Hero.tsx | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/components/landing/Hero.tsx b/components/landing/Hero.tsx index c171cb6..5dff016 100644 --- a/components/landing/Hero.tsx +++ b/components/landing/Hero.tsx @@ -11,6 +11,16 @@ export function LandingHero() { const containerRef = useRef(null); const parentRef = useRef(null); const [globeOpen, setGlobeOpen] = useState(false); + const heroWords = ["accessing AI", "building on AI", "trading AI"]; + const [activeWordIndex, setActiveWordIndex] = useState(0); + + useEffect(() => { + const interval = setInterval(() => { + setActiveWordIndex((prevIndex) => (prevIndex + 1) % heroWords.length); + }, 2200); + + return () => clearInterval(interval); + }, [heroWords.length]); return (

- The Open Protocol for{" "} -
-
- AI Access + The Open Protocol for + {heroWords[activeWordIndex]} +
+
+ + + {heroWords[activeWordIndex]} + +