-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpay-card-detail.html
355 lines (293 loc) · 10.8 KB
/
pay-card-detail.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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!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>Process Order - Payment using Card</title>
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
<style>
* {
font-family: 'Neue-Helvetica', 'Helvetica', 'Arial', Sans-Serif;
font-stretch: ultra-condensed;
}
#pay-main-container {
width: 85%;
margin: auto;
}
#heading {
color: black;
font-size: 20px;
font-weight: bold;
margin-top: 10%;
}
#card-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto;
gap: 20px;
width: 70%;
}
.remove-border {
border-top-style: hidden;
border-right-style: hidden;
border-left-style: hidden;
border-bottom-style: groove;
margin-top: 25px;
}
#pay-icon {
border: 1px solid gray;
width: 82px;
height: 54px;
margin-top: 80px;
margin-bottom: 80px;
}
/* //FIX button css code */
#continue {
display: flex;
position: fixed;
bottom: 25px;
right: 15px;
}
#total-pirce-div {
display: flex;
flex-direction: column;
height: 40px;
justify-content: center;
margin-right: 60px;
}
#continue-button {
background-color: black;
color: white;
padding-left: 90px;
padding-right: 90px;
height: 40px;
}
/* //FIX button css code */
#headerContents {
display: flex;
justify-content: space-between;
width: 92%;
margin: auto;
margin-right: 10px;
margin-top: 15px;
top: 0px;
}
#headerRight {
width: max-content;
display: flex;
padding: 10px;
justify-content: space-between;
}
#headerRightRight {
display: flex;
}
#help {
position: fixed;
right: 7.5%;
}
#headerRightRight>a {
text-decoration: none;
padding: 0px 10px 0px 10px;
font-size: 13px;
color: rgb(41, 41, 41);
font-weight: 100;
font-family: 'Neue-Helvetica', 'Helvetica', 'Arial', Sans-Serif;
font-stretch: ultra-condensed;
}
#logo {
width: 212px;
position: fixed;
}
/*-------------------- Header End------------------------- */
/* footer css part */
#container-bottom {
display: flex;
flex-direction: row;
gap: 30px;
font-size: 10px;
line-height: 25px;
height: 600px;
color: gray;
}
#container-bottom1 {
display: flex;
flex-direction: row;
justify-content: space-between;
height: 150px;
color: gray;
}
#container-bottom2 {
font-size: 10px;
height: 250px;
color: gray;
}
.bottom-heading {
font-size: 18px;
font-weight: bold;
line-height: 45px;
}
#footer-html {
margin-top: 90%;
}
@media all and (min-width: 451px) and (max-width: 1050px) {
#heading {
color: black;
font-size: 20px;
font-weight: bold;
margin-top: 25%;
}
}
</style>
</head>
<body>
<!-- add heading part inside -->
<!-- header section html -->
<header>
<div id="headerContents">
<div id="headerLeft">
<div>
<img src="https://upload.wikimedia.org/wikipedia/commons/f/fd/Zara_Logo.svg" alt="Zara_Logo" id="logo">
</div>
</div>
<div id="headerRightRight">
<a id="help" href="">HELP</a>
</div>
</div>
</div>
</header>
<!-- end header section html -->
<div id="pay-main-container">
<h2 id="heading">ENTER YOUR CARD DETAILS</h2>
<img id="pay-icon" src="https://static.zara.net/static/images/payment/payment/icon-payment-visa.svg" alt="">
<div id="card-container">
<input id="card-number" class="remove-border" type="number" placeholder="CARD NUMBER">
<select class="remove-border" name="Month" id="month">
<option value="" selected disabled>Month</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
<select class="remove-border" name="Year" id="year">
<option value="" selected disabled> Year</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
<option value="2027">2027</option>
<option value="2028">2028</option>
<option value="2029">2029</option>
<option value="2030">2030</option>
</select>
<input class="remove-border" id="card-holder" type="text" placeholder="CARD HOLDER">
<input class="remove-border" id="cvv" type="number" placeholder="CVV2 SECURITY CODE">
</div>
<!-- design fix continue button -->
<div id="continue">
<div id="total-pirce-div">
<p id="total-price">Total Price</p>
</div>
<a href="./pay-card-detail.html">
<button id="continue-button">
CONTINUE
</button>
</a>
</div>
<!-- Design Bottom view -->
<div id="footer-html">
<!-- all footer html -->
<div id="container-bottom">
<!-- START -->
<div class="box">
<div class="bottom-heading">HELP</div>
<div>SHOP AT ZARA.COM</div>
<div>PRODUCT</div>
<div>PAYMENT</div>
<div>SHIPPING</div>
<div>EXCHANGES AND RETURNS</div>
<div>SHOPS AND COMPANY</div>
<div>CLOTHES COLLECTION</div>
<div>PROGRAMME</div>
<div>MY ACCOUNT</div>
</div>
<div class="box">
<div class="bottom-heading">FOLLOW US</div>
<div>NEWSLETTER</div>
<div>INSTAGRAM</div>
<div>FACEBOOK</div>
<div>TWITTER</div>
<div>PINTEREST</div>
<div>YOUTUBE</div>
</div>
<div class="box">
<div class="bottom-heading">COMPANY</div>
<div>ABOUT US</div>
<div>JOIN LIFE</div>
<div>OFFICES</div>
<div>STORES</div>
<div>WORK WITH US</div>
</div>
<div class="box">
<div class="bottom-heading">POLICIES</div>
<div>PRIVACY POLICY</div>
<div>PURCHASE CONDITIONS</div>
<div>COOKIES SETTINGS</div>
</div>
<!-- STOP -->
</div>
<div id="container-bottom1">
<!-- start -->
<div>INDIA</div>
<div>ENGLISH © ALL RIGHTS RESERVED</div>
<!-- stop -->
</div>
<div id="container-bottom2">
<p>NAME AND ADDRESS OF THE MANUFACTURER:</p>
<p>INDUSTRIA DE DISEÑO TEXTIL, S.A. (INDITEX, S.A.)</p>
<p>AVENIDA DE LA DIPUTACIÓN, EDIFICIO INDITEX, 15143, ARTEIXO (A CORUÑA), SPAIN</p>
</div>
</div>
</div>
</body>
<script>
// show total price code
var totalPrice;
if (JSON.parse(localStorage.getItem('cartData')) === null) {
totalPrice = 0;
} else {
totalPrice = JSON.parse(localStorage.getItem('cartData')).price;
}
document.getElementById('total-price').innerText = `Total RS. ${totalPrice}`;
// after click continue show order sucess full code below
document.querySelector('#continue-button').addEventListener('click', function() {
event.preventDefault();
// evt.preventDefault();
var cardNumber = document.querySelector('#card-number').value;
var month = document.querySelector('#month').value;
var year = document.querySelector('#year').value;
var holderName = document.querySelector('#card-holder').value;
var cvv = document.querySelector('#cvv').value;
console.log(cardNumber, month, year, holderName, cvv);
if (cardNumber && month && year && holderName && cvv && cardNumber.length == 16 && cvv.length == 3) {
alert("Your Order Placed Sucessfully");
location.assign("./thankYou.html"); // add home page address
} else {
alert("Enter Correct Payment Details");
// location.reload();
}
// location.reload(); // reload same page
});
var totalPrice = localStorage.getItem('totalPrice');
document.querySelector('#total-price').innerText = `Total Rs. ${totalPrice}/-`
</script>
</html>