From a78f4a9cc75029dbc3e49a8ff89a3e3f5ff6c99d Mon Sep 17 00:00:00 2001 From: joeboppell Date: Sat, 24 Oct 2026 07:21:16 -0400 Subject: [PATCH] live website link --- src/components/Hero/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Hero/index.tsx b/src/components/Hero/index.tsx index 9c220a67..f0cd08d6 100644 --- a/src/components/Hero/index.tsx +++ b/src/components/Hero/index.tsx @@ -633,10 +633,14 @@ Happy hacking! animate={{ opacity: 1, y: 0 }} transition={{ duration: 1, delay: 0.6 }} > - {/* Register Button */} - {registrationsFlagData?.isEnabled && ( + {/* Register Button (Live Website when registrations are closed) */} + {!isLoadingRegistrationsFlag && ( router.push("/profile")} + onClick={() => + registrationsFlagData?.isEnabled + ? router.push("/profile") + : (window.location.href = "https://live.hackpsu.org") + } className="relative overflow-hidden rounded-lg hover:scale-105 transition-transform duration-300 flex items-center justify-center px-10 py-4 shadow-lg" style={{ minWidth: "clamp(220px, 24vw, 260px)", @@ -654,7 +658,7 @@ Happy hacking! fontFamily: "Orbitron, monospace", }} > - REGISTER + {registrationsFlagData?.isEnabled ? "REGISTER" : "LIVE WEBSITE"} )}