@@ -75,25 +75,25 @@ export default function AchievementForm() {
7575 } ;
7676
7777 return (
78- < div className = "min-h-screen bg-white py-8 px-4" >
79- < div className = "max-w-2xl mx-auto" >
78+ < div className = "min-h-screen bg-white py-4 px-4" >
79+ < div className = "max-w-4xl mx-auto" >
8080 < div className = "bg-white border border-gray-200 rounded-lg shadow-sm p-8" >
8181 { /* Header */ }
8282 < div className = "text-center mb-8" >
83- < div className = "flex justify-center mb-4 " >
84- < div className = "bg-black rounded-full p-3 " >
83+ < div className = "flex justify-center mb-2 " >
84+ < div className = "bg-black rounded-full p-2 " >
8585 < Trophy className = "w-8 h-8 text-white" />
8686 </ div >
8787 </ div >
88- < h1 className = "text-2xl font-bold text-black mb-2 " >
88+ < h1 className = "text-2xl font-bold text-black mb-1 " >
8989 Add New Achievement
9090 </ h1 >
9191 < p className = "text-gray-600" >
9292 Record your academic and extracurricular accomplishments
9393 </ p >
9494 </ div >
9595
96- < div className = "space-y-6 " >
96+ < div className = "space-y-4 " >
9797 { /* Title */ }
9898 < div >
9999 < label className = "flex items-center text-sm font-medium text-black mb-2" >
@@ -106,15 +106,15 @@ export default function AchievementForm() {
106106 value = { formData . title }
107107 onChange = { handleInputChange }
108108 placeholder = "e.g., First Place in Science Fair"
109- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
109+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
110110 required
111111 />
112112 </ div >
113113
114114 { /* Description */ }
115115 < div >
116116 < label className = "flex items-center text-sm font-medium text-black mb-2" >
117- < FileText className = "w-4 h-4 mr-2 " />
117+ < FileText className = "w-4 h-3 mr-1 " />
118118 Description
119119 </ label >
120120 < textarea
@@ -123,7 +123,7 @@ export default function AchievementForm() {
123123 onChange = { handleInputChange }
124124 placeholder = "Provide details about your achievement..."
125125 rows = { 4 }
126- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all resize-none"
126+ className = "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all resize-none"
127127 />
128128 </ div >
129129
@@ -140,7 +140,7 @@ export default function AchievementForm() {
140140 value = { formData . category }
141141 onChange = { handleInputChange }
142142 placeholder = "Enter Category"
143- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
143+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
144144 />
145145 </ div >
146146
@@ -153,7 +153,7 @@ export default function AchievementForm() {
153153 name = "type"
154154 value = { formData . type }
155155 onChange = { handleInputChange }
156- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
156+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
157157 required
158158 >
159159 < option value = "" > Select Type</ option >
@@ -175,7 +175,7 @@ export default function AchievementForm() {
175175 name = "event_id"
176176 value = { formData . event_id }
177177 onChange = { handleInputChange }
178- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
178+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
179179 >
180180 < option value = "" > Select Event (optional)</ option >
181181 { events . map ( ( event ) => (
@@ -198,7 +198,7 @@ export default function AchievementForm() {
198198 value = { formData . level }
199199 onChange = { handleInputChange }
200200 placeholder = "Enter achievement level"
201- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
201+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
202202 />
203203 </ div >
204204
@@ -213,7 +213,7 @@ export default function AchievementForm() {
213213 value = { formData . position }
214214 onChange = { handleInputChange }
215215 placeholder = "e.g., 1st, 2nd, Winner"
216- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
216+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
217217 />
218218 </ div >
219219 </ div >
@@ -229,7 +229,7 @@ export default function AchievementForm() {
229229 name = "date_achieved"
230230 value = { formData . date_achieved }
231231 onChange = { handleInputChange }
232- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
232+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
233233 required
234234 />
235235 </ div >
@@ -246,7 +246,7 @@ export default function AchievementForm() {
246246 value = { formData . certificate_url }
247247 onChange = { handleInputChange }
248248 placeholder = "https://example.com/certificate.pdf"
249- className = "w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
249+ className = "w-full px-2 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none transition-all"
250250 />
251251 < p className = "text-xs text-gray-500 mt-1" >
252252 Upload your certificate to a cloud service and paste the link
0 commit comments