-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
192 lines (191 loc) · 6.69 KB
/
index.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
<!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>Credit Card with 3D flip</title>
<link rel="stylesheet" href="styles/flip_3d_styles.css" />
</head>
<body>
<div class="confetti-wrapper"></div>
<div class="success-container"">
<h1>Payment Successful!</h1>
<h4>You can now close this window and continue browsing.</h4>
<button class="okay-btn">Okay!</button>
</div>
<div class="title">
<h1>Card Payment <br /> UI Prototype</h1>
</div>
<div class="card">
<div class="card-main-content">
<div class="card-front">
<img
class="card-design-img"
src="images/world_map-removebg-preview.png"
alt=""
/>
<img
class="visa-logo"
src="images/Visa_Inc._logo.svg-removebg-preview.png"
alt=""
/>
<img
class="master-card-logo"
src="images/master-card-logo-removebg-preview.png"
alt=""
/>
<img class="rupay-logo" src="images/rupay_logo.png" alt="" />
<img
class="card-chip-img"
src="images/credit_card_chip-removebg-preview.png"
alt=""
/>
<p class="card-num">
____    ____    ____    ____
</p>
<div class="card-holder-name">
<h4>Card Holder</h4>
<h3 id="card-holder-name">________________</h3>
</div>
<div class="card-expires">
<h4>Valid till</h4>
<h3 id="expires-display">__ /__</h3>
</div>
</div>
<div class="card-back">
<img
class="card-design-img"
src="images/world_map-removebg-preview.png"
alt=""
/>
<div class="barcode"></div>
<div class="card-cvv-wrapper"></div>
<div class="card-cvv">
<h5 id="cvv-display">____</h5>
</div>
<div class="card-back-text">
<p>
Recheck your card details for a hassle-free digital transaction.
</p>
</div>
<img
class="visa-logo"
src="images/Visa_Inc._logo.svg-removebg-preview.png"
alt=""
/>
<img
class="master-card-logo"
src="images/master-card-logo-removebg-preview.png"
alt=""
/>
<img class="rupay-logo" src="images/rupay_logo.png" alt="" />
</div>
</div>
</div>
<div class="payment-form">
<form action="" autocomplete="off">
<div class="card-holder-name" onclick="cardFlipFront()">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 0 24 24"
width="24px"
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33C4.62 15.49 4 13.82 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
/>
</svg>
<input
id="username"
name="text"
type="text"
placeholder="Name"
oninput="displayOnCard()"
/><br />
</div>
<div class="card-number" onclick="cardFlipFront()">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 0 24 24"
width="24px"
fill="#000000"
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"
/>
</svg>
<input
id="cardnumber"
name="cardnumber"
type="number"
placeholder="Card Number"
oninput="displayCardNum()"
/>
</div>
<div class="input-wrapper">
<div class="card-expires" onclick="cardFlipFront()">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 0 24 24"
width="24px"
fill="#000000"
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z"
/>
</svg>
<input
id="expiry"
name="cardExpiry"
type="text"
placeholder="Expires: MM/YY"
oninput="displayOnCard()"
/><br />
</div>
<div class="card-cvv-field" onclick="cardFlipBack()">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 0 24 24"
width="24px"
style="margin-left: -20px"
>
<g fill="none">
<path d="M0 0h24v24H0V0z" />
<path d="M0 0h24v24H0V0z" opacity=".87" />
</g>
<path
d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"
/>
</svg>
<input
id="cvv"
name="cardCvv"
type="password"
placeholder="CVV"
oninput="displayOnCard()"
/>
</div>
</div>
<div class="payment-btn">
<input type="button" value="Pay Now" />
</div>
</form>
</div>
<script defer
src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.13/lottie.min.js"
integrity="sha512-srGxQe2w7s50+5/nNgEVKYtBm15zRylJwdjxYnGEZr3mmHFJKFjA/ImA2OKizVzoIDX8XISMHDI1+az9pnumbQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script defer src="https://cdnjs.com/libraries/bodymovin" type="text/javascript"></script>
<!-- <script defer src="js/postSubmit.js"></script> -->
<script defer src="js/payment.js"></script>
</body>
</html>