@@ -49,10 +49,10 @@ const AddCohortModal = ({ open, onClose }) => {
4949 } ;
5050
5151 return (
52- < div className = "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 dark:" >
53- < div className = " rounded-lg w-[30%] p-6 relative bg-white dark:bg-dark-frame-bg" >
54- < div className = "flex justify-between items-center mb-6 " >
55- < h2 className = "text-black text-xl font-semibold dark:text-white" >
52+ < div className = " fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 dark:" >
53+ < div className = "max-h-full text-sm rounded-lg w-[30%] p-6 relative bg-white dark:bg-dark-frame-bg md:h-[60%] " >
54+ < div className = "flex justify-between items-center mb-3 " >
55+ < h2 className = "text-black text-xl font-semibold dark:text-white" >
5656 ADD NEW COHORT
5757 </ h2 >
5858 < button
@@ -63,11 +63,12 @@ const AddCohortModal = ({ open, onClose }) => {
6363 </ button >
6464 </ div >
6565
66- < form onSubmit = { handleSubmit ( onSubmit ) } className = "space-y-4" >
66+ < form onSubmit = { handleSubmit ( onSubmit ) } className = "space-y-1" >
67+ < label className = "inline-block pt-2 pl-1" > Name</ label >
6768 < input
6869 type = "text"
69- placeholder = "Name "
70- className = "w-full p-3 rounded bg-transparent border border-gray-600 placeholder:text-black focus:outline-none dark:placeholder:text-white "
70+ placeholder = "Enter cohort name "
71+ className = "w-full p-2 rounded bg-transparent border border-gray-600 placeholder:text-black focus:outline-none dark:placeholder:text-gray-400 "
7172 { ...register ( "title" , {
7273 required : "Title is required" ,
7374 minLength : {
@@ -79,12 +80,16 @@ const AddCohortModal = ({ open, onClose }) => {
7980 { errors . title && (
8081 < p className = "text-red-500" > { errors . title ?. message } </ p >
8182 ) }
83+ < label className = "inline-block pt-2 pl-1" > Application cycle</ label >
8284
8385 < select
84- className = "w-full p-3 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
86+ className = "w-full p-2 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
8587 { ...register ( "cycle" , { required : "Cycle is required" } ) }
8688 >
87- < option value = "" className = "bg-gray-200 dark:bg-[#1e2124]" >
89+ < option
90+ value = ""
91+ className = "text-gray-500 bg-gray-200 dark:bg-[#1e2124]"
92+ >
8893 Select Cycle
8994 </ option >
9095 { cycleData . map ( ( cycle ) => (
@@ -100,12 +105,12 @@ const AddCohortModal = ({ open, onClose }) => {
100105 { errors . cycle && (
101106 < p className = "text-red-500" > { errors . cycle ?. message } </ p >
102107 ) }
103-
108+ < label className = "inline-block pt-2 pl-1" > Program </ label >
104109 < select
105- className = "w-full p-3 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
110+ className = "w-full p-2 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
106111 { ...register ( "program" , { required : "Program is required" } ) }
107112 >
108- < option value = "" className = "bg-gray-200 dark:bg-[#1e2124]" >
113+ < option value = "" className = "bg-gray-500 dark:bg-[#1e2124]" >
109114 Select Program
110115 </ option >
111116 { programData . map ( ( program ) => (
@@ -121,12 +126,16 @@ const AddCohortModal = ({ open, onClose }) => {
121126 { errors . program && (
122127 < p className = "text-red-500" > { errors . program ?. message } </ p >
123128 ) }
124-
129+ < label className = "inline-block pt-2 pl-1" > Phase </ label >
125130 < select
126- className = "w-full p-3 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
131+ className = "w-full p-2 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
127132 { ...register ( "phase" , { required : "Phase is required" } ) }
128133 >
129- < option value = "" className = "bg-gray-200 dark:bg-[#1e2124]" >
134+ < option
135+ value = ""
136+ color = { "red" }
137+ className = "text-gray-500 dark:bg-[#1e2124]"
138+ >
130139 Phase
131140 </ option >
132141 < option
@@ -140,25 +149,27 @@ const AddCohortModal = ({ open, onClose }) => {
140149 < p className = "text-red-500" > { errors . phase ?. message } </ p >
141150 ) }
142151
152+ < label className = "inline-block pt-2 pl-1" > Starting Date</ label >
143153 < input
144154 type = "date"
145- className = "w-full p-3 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
155+ className = "w-full p-2 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
146156 { ...register ( "start" , { required : "Starting date is required" } ) }
147157 />
148158 { errors . start && (
149159 < p className = "text-red-500" > { errors . start ?. message } </ p >
150160 ) }
151161
162+ < label className = "inline-block pt-2 pl-1" > Ending Date</ label >
152163 < input
153164 type = "date"
154- className = "w-full p-3 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
165+ className = "w-full p-2 rounded bg-transparent border border-gray-600 text-black focus:outline-none dark:text-white"
155166 { ...register ( "end" , { required : "Ending date is required" } ) }
156167 />
157168 { errors . end && < p className = "text-red-500" > { errors . end ?. message } </ p > }
158169
159170 < button
160171 type = "submit"
161- className = "w-full p-3 flex justify-center items-centerr bg-[#56C870] text-white rounded font-medium hover:bg-green-600 transition-colors"
172+ className = "w-full p-2 flex justify-center items-centerr bg-[#56C870] text-white rounded font-medium hover:bg-green-600 transition-colors"
162173 >
163174 { isSubmitting ? (
164175 < ThreeDots height = "20" width = "30" color = "#ffffff" />
0 commit comments