@@ -26,18 +26,18 @@ export default function Registration() {
26
26
setFormData ( ( prevFormData ) => ( { ...prevFormData , [ name ] : value } ) ) ;
27
27
} ;
28
28
return (
29
- < form className = "flex flex-col items-stretch gap-4 " >
30
- < Input
31
- type = "text"
32
- label = "Username "
33
- name = "username "
34
- id = "username"
35
- value = { formData . username }
36
- onChange = { handleInputChange }
37
- required
38
- />
39
- < div className = "flex justify-between gap-5" >
40
- < div className = "flex-2/ 3" >
29
+ < div className = "grid grid-cols-1 xl:grid-cols-2 xl: gap-8 " >
30
+ < form className = "flex flex-col items-stretch gap-4" >
31
+ < Input
32
+ type = "text "
33
+ label = "Username "
34
+ name = "username"
35
+ id = " username"
36
+ value = { formData . username }
37
+ onChange = { handleInputChange }
38
+ required
39
+ / >
40
+ < div className = "grid grid-cols-1 xl:grid-cols-2 xl:gap- 3" >
41
41
< Input
42
42
type = "text"
43
43
label = "First Name"
@@ -47,8 +47,6 @@ export default function Registration() {
47
47
onChange = { handleInputChange }
48
48
required
49
49
/>
50
- </ div >
51
- < div className = "flex-1" >
52
50
< Input
53
51
type = "text"
54
52
label = "Last Name"
@@ -59,35 +57,44 @@ export default function Registration() {
59
57
required
60
58
/>
61
59
</ div >
60
+ < Input
61
+ type = "text"
62
+ label = "Email Address"
63
+ name = "email"
64
+ id = "email"
65
+ value = { formData . email }
66
+ onChange = { handleInputChange }
67
+ required
68
+ />
69
+ < Input
70
+ type = "password"
71
+ label = "Password"
72
+ name = "password"
73
+ id = "password"
74
+ value = { formData . password }
75
+ onChange = { handleInputChange }
76
+ required
77
+ />
78
+ < Input
79
+ type = "password"
80
+ label = "Confirm Password"
81
+ name = "passwordConfirm"
82
+ id = "passwordConfirm"
83
+ value = { formData . passwordConfirm }
84
+ onChange = { handleInputChange }
85
+ required
86
+ />
87
+ < input className = "btn ml-auto hover:cursor-pointer" type = "submit" value = "Register" />
88
+ </ form >
89
+ < div >
90
+ < h2 className = "text-secondary" > Please note</ h2 >
91
+
92
+ < p >
93
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel est adipisci quas, aperiam voluptas,
94
+ omnis tempora blanditiis quae fuga eum ullam commodi a perspiciatis provident pariatur sunt
95
+ excepturi doloremque! Commodi!
96
+ </ p >
62
97
</ div >
63
- < Input
64
- type = "text"
65
- label = "Email Address"
66
- name = "email"
67
- id = "email"
68
- value = { formData . email }
69
- onChange = { handleInputChange }
70
- required
71
- />
72
- < Input
73
- type = "password"
74
- label = "Password"
75
- name = "password"
76
- id = "password"
77
- value = { formData . password }
78
- onChange = { handleInputChange }
79
- required
80
- />
81
- < Input
82
- type = "password"
83
- label = "Confirm Password"
84
- name = "passwordConfirm"
85
- id = "passwordConfirm"
86
- value = { formData . passwordConfirm }
87
- onChange = { handleInputChange }
88
- required
89
- />
90
- < input className = "ml-auto" type = "submit" value = "Register" />
91
- </ form >
98
+ </ div >
92
99
) ;
93
100
}
0 commit comments