feat: switch to signups (#10)

This commit is contained in:
Manitej Boorgu 2026-01-20 15:03:16 -05:00 committed by GitHub
parent a28b7cb1f9
commit 68bf38b0fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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() {
<button
className="bg-[#fca147] border-[5px] border-[rgba(0,0,0,0.2)] rounded-[20px] px-8 md:px-14 py-4 hover:scale-105 transition-transform w-full md:w-auto transform md:rotate-[1.5deg] shadow-[0_8px_20px_rgba(0,0,0,0.25)] cursor-pointer active:scale-95"
type="button"
onClick={() => openWithEmail(FORM_URL_RSVP)}
onClick={() => openWithEmail(FORM_URL_SIGN_UP)}
>
<p
className="text-[#8d3f34] text-3xl md:text-5xl font-normal font-dream-planner"
>
RSVP!
SIGN UP!
</p>
</button>
</div>