|
| 1 | +import React from 'react'; |
| 2 | +import { MDBBtn, MDBCard, MDBCardBody, MDBCardImage, MDBCol, MDBContainer, MDBIcon, MDBInput, MDBRow, MDBTypography } from 'mdb-react-ui-kit'; |
| 3 | +import './cartCheckout.css'; |
| 4 | + |
| 5 | +export default function CartCheckout() { |
| 6 | + return ( |
| 7 | + <section className="h-100 h-custom" style={{ backgroundColor: '#eee' }}> |
| 8 | + <MDBContainer className="h-100 py-5"> |
| 9 | + <MDBRow className="justify-content-center align-items-center h-100"> |
| 10 | + <MDBCol> |
| 11 | + <MDBCard className="shopping-cart" style={{ borderRadius: '15px' }}> |
| 12 | + <MDBCardBody className="text-black"> |
| 13 | + <MDBRow> |
| 14 | + <MDBCol lg="7" className="px-5 py-4"> |
| 15 | + <MDBTypography tag="h3" className="mb-5 pt-2 text-center fw-bold text-uppercase">Your products</MDBTypography> |
| 16 | + |
| 17 | + <div className="d-flex align-items-center mb-5"> |
| 18 | + <div className="flex-shrink-0"> |
| 19 | + <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/Horizontal/E-commerce/Products/13.webp" |
| 20 | + fluid style={{ width: '150px' }} alt="Generic placeholder image" /> |
| 21 | + </div> |
| 22 | + |
| 23 | + <div className="flex-grow-1 ms-3"> |
| 24 | + <a href="#!" className="float-end text-black"> |
| 25 | + <MDBIcon fas icon="times" /> |
| 26 | + </a> |
| 27 | + <MDBTypography tag="h5" className="text-primary">Samsung Galaxy M11 64GB</MDBTypography> |
| 28 | + <MDBTypography tag="h6" style={{ color: '#9e9e9e' }}>Color: white</MDBTypography> |
| 29 | + |
| 30 | + <div className="d-flex align-items-center"> |
| 31 | + <p className="fw-bold mb-0 me-5 pe-3">799$</p> |
| 32 | + |
| 33 | + <div className="def-number-input number-input safari_only"> |
| 34 | + <button className="minus"></button> |
| 35 | + <input className="quantity fw-bold text-black" min={0} defaultValue={1} type="number" /> |
| 36 | + <button className="plus"></button> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + |
| 42 | + <div className="d-flex align-items-center mb-5"> |
| 43 | + <div className="flex-shrink-0"> |
| 44 | + <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/Horizontal/E-commerce/Products/6.webp" |
| 45 | + fluid style={{ width: '150px' }} alt="Generic placeholder image" /> |
| 46 | + </div> |
| 47 | + |
| 48 | + <div className="flex-grow-1 ms-3"> |
| 49 | + <a href="#!" className="float-end text-black"> |
| 50 | + <MDBIcon fas icon="times" /> |
| 51 | + </a> |
| 52 | + <MDBTypography tag="h5" className="text-primary">Headphones Bose 35 II</MDBTypography> |
| 53 | + <MDBTypography tag="h6" style={{ color: '#9e9e9e' }}>Color: red</MDBTypography> |
| 54 | + |
| 55 | + <div className="d-flex align-items-center"> |
| 56 | + <p className="fw-bold mb-0 me-5 pe-3">239$</p> |
| 57 | + |
| 58 | + <div className="def-number-input number-input safari_only"> |
| 59 | + <button className="minus"></button> |
| 60 | + <input className="quantity fw-bold text-black" min={0} defaultValue={1} type="number" /> |
| 61 | + <button className="plus"></button> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + |
| 67 | + <div className="d-flex align-items-center mb-5"> |
| 68 | + <div className="flex-shrink-0"> |
| 69 | + <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/Horizontal/E-commerce/Products/1.webp" |
| 70 | + fluid style={{ width: '150px' }} alt="Generic placeholder image" /> |
| 71 | + </div> |
| 72 | + |
| 73 | + <div className="flex-grow-1 ms-3"> |
| 74 | + <a href="#!" className="float-end text-black"> |
| 75 | + <MDBIcon fas icon="times" /> |
| 76 | + </a> |
| 77 | + <MDBTypography tag="h5" className="text-primary">iPad 9.7 6-gen WiFi 32GB</MDBTypography> |
| 78 | + <MDBTypography tag="h6" style={{ color: '#9e9e9e' }}>Color: rose pink</MDBTypography> |
| 79 | + |
| 80 | + <div className="d-flex align-items-center"> |
| 81 | + <p className="fw-bold mb-0 me-5 pe-3">659$</p> |
| 82 | + |
| 83 | + <div className="def-number-input number-input safari_only"> |
| 84 | + <button className="minus"></button> |
| 85 | + <input className="quantity fw-bold text-black" min={0} defaultValue={2} type="number" /> |
| 86 | + <button className="plus"></button> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + |
| 92 | + <hr className="mb-4" style={{ height: '2px', backgroundColor: '#1266f1', opacity: 1 }} /> |
| 93 | + |
| 94 | + <div className="d-flex justify-content-between px-x"> |
| 95 | + <p className="fw-bold">Discount:</p> |
| 96 | + <p className="fw-bold">95$</p> |
| 97 | + </div> |
| 98 | + <div className="d-flex justify-content-between p-2 mb-2" style={{ backgroundColor: '#e1f5fe' }}> |
| 99 | + <MDBTypography tag="h5" className="fw-bold mb-0">Total:</MDBTypography> |
| 100 | + <MDBTypography tag="h5" className="fw-bold mb-0">2261$</MDBTypography> |
| 101 | + </div> |
| 102 | + </MDBCol> |
| 103 | + <MDBCol lg="5" className="px-5 py-4"> |
| 104 | + <MDBTypography tag="h3" className="mb-5 pt-2 text-center fw-bold text-uppercase">Payment</MDBTypography> |
| 105 | + |
| 106 | + <form className="mb-5"> |
| 107 | + <MDBInput |
| 108 | + className="mb-5" |
| 109 | + label="Card number" |
| 110 | + type='text' |
| 111 | + size='lg' |
| 112 | + defaultValue="1234 5678 9012 3457" |
| 113 | + /> |
| 114 | + |
| 115 | + <MDBInput |
| 116 | + className="mb-5" |
| 117 | + label="Name on card" |
| 118 | + type='text' |
| 119 | + size='lg' |
| 120 | + defaultValue="John Smith" |
| 121 | + /> |
| 122 | + |
| 123 | + <MDBRow> |
| 124 | + <MDBCol md="6" className="mb-5"> |
| 125 | + <MDBInput |
| 126 | + className="mb-4" |
| 127 | + label="Expiration" |
| 128 | + type='text' |
| 129 | + size='lg' |
| 130 | + minLength="7" |
| 131 | + maxLength="7" |
| 132 | + defaultValue="01/22" |
| 133 | + placeholder="MM/YYYY" |
| 134 | + /> |
| 135 | + </MDBCol> |
| 136 | + <MDBCol md="6" className="mb-5"> |
| 137 | + <MDBInput |
| 138 | + className="mb-4" |
| 139 | + label="Cvv" |
| 140 | + type='text' |
| 141 | + size='lg' |
| 142 | + minLength="3" |
| 143 | + maxLength="3" |
| 144 | + placeholder="●●●" |
| 145 | + defaultValue="●●●" |
| 146 | + /> |
| 147 | + </MDBCol> |
| 148 | + </MDBRow> |
| 149 | + |
| 150 | + <p className="mb-5"> |
| 151 | + Lorem ipsum dolor sit amet consectetur, adipisicing elit |
| 152 | + <a href="#!"> obcaecati sapiente</a>. |
| 153 | + </p> |
| 154 | + |
| 155 | + <MDBBtn block size="lg">Buy now</MDBBtn> |
| 156 | + |
| 157 | + <MDBTypography tag="h5" className="fw-bold mb-5" style={{ position: 'absolute', bottom: '0' }}> |
| 158 | + <a href="#!"> |
| 159 | + <MDBIcon fas icon="angle-left me-2" />Back to shopping |
| 160 | + </a> |
| 161 | + </MDBTypography> |
| 162 | + </form> |
| 163 | + </MDBCol> |
| 164 | + </MDBRow> |
| 165 | + </MDBCardBody> |
| 166 | + </MDBCard> |
| 167 | + </MDBCol> |
| 168 | + </MDBRow> |
| 169 | + </MDBContainer> |
| 170 | + </section> |
| 171 | + ); |
| 172 | +} |
0 commit comments