From 612479eb6cc2bf6c4da257547d9894f61f7c050e Mon Sep 17 00:00:00 2001 From: ascpixi <44982772+ascpixi@users.noreply.github.com> Date: Thu, 20 Nov 2025 19:16:24 -0500 Subject: [PATCH] feat: add RSVP link --- frontend/src/App.tsx | 90 +++++++++++++++----------- frontend/src/components/NavbarLink.tsx | 3 + 2 files changed, 54 insertions(+), 39 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 3d1dc91..bc63507 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -90,7 +90,7 @@ function App() { /> -
+
@@ -132,45 +132,57 @@ function App() {
-
-
- - setEmail(e.target.value)} - type="email" - className="text-[#854d16] text-2xl md:text-4xl font-bold truncate bg-transparent border-none outline-none flex-1 cursor-text font-ember-and-fire" - placeholder="you@hackclub.com" - defaultValue="you@hackclub.com" - /> -
- - + + setEmail(e.target.value)} + type="email" + className="text-[#854d16] text-2xl md:text-4xl font-bold truncate bg-transparent border-none outline-none flex-1 cursor-text font-ember-and-fire" + placeholder="you@hackclub.com" + defaultValue="you@hackclub.com" + /> +
+ + +
+ +
+ ...or { + if (!emailRef?.current?.reportValidity() || !email) + return; + + window.open( + `https://forms.hackclub.com/t/a3QSt8MuvHus?email=${encodeURIComponent(email)}`, + "_blank" + ); + }} + > + RSVP + for one +
diff --git a/frontend/src/components/NavbarLink.tsx b/frontend/src/components/NavbarLink.tsx index 6970de5..43ad0ca 100644 --- a/frontend/src/components/NavbarLink.tsx +++ b/frontend/src/components/NavbarLink.tsx @@ -8,6 +8,9 @@ function NavbarLink({ children, onClick }: NavbarLinkProps) {