From f8210dd7bfde9ebd0bbb50790b88326ccaccbb27 Mon Sep 17 00:00:00 2001 From: Atharv Mandlavdiya Date: Fri, 3 Jul 2026 16:33:56 +0530 Subject: [PATCH] Fix Robotronics redirect and update navbar - Fix redirect issue in robotronics.tsx using useEffect and window.location.href - Move Robotronics link to last position in navbar (after Contact) - Make Robotronics text bold in both desktop and mobile views --- rn-website/app/robotronics/robotronics.tsx | 10 +++++++--- rn-website/components/ui/spotlight-navbar.tsx | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) 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 */}