diff --git a/rn-website/app/robotronics/robotronics.tsx b/rn-website/app/robotronics/robotronics.tsx index f6f72f8..41d18b3 100644 --- a/rn-website/app/robotronics/robotronics.tsx +++ b/rn-website/app/robotronics/robotronics.tsx @@ -1,11 +1,15 @@ "use client"; -import { redirect } from 'next/navigation' +import { useEffect } from 'react'; export default function Robotronics() { + useEffect(() => { + window.location.href = "https://robotronics-ten.vercel.app/"; + }, []); + return ( -
- redirect("https://robotronics-ten.vercel.app/") +
+

Redirecting to Robotronics...

); } diff --git a/rn-website/components/ui/spotlight-navbar.tsx b/rn-website/components/ui/spotlight-navbar.tsx index 5b9027b..b994aaf 100644 --- a/rn-website/components/ui/spotlight-navbar.tsx +++ b/rn-website/components/ui/spotlight-navbar.tsx @@ -31,8 +31,8 @@ const defaultNavItems: NavItem[] = [ }, { label: "Projects", href: "/projects" }, { label: "Events", href: "/events" }, - { label: "Robotronics", href: "/robotronics" }, { label: "Contact", href: "/contact" }, + { label: "Robotronics", href: "/robotronics" }, ]; /** Small animated dropdown panel */ @@ -168,7 +168,10 @@ function MobileMenu({ > {/* Label — always navigates to the page */}