Skip to content

Commit 0bc653f

Browse files
mjunaidcaclaude
andcommitted
fix(signup): Add proper spacing between form field groups
Wrapped all Step 1 signup fields in a space-y-5 container to add vertical spacing between field groups. Labels no longer touch the input boxes from the previous field. Before: Fields were direct siblings with no spacing After: space-y-5 wrapper adds 1.25rem (20px) between each field group This creates proper visual separation while keeping tight label-to-input spacing (space-y-1.5) within each field. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent cb5eb68 commit 0bc653f

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed

auth-server/src/components/sign-up-form.tsx

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,11 @@ export function SignUpForm() {
394394
<p className="text-sm text-slate-600">Get started in seconds</p>
395395
</div>
396396

397-
<div className="space-y-1.5">
398-
<label htmlFor="name" className="block text-sm font-semibold text-slate-700">
399-
Name <span className="text-red-500">*</span>
400-
</label>
397+
<div className="space-y-5">
398+
<div className="space-y-1.5">
399+
<label htmlFor="name" className="block text-sm font-semibold text-slate-700">
400+
Name <span className="text-red-500">*</span>
401+
</label>
401402
<div className="relative">
402403
<input
403404
id="name"
@@ -421,15 +422,15 @@ export function SignUpForm() {
421422
<div className="absolute inset-0 rounded-xl border-2 border-indigo-500 pointer-events-none animate-in scale-in opacity-50" />
422423
)}
423424
</div>
424-
{errors.name && (
425-
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.name}</p>
426-
)}
427-
</div>
425+
{errors.name && (
426+
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.name}</p>
427+
)}
428+
</div>
428429

429-
<div className="space-y-1.5">
430-
<label htmlFor="email" className="block text-sm font-semibold text-slate-700">
431-
Email address <span className="text-red-500">*</span>
432-
</label>
430+
<div className="space-y-1.5">
431+
<label htmlFor="email" className="block text-sm font-semibold text-slate-700">
432+
Email address <span className="text-red-500">*</span>
433+
</label>
433434
<div className="relative">
434435
<input
435436
id="email"
@@ -453,15 +454,15 @@ export function SignUpForm() {
453454
<div className="absolute inset-0 rounded-xl border-2 border-indigo-500 pointer-events-none animate-in scale-in opacity-50" />
454455
)}
455456
</div>
456-
{errors.email && (
457-
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.email}</p>
458-
)}
459-
</div>
457+
{errors.email && (
458+
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.email}</p>
459+
)}
460+
</div>
460461

461-
<div className="space-y-1.5">
462-
<label htmlFor="password" className="block text-sm font-semibold text-slate-700">
463-
Password <span className="text-red-500">*</span>
464-
</label>
462+
<div className="space-y-1.5">
463+
<label htmlFor="password" className="block text-sm font-semibold text-slate-700">
464+
Password <span className="text-red-500">*</span>
465+
</label>
465466
<div className="relative">
466467
<input
467468
id="password"
@@ -494,15 +495,15 @@ export function SignUpForm() {
494495
<div className="absolute inset-0 rounded-xl border-2 border-indigo-500 pointer-events-none animate-in scale-in opacity-50" />
495496
)}
496497
</div>
497-
{errors.password && (
498-
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.password}</p>
499-
)}
500-
</div>
498+
{errors.password && (
499+
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.password}</p>
500+
)}
501+
</div>
501502

502-
<div className="space-y-1.5">
503-
<label htmlFor="confirmPassword" className="block text-sm font-semibold text-slate-700">
504-
Confirm Password <span className="text-red-500">*</span>
505-
</label>
503+
<div className="space-y-1.5">
504+
<label htmlFor="confirmPassword" className="block text-sm font-semibold text-slate-700">
505+
Confirm Password <span className="text-red-500">*</span>
506+
</label>
506507
<div className="relative">
507508
<input
508509
id="confirmPassword"
@@ -535,9 +536,10 @@ export function SignUpForm() {
535536
<div className="absolute inset-0 rounded-xl border-2 border-indigo-500 pointer-events-none animate-in scale-in opacity-50" />
536537
)}
537538
</div>
538-
{errors.confirmPassword && (
539-
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.confirmPassword}</p>
540-
)}
539+
{errors.confirmPassword && (
540+
<p className="text-sm text-red-600 animate-in slide-in-from-top">{errors.confirmPassword}</p>
541+
)}
542+
</div>
541543
</div>
542544

543545
<button

0 commit comments

Comments
 (0)