1
+ import React from 'react' ;
2
+
3
+
4
+
5
+ const Checkout = ( ) => {
6
+ return (
7
+
8
+ < div className = "row" >
9
+ < div className = "col-75" >
10
+ < div className = "container" >
11
+ < form action = "/action_page.php" >
12
+ < div className = "row" >
13
+ < div className = "col-50" >
14
+ < h3 > Billing Address</ h3 >
15
+ < label htmlFor = "fname" > < i className = "fa fa-user" /> Full Name</ label >
16
+ < input type = "text" id = "fname" name = "firstname" placeholder = "John M. Doe" />
17
+ < label htmlFor = "email" > < i className = "fa fa-envelope" /> Email</ label >
18
+ < input type = "text" id = "email" name = "email" placeholder = "[email protected] " />
19
+ < label htmlFor = "adr" > < i className = "fa fa-address-card-o" /> Address</ label >
20
+ < input type = "text" id = "adr" name = "address" placeholder = "542 W. 15th Street" />
21
+ < label htmlFor = "city" > < i className = "fa fa-institution" /> City</ label >
22
+ < input type = "text" id = "city" name = "city" placeholder = "New York" />
23
+ < div className = "row" >
24
+ < div className = "col-50" >
25
+ < label htmlFor = "state" > State</ label >
26
+ < input type = "text" id = "state" name = "state" placeholder = "NY" />
27
+ </ div >
28
+ < div className = "col-50" >
29
+ < label htmlFor = "zip" > Zip</ label >
30
+ < input type = "text" id = "zip" name = "zip" placeholder = { 10001 } />
31
+ </ div >
32
+ </ div >
33
+ </ div >
34
+ < div className = "col-50" >
35
+ < h3 > Payment</ h3 >
36
+ < label htmlFor = "fname" > Accepted Cards</ label >
37
+ < div className = "icon-container" >
38
+ < i className = "fa fa-cc-visa" style = { { color : 'navy' } } />
39
+ < i className = "fa fa-cc-amex" style = { { color : 'blue' } } />
40
+ < i className = "fa fa-cc-mastercard" style = { { color : 'red' } } />
41
+ < i className = "fa fa-cc-discover" style = { { color : 'orange' } } />
42
+ </ div >
43
+ < label htmlFor = "cname" > Name on Card</ label >
44
+ < input type = "text" id = "cname" name = "cardname" placeholder = "John More Doe" />
45
+ < label htmlFor = "ccnum" > Credit card number</ label >
46
+ < input type = "text" id = "ccnum" name = "cardnumber" placeholder = "1111-2222-3333-4444" />
47
+ < label htmlFor = "expmonth" > Exp Month</ label >
48
+ < input type = "text" id = "expmonth" name = "expmonth" placeholder = "September" />
49
+ < div className = "row" >
50
+ < div className = "col-50" >
51
+ < label htmlFor = "expyear" > Exp Year</ label >
52
+ < input type = "text" id = "expyear" name = "expyear" placeholder = { 2018 } />
53
+ </ div >
54
+ < div className = "col-50" >
55
+ < label htmlFor = "cvv" > CVV</ label >
56
+ < input type = "text" id = "cvv" name = "cvv" placeholder = { 352 } />
57
+ </ div >
58
+ </ div >
59
+ </ div >
60
+ </ div >
61
+ < label >
62
+ < input type = "checkbox" defaultChecked = "checked" name = "sameadr" /> Shipping address same as billing
63
+ </ label >
64
+ < input type = "submit" defaultValue = "Continue to checkout" className = "btn" />
65
+ </ form >
66
+ </ div >
67
+ </ div >
68
+ < div className = "col-25" >
69
+ < div className = "container" >
70
+ < h4 > Cart
71
+ < span className = "price" style = { { color : 'black' } } >
72
+ < i className = "fa fa-shopping-cart" />
73
+ < b > 4</ b >
74
+ </ span >
75
+ </ h4 >
76
+ < p > < a href = "#" > Product 1</ a > < span className = "price" > $15</ span > </ p >
77
+ < p > < a href = "#" > Product 2</ a > < span className = "price" > $5</ span > </ p >
78
+ < p > < a href = "#" > Product 3</ a > < span className = "price" > $8</ span > </ p >
79
+ < p > < a href = "#" > Product 4</ a > < span className = "price" > $2</ span > </ p >
80
+ < hr />
81
+ < p > Total < span className = "price" style = { { color : 'black' } } > < b > $30</ b > </ span > </ p >
82
+ </ div >
83
+ </ div >
84
+ </ div >
85
+
86
+ ) ;
87
+ }
88
+
89
+ export default Checkout ;
0 commit comments