1
+
2
+ <style >
3
+
4
+ /* * {*/
5
+ /* box-sizing: border-box;*/
6
+ /* margin: 0;*/
7
+ /* padding: 0;*/
8
+ /* }*/
9
+ body {
10
+ /* font-family: "Poppins", sans-serif;*/
11
+ /* height: 100vh;*/
12
+ /* width: 100%;*/
13
+ /* margin: 0px auto;*/
14
+ /* padding: 50px 0px 0px;*/
15
+ /* color: #4E5150;*/
16
+
17
+
18
+ header {
19
+
20
+ height : 5% ;
21
+ margin-bottom : 30px ;
22
+
23
+ > h 3 {
24
+ font-size : 60px ;
25
+ color : black ;
26
+ text-transform : uppercase ;
27
+ font-weight : 500 ;
28
+ }
29
+
30
+ }
31
+
32
+ main {
33
+ height : 100% ;
34
+ display : flex ;
35
+ column-gap : 100px ;
36
+ margin : 50px ;
37
+
38
+ .checkout-form {
39
+ width : 50% ;
40
+
41
+ form {
42
+
43
+ h 6 {
44
+ font-size : 12px ;
45
+ font-weight : 500 ;
46
+ }
47
+
48
+ .form-control {
49
+ margin : 10px 0px ;
50
+ position : relative ;
51
+
52
+ label :not([for=" checkout-checkbox" ]) {
53
+ display : block ;
54
+ font-size : 15px ;
55
+ font-weight : 500 ;
56
+ margin-bottom : 2px ;
57
+ }
58
+
59
+ input :not ([type = " checkbox" ]) {
60
+ width : 100% ;
61
+ padding : 10px 10px 10px 40px ;
62
+ border-radius : 10px ;
63
+ outline : none ;
64
+ border : .2px solid #4e515085 ;
65
+ font-size : 12px ;
66
+ font-weight : 700 ;
67
+
68
+ &::placeholder {
69
+ font-size: 15px ;
70
+ font-weight : 500 ;
71
+ }
72
+ }
73
+
74
+ label [for = " checkout-checkbox" ] {
75
+ font-size : 9px ;
76
+ font-weight : 500 ;
77
+ line-height : 10px ;
78
+ }
79
+
80
+ > div {
81
+ position : relative ;
82
+
83
+ span .fa {
84
+ position : absolute ;
85
+ top : 50% ;
86
+ left : 0% ;
87
+ transform : translate (15px , -50% );
88
+ }
89
+ }
90
+ }
91
+
92
+ .form-group {
93
+ display : flex ;
94
+ column-gap : 25px ;
95
+ }
96
+
97
+ .checkbox-control {
98
+ display : flex ;
99
+ align-items : center ;
100
+ column-gap : 10px ;
101
+ }
102
+
103
+ .form-control-btn {
104
+ display : flex ;
105
+ align-items : center ;
106
+ justify-content : flex-end ;
107
+
108
+ button {
109
+ padding : 10px 25px ;
110
+ font-size : 10px ;
111
+ color : #fff ;
112
+ background : #010336 ;
113
+ border : 0 ;
114
+ border-radius : 7px ;
115
+ letter-spacing : .5px ;
116
+ font-weight : 200 ;
117
+ cursor : pointer ;
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ .checkout-details {
124
+ width : 40% ;
125
+
126
+ .checkout-details-inner {
127
+ background : #F2F2F2 ;
128
+ border-radius : 10px ;
129
+ padding : 20px ;
130
+
131
+
132
+ .checkout-lists {
133
+ display : flex ;
134
+ flex-direction : column ;
135
+ row-gap : 15px ;
136
+ margin-bottom : 40px ;
137
+
138
+ .card {
139
+ width : 100% ;
140
+ display : flex ;
141
+ column-gap : 15px ;
142
+
143
+ .card-image {
144
+ width : 35% ;
145
+
146
+ img {
147
+ width : 100% ;
148
+ object-fit : fill ;
149
+ border-radius : 10px ;
150
+ }
151
+ }
152
+
153
+ .card-details {
154
+ display : flex ;
155
+ flex-direction : column ;
156
+
157
+ .card-name {
158
+ font-size : 12px ;
159
+ font-weight : 500 ;
160
+ }
161
+ .card-price {
162
+ font-size : 10px ;
163
+ font-weight : 500 ;
164
+ color : #F2994A ;
165
+ margin-top : 5px ;
166
+
167
+ span {
168
+ color : #4E5150 ;
169
+ text-decoration : line-through ;
170
+ margin-left : 10px ;
171
+ }
172
+ }
173
+ .card-wheel {
174
+ margin-top : 17px ;
175
+ border : .2px solid #4e515085 ;
176
+ width : 90px ;
177
+ padding : 8px 8px ;
178
+ border-radius : 10px ;
179
+ font-size : 12px ;
180
+ display : flex ;
181
+ justify-content : space-between ;
182
+
183
+ button {
184
+ background : #E0E0E0 ;
185
+ color : #828282 ;
186
+ width : 15px ;
187
+ height : 15px ;
188
+ display : flex ;
189
+ justify-content : center ;
190
+ align-items : center ;
191
+ border : 0 ;
192
+ cursor : pointer ;
193
+ border-radius : 3px ;
194
+ font-weight : 500 ;
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }
200
+
201
+ .checkout-shipping , .checkout-total {
202
+ display : flex ;
203
+ font-size : 16px ;
204
+ padding : 5px 0px ;
205
+ border-top : 1px solid #BDBDBD ;
206
+ justify-content : space-between ;
207
+
208
+ p {
209
+ font-size : 10px ;
210
+ font-weight : 500 ;
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+
217
+ footer {
218
+
219
+ height : 5% ;
220
+ color : #BDBDBD ;
221
+ display : -ms-grid ;
222
+ display : grid ;
223
+ place-items : center ;
224
+ font-size : 12px ;
225
+
226
+ a {
227
+ text-decoration : none ;
228
+ color : inherit ;
229
+ }
230
+
231
+ }
232
+
233
+ }
234
+
235
+ @media screen and (max-width : 1024px ) {
236
+ body {
237
+ width : 80% ;
238
+
239
+ main {
240
+ column-gap : 70px ;
241
+ }
242
+ }
243
+ }
244
+
245
+ @media screen and (max-width : 768px ) {
246
+ body {
247
+ width : 92% ;
248
+
249
+ main {
250
+ flex-direction : column-reverse ;
251
+ height : auto ;
252
+ margin-bottom : 50px ;
253
+
254
+ .checkout-form {
255
+ width : 100% ;
256
+ margin-top : 35px ;
257
+ }
258
+
259
+ .checkout-details {
260
+ width : 100% ;
261
+ }
262
+ }
263
+
264
+ footer {
265
+ height : 10% ;
266
+ }
267
+ }
268
+ }
269
+
270
+ </style >
271
+
272
+ <header >
273
+ <h3 ><center >Checkout</center ></h3 >
274
+ </header >
275
+
276
+ <main >
277
+
278
+ <section class = " checkout-form" >
279
+ <form action = " #!" method = " get" >
280
+ <h6 >Contact information</h6 >
281
+ <div class = " form-control" >
282
+ <label for = " checkout-email" >E-mail</label >
283
+ <div >
284
+ <span class = " fa fa-envelope" ></span >
285
+ <input type = " email" id = " checkout-email" name = " checkout-email" placeholder = " Enter your email..." >
286
+ </div >
287
+ </div >
288
+ <div class = " form-control" >
289
+ <label for = " checkout-phone" >Phone</label >
290
+ <div >
291
+ <span class = " fa fa-phone" ></span >
292
+ <input type = " tel" name = " checkout-phone" id = " checkout-phone" placeholder = " Enter you phone..." >
293
+ </div >
294
+ </div >
295
+ <br >
296
+ <h6 >Shipping address</h6 >
297
+ <div class = " form-control" >
298
+ <label for = " checkout-name" >Full name</label >
299
+ <div >
300
+ <span class = " fa fa-user-circle" ></span >
301
+ <input type = " text" id = " checkout-name" name = " checkout-name" placeholder = " Enter you name..." >
302
+ </div >
303
+ </div >
304
+ <div class = " form-control" >
305
+ <label for = " checkout-address" >Address</label >
306
+ <div >
307
+ <span class = " fa fa-home" ></span >
308
+ <input type = " text" name = " checkout-address" id = " checkout-address" placeholder = " Your address..." >
309
+ </div >
310
+ </div >
311
+ <div class = " form-control" >
312
+ <label for = " checkout-city" >City</label >
313
+ <div >
314
+ <span class = " fa fa-building" ></span >
315
+ <input type = " text" name = " checkout-city" id = " checkout-city" placeholder = " Your city..." >
316
+ </div >
317
+ </div >
318
+ <div class = " form-group" >
319
+ <div class = " form-control" >
320
+ <label for = " checkout-country" >Country</label >
321
+ <div >
322
+ <span class = " fa fa-globe" ></span >
323
+ <input type = " text" name = " checkout-country" id = " checkout-country" placeholder = " Your country..." list = " country-list" >
324
+ <datalist id = " country-list" >
325
+ <option value = " India" ></option >
326
+ <option value = " USA" ></option >
327
+ <option value = " Russia" ></option >
328
+ <option value = " Japan" ></option >
329
+ <option value = " Egypt" ></option >
330
+ </datalist >
331
+ </div >
332
+ </div >
333
+ <div class = " form-control" >
334
+ <label for = " checkout-postal" >Postal code</label >
335
+ <div >
336
+ <span class = " fa fa-archive" ></span >
337
+ <input type = " numeric" name = " checkout-postal" id = " checkout-postal" placeholder = " Your postal code..." >
338
+ </div >
339
+ </div >
340
+ </div >
341
+ <div class = " form-control checkbox-control" >
342
+ <input type = " checkbox" name = " checkout-checkbox" id = " checkout-checkbox" >
343
+ <label for = " checkout-checkbox" >Save this information for next time</label >
344
+ </div >
345
+ <div class = " form-control-btn" >
346
+ <a href = " /card-details" ><button >Continue</button ></a >
347
+ </div >
348
+ </form >
349
+ </section >
350
+
351
+ <section class = " checkout-details" >
352
+ <div class = " checkout-details-inner" >
353
+ <div class = " checkout-lists" >
354
+ <div class = " card" >
355
+ <div class = " card-image" ><img src = " https://rvs-checkout-page.onrender.com/photo1.png" alt = " " ></div >
356
+ <div class = " card-details" >
357
+ <div class = " card-name" >Vintage Backbag</div >
358
+ <div class = " card-price" >$54.99 <span >$94.99</span ></div >
359
+ <div class = " card-wheel" >
360
+ <button >-</button >
361
+ <span >1</span >
362
+ <button >+</button >
363
+ </div >
364
+ </div >
365
+ </div >
366
+ <div class = " card" >
367
+ <div class = " card-image" ><img src = " https://rvs-checkout-page.onrender.com/photo2.png" alt = " " ></div >
368
+ <div class = " card-details" >
369
+ <div class = " card-name" >Levi Shoes</div >
370
+ <div class = " card-price" >$74.99 <span >$124.99</span ></div >
371
+ <div class = " card-wheel" >
372
+ <button >-</button >
373
+ <span >1</span >
374
+ <button >+</button >
375
+ </div >
376
+ </div >
377
+ </div >
378
+ </div >
379
+ <div class = " checkout-shipping" >
380
+ <h6 >Shipping</h6 >
381
+ <p >$19</p >
382
+ </div >
383
+ <div class = " checkout-total" >
384
+ <h6 >Total</h6 >
385
+ <p >$148.98</p >
386
+ </div >
387
+ </div >
388
+ </section >
389
+
390
+ </main >
0 commit comments