larxius commited on
Commit
f48246b
·
verified ·
1 Parent(s): 08af923

Update frontend/src/pages/Register.jsx

Browse files
Files changed (1) hide show
  1. frontend/src/pages/Register.jsx +7 -13
frontend/src/pages/Register.jsx CHANGED
@@ -94,12 +94,6 @@ export const Register = () => {
94
  {/* Value Proposition */}
95
  <div className="z-10 max-w-md text-left animate-slide-up" style={{ animationDelay: '100ms' }}>
96
 
97
- {/* Top Pill Badge */}
98
- <div className="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-blue-50 border border-blue-200/60 text-blue-700 text-xs font-semibold mb-6 shadow-xs">
99
- <span className="w-2 h-2 rounded-full bg-blue-600 animate-pulse"></span>
100
- <span>Enterprise Security Suite</span>
101
- </div>
102
-
103
  {/* Seamless 3D Shield Podium Graphic - Shifted right & zero background mismatch */}
104
  <div className="mb-6 flex justify-center lg:justify-center relative group pl-4 lg:pl-8">
105
  <div className="absolute inset-0 bg-blue-500/10 rounded-full blur-2xl transform scale-75 group-hover:scale-90 transition-transform duration-500"></div>
@@ -166,19 +160,19 @@ export const Register = () => {
166
 
167
  {/* Error Alert Box */}
168
  {error && (
169
- <div className="flex gap-3 bg-red-50 border border-red-200 rounded-xl p-4 text-red-700 text-sm mb-6 items-center animate-fade-in">
170
  <span className="material-symbols-outlined text-red-500">warning</span>
171
  <div>{error}</div>
172
  </div>
173
  )}
174
 
175
  {/* Registration Form */}
176
- <form className="flex flex-col gap-6" onSubmit={handleSubmit}>
177
 
178
  {/* Row 1: Identity */}
179
  <div className="grid grid-cols-1 sm:grid-cols-2 gap-5">
180
  <div className="flex flex-col gap-2">
181
- <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="fullName">Full Name</label>
182
  <input
183
  className="h-12 px-4 bg-white border border-slate-200 rounded-xl text-slate-900 text-sm focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all placeholder:text-slate-400"
184
  id="fullName"
@@ -190,7 +184,7 @@ export const Register = () => {
190
  />
191
  </div>
192
  <div className="flex flex-col gap-2">
193
- <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="companyName">Organization</label>
194
  <input
195
  className="h-12 px-4 bg-white border border-slate-200 rounded-xl text-slate-900 text-sm focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all placeholder:text-slate-400"
196
  id="companyName"
@@ -205,7 +199,7 @@ export const Register = () => {
205
 
206
  {/* Row 2: Email */}
207
  <div className="flex flex-col gap-2">
208
- <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="email">Work Email</label>
209
  <div className="relative group">
210
  <div className="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-blue-600 text-slate-400">
211
  <span className="material-symbols-outlined text-[20px]">mail</span>
@@ -225,7 +219,7 @@ export const Register = () => {
225
  {/* Row 3: Passwords */}
226
  <div className="grid grid-cols-1 sm:grid-cols-2 gap-5">
227
  <div className="flex flex-col gap-2">
228
- <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="password">Password</label>
229
  <div className="relative group">
230
  <div className="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-blue-600 text-slate-400">
231
  <span className="material-symbols-outlined text-[20px]">lock</span>
@@ -252,7 +246,7 @@ export const Register = () => {
252
  </div>
253
  </div>
254
  <div className="flex flex-col gap-2">
255
- <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="confirmPassword">Confirm Password</label>
256
  <div className="relative group">
257
  <div className="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-blue-600 text-slate-400">
258
  <span className="material-symbols-outlined text-[20px]">verified_user</span>
 
94
  {/* Value Proposition */}
95
  <div className="z-10 max-w-md text-left animate-slide-up" style={{ animationDelay: '100ms' }}>
96
 
 
 
 
 
 
 
97
  {/* Seamless 3D Shield Podium Graphic - Shifted right & zero background mismatch */}
98
  <div className="mb-6 flex justify-center lg:justify-center relative group pl-4 lg:pl-8">
99
  <div className="absolute inset-0 bg-blue-500/10 rounded-full blur-2xl transform scale-75 group-hover:scale-90 transition-transform duration-500"></div>
 
160
 
161
  {/* Error Alert Box */}
162
  {error && (
163
+ <div className="mb-6 flex gap-3 bg-red-50 border border-red-200 rounded-xl p-4 text-red-700 text-sm items-center animate-fade-in">
164
  <span className="material-symbols-outlined text-red-500">warning</span>
165
  <div>{error}</div>
166
  </div>
167
  )}
168
 
169
  {/* Registration Form */}
170
+ <form className="flex flex-col gap-5" onSubmit={handleSubmit}>
171
 
172
  {/* Row 1: Identity */}
173
  <div className="grid grid-cols-1 sm:grid-cols-2 gap-5">
174
  <div className="flex flex-col gap-2">
175
+ <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="fullName">Full Name <span className="text-red-500">*</span></label>
176
  <input
177
  className="h-12 px-4 bg-white border border-slate-200 rounded-xl text-slate-900 text-sm focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all placeholder:text-slate-400"
178
  id="fullName"
 
184
  />
185
  </div>
186
  <div className="flex flex-col gap-2">
187
+ <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="companyName">Organization <span className="text-red-500">*</span></label>
188
  <input
189
  className="h-12 px-4 bg-white border border-slate-200 rounded-xl text-slate-900 text-sm focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all placeholder:text-slate-400"
190
  id="companyName"
 
199
 
200
  {/* Row 2: Email */}
201
  <div className="flex flex-col gap-2">
202
+ <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="email">Work Email <span className="text-red-500">*</span></label>
203
  <div className="relative group">
204
  <div className="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-blue-600 text-slate-400">
205
  <span className="material-symbols-outlined text-[20px]">mail</span>
 
219
  {/* Row 3: Passwords */}
220
  <div className="grid grid-cols-1 sm:grid-cols-2 gap-5">
221
  <div className="flex flex-col gap-2">
222
+ <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="password">Password <span className="text-red-500">*</span></label>
223
  <div className="relative group">
224
  <div className="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-blue-600 text-slate-400">
225
  <span className="material-symbols-outlined text-[20px]">lock</span>
 
246
  </div>
247
  </div>
248
  <div className="flex flex-col gap-2">
249
+ <label className="text-xs font-semibold text-slate-500 uppercase tracking-widest" htmlFor="confirmPassword">Confirm Password <span className="text-red-500">*</span></label>
250
  <div className="relative group">
251
  <div className="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none transition-colors group-focus-within:text-blue-600 text-slate-400">
252
  <span className="material-symbols-outlined text-[20px]">verified_user</span>