Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions rn-website/app/robotronics/robotronics.tsx
Original file line number Diff line number Diff line change
@@ -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/";
}, []);
Comment on lines +6 to +8

return (
<main>
redirect("https://robotronics-ten.vercel.app/")
<main className="flex items-center justify-center min-h-screen">
<p className="text-white">Redirecting to Robotronics...</p>
</main>
);
}
10 changes: 7 additions & 3 deletions rn-website/components/ui/spotlight-navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -168,7 +168,10 @@ function MobileMenu({
>
{/* Label — always navigates to the page */}
<button
className="flex-1 text-left px-4 py-3 text-sm font-medium hover:text-white transition-colors duration-150"
className={cn(
"flex-1 text-left px-4 py-3 text-sm hover:text-white transition-colors duration-150",
item.label === "Robotronics" ? "font-bold" : "font-medium"
)}
Comment on lines +171 to +174
onClick={() => onNavigate(item.href)}
>
{item.label}
Expand Down Expand Up @@ -375,8 +378,9 @@ export function SpotlightNavbar({
handleItemClick(item, idx);
}}
className={cn(
"px-4 py-2 text-sm font-medium transition-colors duration-200 rounded-full",
"px-4 py-2 text-sm transition-colors duration-200 rounded-full",
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-400 dark:focus-visible:ring-white/30",
item.label === "Robotronics" ? "font-bold" : "font-medium",
activeIndex === idx
Comment on lines +381 to 384
? "text-black dark:text-white"
: "text-neutral-500 dark:text-neutral-400 hover:text-black dark:hover:text-white"
Expand Down