From ca5b2291e8eb85874200d5f5218cca76ce5e4e96 Mon Sep 17 00:00:00 2001 From: Vanna Feng <149204800+vannaFeng@users.noreply.github.com> Date: Sun, 9 Nov 2025 10:18:06 +0000 Subject: [PATCH] Commiting Stylized formpage --- app/formfile/FormPage.tsx | 159 +++++++++++++++------- app/formfile/page.tsx | 271 +++++++++++++++++--------------------- package-lock.json | 12 -- 3 files changed, 229 insertions(+), 213 deletions(-) diff --git a/app/formfile/FormPage.tsx b/app/formfile/FormPage.tsx index d9b8960..70363ca 100644 --- a/app/formfile/FormPage.tsx +++ b/app/formfile/FormPage.tsx @@ -2,9 +2,9 @@ import React, { useState } from "react"; -import { - FormData, - PROFICIENCY_LEVELS +import { + FormData, + PROFICIENCY_LEVELS } from './formTypes'; // Ensure path is correct interface FormPageProps { @@ -16,9 +16,9 @@ const FormPage: React.FC = ({ onFormSubmit }) => { Hackathon: '', mainTheme: '', tracksStack: [''], - students: [{ - studentName: '', - skills: [{ skillName: '', proficiency: PROFICIENCY_LEVELS[1] }] + students: [{ + studentName: '', + skills: [{ skillName: '', proficiency: PROFICIENCY_LEVELS[1] }] }], }); @@ -61,6 +61,11 @@ const FormPage: React.FC = ({ onFormSubmit }) => { }; const handleAddStudent = () => { + console.log("Adding student...", formData.students.length); + if( formData.students.length >= 4 ) { + alert("Maxium of 4 teammates allowed.") + return; + } setFormData({ ...formData, students: [...formData.students, { studentName: '', skills: [{ skillName: '', proficiency: PROFICIENCY_LEVELS[1] }] }] @@ -108,33 +113,39 @@ const FormPage: React.FC = ({ onFormSubmit }) => { }; return ( -
-
-

- Generate Project Idea +
+
+

+ New Project Idea

-
-

Project Context

+ {/*
*/} + {/*

Project Context

*/}
-
-
-
+ {/*
*/}
-