@@ -5,12 +5,12 @@ const countryList = [{ countryCode: 'NO', countryName: 'Norge' }];
5
5
const Billing = ( { input, handleOnChange } ) => {
6
6
return (
7
7
< >
8
- < div className = "row" >
9
- < div className = "p-0 pr-2 col-lg-6 col-md-12" >
10
- < div className = "form-group" >
8
+ < div classNameName = "row" >
9
+ < div classNameName = "p-0 pr-2 col-lg-6 col-md-12" >
10
+ < div classNameName = "form-group" >
11
11
< label htmlFor = "first-name" >
12
12
Fornavn
13
- < abbr className = "required" title = "required" >
13
+ < abbr classNameName = "required" title = "required" >
14
14
*
15
15
</ abbr >
16
16
</ label >
@@ -19,17 +19,17 @@ const Billing = ({ input, handleOnChange }) => {
19
19
value = { input . firstName }
20
20
type = "text"
21
21
name = "firstName"
22
- className = "form-control woo-next-checkout-input"
22
+ classNameName = "form-control woo-next-checkout-input"
23
23
id = "first-name"
24
24
/>
25
25
< Error errors = { input . errors } fieldName = { 'firstName' } />
26
26
</ div >
27
27
</ div >
28
- < div className = "p-0 col-lg-6 col-sm-12" >
29
- < div className = "form-group" >
28
+ < div classNameName = "p-0 col-lg-6 col-sm-12" >
29
+ < div classNameName = "form-group" >
30
30
< label htmlFor = "last-name" >
31
31
Etternavn
32
- < abbr className = "required" title = "required" >
32
+ < abbr classNameName = "required" title = "required" >
33
33
*
34
34
</ abbr >
35
35
</ label >
@@ -38,39 +38,39 @@ const Billing = ({ input, handleOnChange }) => {
38
38
value = { input . lastName }
39
39
type = "text"
40
40
name = "lastName"
41
- className = "form-control woo-next-checkout-input"
41
+ classNameName = "form-control woo-next-checkout-input"
42
42
id = "last-name"
43
43
/>
44
44
< Error errors = { input . errors } fieldName = { 'lastName' } />
45
45
</ div >
46
46
</ div >
47
47
</ div >
48
48
{ /* Company Name */ }
49
- < div className = "form-group" >
49
+ < div classNameName = "form-group" >
50
50
< label htmlFor = "first-name" > Firma</ label >
51
51
< input
52
52
onChange = { handleOnChange }
53
53
value = { input . company }
54
54
type = "text"
55
55
name = "company"
56
- className = "form-control woo-next-checkout-input"
56
+ classNameName = "form-control woo-next-checkout-input"
57
57
id = "first-name"
58
58
/>
59
59
< Error errors = { input . errors } fieldName = { 'company' } />
60
60
</ div >
61
61
{ /* Country */ }
62
- < div className = "form-group" >
62
+ < div classNameName = "form-group" >
63
63
< label htmlFor = "country-select" >
64
64
Land
65
- < abbr className = "required" title = "required" >
65
+ < abbr classNameName = "required" title = "required" >
66
66
*
67
67
</ abbr >
68
68
</ label >
69
69
< select
70
70
onChange = { handleOnChange }
71
71
value = { input . country }
72
72
name = "country"
73
- className = "form-control woo-next-checkout-input"
73
+ classNameName = "form-control woo-next-checkout-input"
74
74
id = "country-select"
75
75
>
76
76
< option value = "" > Velg ditt land ...</ option >
@@ -84,10 +84,10 @@ const Billing = ({ input, handleOnChange }) => {
84
84
< Error errors = { input . errors } fieldName = { 'country' } />
85
85
</ div >
86
86
{ /* Street Address */ }
87
- < div className = "form-group" >
87
+ < div classNameName = "form-group" >
88
88
< label htmlFor = "street-address" >
89
89
Addresse
90
- < abbr className = "required" title = "required" >
90
+ < abbr classNameName = "required" title = "required" >
91
91
*
92
92
</ abbr >
93
93
</ label >
@@ -97,7 +97,7 @@ const Billing = ({ input, handleOnChange }) => {
97
97
value = { input . address1 }
98
98
name = "address1"
99
99
placeholder = "Gateaddresse"
100
- className = "form-control woo-next-checkout-input"
100
+ classNameName = "form-control woo-next-checkout-input"
101
101
id = "street-address"
102
102
/>
103
103
< Error errors = { input . errors } fieldName = { 'address1' } />
@@ -108,15 +108,15 @@ const Billing = ({ input, handleOnChange }) => {
108
108
value = { input . address2 }
109
109
name = "address2"
110
110
placeholder = "Apartment, suite, unit etc.(optional)"
111
- className = "form-control woo-next-checkout-input"
111
+ classNameName = "form-control woo-next-checkout-input"
112
112
id = "first-name"
113
113
/>
114
114
</ div >
115
115
{ /* Town/City */ }
116
- < div className = "form-group" >
116
+ < div classNameName = "form-group" >
117
117
< label htmlFor = "city" >
118
118
By
119
- < abbr className = "required" title = "required" >
119
+ < abbr classNameName = "required" title = "required" >
120
120
*
121
121
</ abbr >
122
122
</ label >
@@ -125,16 +125,16 @@ const Billing = ({ input, handleOnChange }) => {
125
125
value = { input . city }
126
126
type = "text"
127
127
name = "city"
128
- className = "form-control woo-next-checkout-input"
128
+ classNameName = "form-control woo-next-checkout-input"
129
129
id = "city"
130
130
/>
131
131
< Error errors = { input . errors } fieldName = { 'city' } />
132
132
</ div >
133
133
{ /* County */ }
134
- < div className = "form-group" >
134
+ < div classNameName = "form-group" >
135
135
< label htmlFor = "state" >
136
136
Fylke
137
- < abbr className = "required" title = "required" >
137
+ < abbr classNameName = "required" title = "required" >
138
138
*
139
139
</ abbr >
140
140
</ label >
@@ -143,16 +143,16 @@ const Billing = ({ input, handleOnChange }) => {
143
143
value = { input . state }
144
144
type = "text"
145
145
name = "state"
146
- className = "form-control woo-next-checkout-input"
146
+ classNameName = "form-control woo-next-checkout-input"
147
147
id = "state"
148
148
/>
149
149
< Error errors = { input . errors } fieldName = { 'state' } />
150
150
</ div >
151
151
{ /* Post Code */ }
152
- < div className = "form-group" >
152
+ < div classNameName = "form-group" >
153
153
< label htmlFor = "post-code" >
154
154
Postnummer
155
- < abbr className = "required" title = "required" >
155
+ < abbr classNameName = "required" title = "required" >
156
156
*
157
157
</ abbr >
158
158
</ label >
@@ -161,18 +161,18 @@ const Billing = ({ input, handleOnChange }) => {
161
161
value = { input . postcode }
162
162
type = "text"
163
163
name = "postcode"
164
- className = "form-control woo-next-checkout-input"
164
+ classNameName = "form-control woo-next-checkout-input"
165
165
id = "post-code"
166
166
/>
167
167
< Error errors = { input . errors } fieldName = { 'postcode' } />
168
168
</ div >
169
169
{ /*Phone & Email*/ }
170
- < div className = "row" >
171
- < div className = "p-0 pr-2 col-lg-6 col-md-12" >
172
- < div className = "form-group" >
170
+ < div classNameName = "row" >
171
+ < div classNameName = "p-0 pr-2 col-lg-6 col-md-12" >
172
+ < div classNameName = "form-group" >
173
173
< label htmlFor = "phone" >
174
174
Telefon
175
- < abbr className = "required" title = "required" >
175
+ < abbr classNameName = "required" title = "required" >
176
176
*
177
177
</ abbr >
178
178
</ label >
@@ -181,17 +181,17 @@ const Billing = ({ input, handleOnChange }) => {
181
181
value = { input . phone }
182
182
type = "text"
183
183
name = "phone"
184
- className = "form-control woo-next-checkout-input"
184
+ classNameName = "form-control woo-next-checkout-input"
185
185
id = "phone"
186
186
/>
187
187
< Error errors = { input . errors } fieldName = { 'phone' } />
188
188
</ div >
189
189
</ div >
190
- < div className = "p-0 col-lg-6 col-sm-12" >
191
- < div className = "form-group" >
190
+ < div classNameName = "p-0 col-lg-6 col-sm-12" >
191
+ < div classNameName = "form-group" >
192
192
< label htmlFor = "email" >
193
193
Epost
194
- < abbr className = "required" title = "required" >
194
+ < abbr classNameName = "required" title = "required" >
195
195
*
196
196
</ abbr >
197
197
</ label >
@@ -200,13 +200,83 @@ const Billing = ({ input, handleOnChange }) => {
200
200
value = { input . email }
201
201
type = "email"
202
202
name = "email"
203
- className = "form-control woo-next-checkout-input"
203
+ classNameName = "form-control woo-next-checkout-input"
204
204
id = "email"
205
205
/>
206
206
< Error errors = { input . errors } fieldName = { 'email' } />
207
207
</ div >
208
208
</ div >
209
209
</ div >
210
+ < br />
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ < div className = "w-full max-w-lg" >
219
+ < div className = "flex flex-wrap mb-6 -mx-3" >
220
+ < div className = "w-full px-3 mb-6 md:w-1/2 md:mb-0" >
221
+ < label className = "block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase" for = "grid-first-name" >
222
+ First Name
223
+ </ label >
224
+ < input className = "block w-full px-4 py-3 mb-3 leading-tight text-gray-700 bg-gray-200 border border-red-500 rounded appearance-none focus:outline-none focus:bg-white" id = "grid-first-name" type = "text" placeholder = "Jane" />
225
+ < p className = "text-xs italic text-red-500" > Please fill out this field.</ p >
226
+ </ div >
227
+ < div className = "w-full px-3 md:w-1/2" >
228
+ < label className = "block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase" for = "grid-last-name" >
229
+ Last Name
230
+ </ label >
231
+ < input className = "block w-full px-4 py-3 leading-tight text-gray-700 bg-gray-200 border border-gray-200 rounded appearance-none focus:outline-none focus:bg-white focus:border-gray-500" id = "grid-last-name" type = "text" placeholder = "Doe" />
232
+ </ div >
233
+ </ div >
234
+ < div className = "flex flex-wrap mb-6 -mx-3" >
235
+ < div className = "w-full px-3" >
236
+ < label className = "block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase" for = "grid-password" >
237
+ Password
238
+ </ label >
239
+ < input className = "block w-full px-4 py-3 mb-3 leading-tight text-gray-700 bg-gray-200 border border-gray-200 rounded appearance-none focus:outline-none focus:bg-white focus:border-gray-500" id = "grid-password" type = "password" placeholder = "******************" />
240
+ < p className = "text-xs italic text-gray-600" > Make it as long and as crazy as you'd like</ p >
241
+ </ div >
242
+ </ div >
243
+ < div className = "flex flex-wrap mb-2 -mx-3" >
244
+ < div className = "w-full px-3 mb-6 md:w-1/3 md:mb-0" >
245
+ < label className = "block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase" for = "grid-city" >
246
+ City
247
+ </ label >
248
+ < input className = "block w-full px-4 py-3 leading-tight text-gray-700 bg-gray-200 border border-gray-200 rounded appearance-none focus:outline-none focus:bg-white focus:border-gray-500" id = "grid-city" type = "text" placeholder = "Albuquerque" />
249
+ </ div >
250
+ < div className = "w-full px-3 mb-6 md:w-1/3 md:mb-0" >
251
+ < label className = "block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase" for = "grid-state" >
252
+ State
253
+ </ label >
254
+ < div className = "relative" >
255
+ < select className = "block w-full px-4 py-3 pr-8 leading-tight text-gray-700 bg-gray-200 border border-gray-200 rounded appearance-none focus:outline-none focus:bg-white focus:border-gray-500" id = "grid-state" >
256
+ < option > New Mexico</ option >
257
+ < option > Missouri</ option >
258
+ < option > Texas</ option >
259
+ </ select >
260
+ < div className = "absolute inset-y-0 right-0 flex items-center px-2 text-gray-700 pointer-events-none" >
261
+ < svg className = "w-4 h-4 fill-current" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" > < path d = "M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" /> </ svg >
262
+ </ div >
263
+ </ div >
264
+ </ div >
265
+ < div className = "w-full px-3 mb-6 md:w-1/3 md:mb-0" >
266
+ < label className = "block mb-2 text-xs font-bold tracking-wide text-gray-700 uppercase" for = "grid-zip" >
267
+ Zip
268
+ </ label >
269
+ < input className = "block w-full px-4 py-3 leading-tight text-gray-700 bg-gray-200 border border-gray-200 rounded appearance-none focus:outline-none focus:bg-white focus:border-gray-500" id = "grid-zip" type = "text" placeholder = "90210" />
270
+ </ div >
271
+ </ div >
272
+ </ div >
273
+
274
+
275
+
276
+
277
+
278
+
279
+
210
280
</ >
211
281
) ;
212
282
} ;
0 commit comments