From 68bf38b0fe696deda6c8c6e1ef6c63c2b4c75d67 Mon Sep 17 00:00:00 2001 From: Manitej Boorgu <68567672+techpixel@users.noreply.github.com> Date: Tue, 20 Jan 2026 15:03:16 -0500 Subject: [PATCH] feat: switch to signups (#10) --- astro/src/components/pages/App.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/astro/src/components/pages/App.tsx b/astro/src/components/pages/App.tsx index e55c161..d5ee6c6 100644 --- a/astro/src/components/pages/App.tsx +++ b/astro/src/components/pages/App.tsx @@ -11,6 +11,7 @@ import clsx from 'clsx'; const FORM_URL_ORGANIZER_APPLICATION = "https://forms.hackclub.com/t/8L51MzWyrHus"; const FORM_URL_RSVP = "https://forms.hackclub.com/t/a3QSt8MuvHus"; +const FORM_URL_SIGN_UP = "https://forms.hackclub.com/campfire-signup"; function FlagshipCTA({ className, compact, maxWidth }: { className?: string; compact?: boolean; maxWidth?: boolean }) { return ( @@ -62,6 +63,14 @@ function App() { return; } + // Redirect with r parameter to signup form + const urlParams = new URLSearchParams(window.location.search); + const rParam = urlParams.get('r'); + if (rParam) { + window.location.href = `${FORM_URL_SIGN_UP}?r=${encodeURIComponent(rParam)}`; + return; + } + document.addEventListener("scroll", () => { setScrollY(window.scrollY); }); @@ -245,12 +254,12 @@ function App() {