diff --git a/client/components/ArmSwitcher.tsx b/client/components/ArmSwitcher.tsx index 8513f562..65814a11 100644 --- a/client/components/ArmSwitcher.tsx +++ b/client/components/ArmSwitcher.tsx @@ -60,92 +60,47 @@ const ARMS: Arm[] = [ }, ]; +const LOGO_URLS: Record = { + labs: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F85fe7910cff6483db1ea99c154684844?format=webp&width=800", + gameforge: + "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fcd3534c1caa0497abfd44224040c6059?format=webp&width=800", + corp: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fae654ecc18b241bdab273893e8231970?format=webp&width=800", + foundation: + "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fc02cb1bf5056479bbb3ea4bd91f0d472?format=webp&width=800", + devlink: + "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F9a96b43cbd7b49bb9d5434580319c793?format=webp&width=800", +}; + export default function ArmSwitcher() { const navigate = useNavigate(); - const [currentIndex, setCurrentIndex] = useState(0); - const [isAnimating, setIsAnimating] = useState(true); - const [isHovering, setIsHovering] = useState(false); - - useEffect(() => { - if (!isAnimating || isHovering) return; - - const interval = setInterval(() => { - setCurrentIndex((prev) => (prev + 1) % ARMS.length); - }, 4000); - - return () => clearInterval(interval); - }, [isAnimating, isHovering]); - - const currentArm = ARMS[currentIndex]; const handleArmClick = (href: string) => { navigate(href); }; return ( -
setIsHovering(true)} - onMouseLeave={() => setIsHovering(false)} - onClick={() => handleArmClick(currentArm.href)} - > - {/* Animated Icon Container */} -
-
- - {/* Temporary Logo - Simple geometric shape */} - {currentArm.id === "devlink" ? ( - {currentArm.label} - ) : ( -
- {currentArm.label[0].toUpperCase()} -
- )} - - {/* Animated border indicator */} -
-
- - {/* Text Label - Shows on hover/click or always visible */} -
-
- {currentArm.label} -
-
+ {ARMS.map((arm) => ( +
-
+
- {/* Indicator dots - Shows on mobile */} -
- {ARMS.map((_, idx) => ( -
- ))} -
- {/* Tooltip on hover */} -
- Click to navigate -
+ {/* Tooltip */} +
+ {arm.name} +
+ + ))}
); }