+ );
+}
From 588683bf8605affb5638805f1cf832b9c0337f7d Mon Sep 17 00:00:00 2001
From: FinleyNeilson
Date: Sun, 26 Apr 2026 16:31:50 +1200
Subject: [PATCH 02/17] feat: update basic form with info from LUG form
---
src/app/form/page.tsx | 71 ++++++++++++++++++++++++++++++++++++++-----
1 file changed, 64 insertions(+), 7 deletions(-)
diff --git a/src/app/form/page.tsx b/src/app/form/page.tsx
index 0d9d943..6e0b323 100644
--- a/src/app/form/page.tsx
+++ b/src/app/form/page.tsx
@@ -1,11 +1,68 @@
-export default function Blog() {
+export default function FormPage() {
return (
-
-
-
Form
+
+
LUG@UoA Member Registration Form 2026
+
{`Thank you for registering your interest to become a member of the
+ University of Auckland Linux User Group (also known as LUG@UoA)! It's
+ great to have you with us. The details collected in this form will be
+ used for record-keeping purposes as mandated by Student Groups and to
+ send you relevant communication about the user group, as well as to
+ identify areas of interest for the club. We will not otherwise use or
+ transfer your information. You can modify or withdraw your response by
+ contacting lug.aucklanduni@gmail.com.`}
-
Placeholder Form
-
-
+
+
);
}
From 7ecf7bd152b374343c8f808115be49bc651d2d9d Mon Sep 17 00:00:00 2001
From: FinleyNeilson
Date: Sun, 26 Apr 2026 16:40:30 +1200
Subject: [PATCH 03/17] feat: add basic server action for
createRegistrationForm
---
src/app/form/actions.ts | 12 ++++++++++++
src/app/form/page.tsx | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 src/app/form/actions.ts
diff --git a/src/app/form/actions.ts b/src/app/form/actions.ts
new file mode 100644
index 0000000..595cc0d
--- /dev/null
+++ b/src/app/form/actions.ts
@@ -0,0 +1,12 @@
+"use server";
+
+import { redirect } from "next/navigation";
+
+export async function createRegistrationForm(formData: FormData) {
+ const email = formData.get("email");
+ const previouslyRegistered = formData.get("previouslyRegistered");
+
+ console.log("New Registration Attempt:", { email, previouslyRegistered });
+
+ redirect("/form/success");
+}
diff --git a/src/app/form/page.tsx b/src/app/form/page.tsx
index 6e0b323..b7c934b 100644
--- a/src/app/form/page.tsx
+++ b/src/app/form/page.tsx
@@ -1,3 +1,5 @@
+import { createRegistrationForm } from "./actions";
+
export default function FormPage() {
return (
@@ -11,7 +13,7 @@ export default function FormPage() {
transfer your information. You can modify or withdraw your response by
contacting lug.aucklanduni@gmail.com.`}