-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.html
245 lines (173 loc) · 6.91 KB
/
cart.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shopping Cart</title>
<!--
- custom css link
-->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/cart.css">
<!--
- google font link
-->
<link
href="https://fonts.googleapis.com/css?family=Source+Sans+3:200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"
rel="stylesheet" />
<script src="https://kit.fontawesome.com/621175abe2.js" crossorigin="anonymous"></script>
<!-- Lottie -->
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
</head>
<body>
<!-- Navigation bar -->
<header class="header">
<a href="index.html" class="logo"><i class="fas fa-shopping-basket"></i>Grocery</a>
<nav class="navbar">
<a href="Products.html">Products</a>
<a href="About-Us.html">About Us</a>
<a href="game.html">Game & Rewards</a>
</nav>
<div class="icons">
<div class="fas fa-bars" id="menu-btn"></div>
<div class="fas fa-search" id="search-btn"></div>
<a href="cart.html">
<div class="fas fa-shopping-cart" id="cart-btn"></div>
</a>
<div class="fas fa-user" id="login-btn"></div>
</div>
<!-- Profile Pop-up -->
<div class="profile-popup">
<div class="profile-name">
<h2 id="profile-name"></h2>
</div>
<div class="profile-content">
<lottie-player src="https://assets2.lottiefiles.com/packages/lf20_klurhj0n.json" background="transparent"
speed="0.5" style="width: 70px; height: 70px;" loop autoplay></lottie-player>
<h4 id="profile-address"></h4>
<lottie-player src="https://assets8.lottiefiles.com/packages/lf20_trr378cy.json" background="transparent"
speed="1" style="width: 70px; height: 70px;" loop autoplay></lottie-player>
<h4 id="profile-coins"></h4>
</div>
</div>
<!-- Login Pop-up -->
<div class="login-popup">
<div class="login">
<lottie-player src="https://assets3.lottiefiles.com/datafiles/9Nu3WJLydErNDKf/data.json"
background="transparent" speed="0.5" style="width: 200px; height: 200px;" loop autoplay></lottie-player>
<a href="login.html">Log in</a>
</div>
</div>
<form class="search-form">
<input id="search-input" type="text" placeholder="search here...">
<button id="search-logo" class="fas fa-search"></button>
</form>
</header>
<!--
- main container
-->
<main class="container">
<h1 class="heading">
<ion-icon name="cart-outline"></ion-icon> Shopping Cart
</h1>
<div class="item-flex">
<!--
- checkout section
-->
<section class="checkout">
<h2 class="section-heading">Payment Details</h2>
<div class="payment-form">
<div class="payment-method">
<button class="method selected" id="creditcard">
<ion-icon name="card"></ion-icon>
<span>Credit Card</span>
<ion-icon class="checkmark fill" name="checkmark-circle"></ion-icon>
</button>
<button class="method" id="paypal">
<ion-icon name="logo-paypal"></ion-icon>
<span>PayPal</span>
<ion-icon class="checkmark" name="checkmark-circle"></ion-icon>
</button>
</div>
<form action="#">
<div class="cardholder-name">
<label for="cardholder-name" class="label-default">Cardholder name</label>
<input type="text" name="cardholder-name" id="cardholder-name" class="input-default">
</div>
<div class="card-number">
<label for="card-number" class="label-default">Card number</label>
<input type="number" name="card-number" id="card-number" class="input-default">
</div>
<div class="input-flex">
<div class="expire-date">
<label class="label-default">Expiration date</label>
<div class="input-flex">
<input type="number" name="day" placeholder="31" min="1" max="31" class="input-default">
<input type="number" name="month" placeholder="12" min="1" max="12" class="input-default">
</div>
</div>
<div class="cvv">
<label for="cvv" class="label-default">CVV</label>
<input type="number" name="cvv" id="cvv" class="input-default">
</div>
</div>
</form>
</div>
<button id="makePaymentBtn" class="btn btn-primary">
<b>Pay</b> $ <span id="payAmount"></span>
</button>
</section>
<!--
- cart section
-->
<section class="cart">
<div class="cart-item-box">
<h2 class="section-heading">Order Summery</h2>
<!-- Cart items will be generated here -->
<div class="wrapper">
<div class="discount-token">
<label for="discount-token" class="label-default">Gift card/Discount code</label>
<div class="wrapper-flex">
<input type="text" name="discount-token" id="discount-token" class="input-default">
<button class="btn btn-outline">Apply</button>
</div>
</div>
<div class="amount">
<div class="subtotal">
<span>Subtotal</span> <span>$ <span id="subtotal"></span></span>
</div>
<div class="points">
<span>Redeem points</span> <span>$ <span id="points"></span></span>
</div>
<div class="tax">
<span>Tax</span> <span>$ <span id="tax"></span></span>
</div>
<div class="shipping">
<span>Shipping</span> <span>$ <span id="shipping"></span></span>
</div>
<div class="total">
<span>Total</span> <span>$ <span id="total"></span></span>
</div>
</div>
</div>
</div>
</section>
</div>
</main>
<!--
- custom js link
-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="js/cart.js"></script>
<script src="js/script.js"></script>
<!--
- ionicon link
-->
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>