angular2-credit-card-draw 1.0.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +12 -0
- package/.storybook/preview.ts +15 -0
- package/.storybook/tsconfig.json +7 -0
- package/.travis.yml +6 -4
- package/README.MD +132 -87
- package/dist/angular2-credit-card-draw/README.MD +132 -0
- package/dist/angular2-credit-card-draw/fesm2022/angular2-credit-card-draw.mjs +60 -0
- package/dist/angular2-credit-card-draw/fesm2022/angular2-credit-card-draw.mjs.map +1 -0
- package/dist/angular2-credit-card-draw/types/angular2-credit-card-draw.d.ts +24 -0
- package/ng-package.json +10 -0
- package/package.json +54 -47
- package/src/card.component.stories.ts +36 -0
- package/src/card.component.ts +16 -21
- package/src/card.html +388 -388
- package/src/card.module.ts +14 -0
- package/src/public-api.ts +2 -0
- package/storybook-static/assets/Color-6AOWCN3U-BHKwsHJb.js +1 -0
- package/storybook-static/assets/DocsRenderer-JROSPFPF-CPN4diXU.js +290 -0
- package/storybook-static/assets/WithTooltip-CDUNV5IS-CxkNVblN.js +9 -0
- package/storybook-static/assets/angular-platform-BykChHPp.js +7 -0
- package/storybook-static/assets/card.component.stories-Cbn8dXwJ.js +393 -0
- package/storybook-static/assets/chunk-242VQQM5-Jx3JgJO8.js +1 -0
- package/storybook-static/assets/chunk-DRQKCCAG-DvhnS67P.js +1 -0
- package/storybook-static/assets/chunk-QQBDHPVZ-wyKC71kO.js +1 -0
- package/storybook-static/assets/chunk-W22LQPXL-I4qw3Lnf.js +18 -0
- package/storybook-static/assets/components-fboz0Wwr.js +1 -0
- package/storybook-static/assets/formatter-L2YTDE3Q-Bcc5sJgv.js +1 -0
- package/storybook-static/assets/iframe-C2YkrQlr.js +1 -0
- package/storybook-static/assets/iframe-D-RwILkF.js +1099 -0
- package/storybook-static/assets/preload-helper-C313MjYS.js +1 -0
- package/storybook-static/assets/react-BxCz-S_c.js +1 -0
- package/storybook-static/assets/react-DL9pMoMl.js +1 -0
- package/storybook-static/assets/rolldown-runtime-vtgMY1y5.js +1 -0
- package/storybook-static/assets/syntaxhighlighter-4REYKNEV-Donq5IPh.js +6 -0
- package/storybook-static/assets/theming-CXmlqL_e.js +39 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +680 -0
- package/storybook-static/index.html +149 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +18 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +632 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +79237 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +29276 -0
- package/storybook-static/services/core/docgen/components-carddraw.json +151 -0
- package/storybook-static/services/core/story-docs/components-carddraw.json +21 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/tsconfig.json +15 -20
- package/tsconfig.lib.json +15 -0
- package/.npmignore +0 -24
- package/dist/card.component.ts +0 -22
- package/dist/dist/card.component.d.ts +0 -11
- package/dist/dist/card.component.js +0 -57
- package/dist/dist/card.component.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/gulpfile.js +0 -8
- package/index.ts +0 -24
- package/tslint.json +0 -110
- package/typings/globals/angular-protractor/index.d.ts +0 -1844
- package/typings/globals/angular-protractor/typings.json +0 -8
- package/typings/globals/es6-shim/index.d.ts +0 -665
- package/typings/globals/es6-shim/typings.json +0 -8
- package/typings/globals/jasmine/index.d.ts +0 -499
- package/typings/globals/jasmine/typings.json +0 -8
- package/typings/globals/selenium-webdriver/index.d.ts +0 -5390
- package/typings/globals/selenium-webdriver/typings.json +0 -8
- package/typings/index.d.ts +0 -4
- package/typings.json +0 -10
package/src/card.html
CHANGED
|
@@ -1,389 +1,389 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<div class="checkout">
|
|
3
|
-
<div class="credit-card-box {{toggle ? 'hover':''}}">
|
|
4
|
-
<div class="flip">
|
|
5
|
-
<div [style.width]="width" [style.height]="height" [style.background]="background" class="front">
|
|
6
|
-
<div class="chip"></div>
|
|
7
|
-
<div class="logo">
|
|
8
|
-
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
9
|
-
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;">
|
|
10
|
-
<g>
|
|
11
|
-
<g>
|
|
12
|
-
<path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143
|
|
13
|
-
c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01
|
|
14
|
-
c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z
|
|
15
|
-
M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228
|
|
16
|
-
c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77
|
|
17
|
-
c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092
|
|
18
|
-
l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77
|
|
19
|
-
C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304
|
|
20
|
-
C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161
|
|
21
|
-
c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066
|
|
22
|
-
h-3.888L19.153,16.8z">
|
|
23
|
-
</path>
|
|
24
|
-
</g>
|
|
25
|
-
</g>
|
|
26
|
-
</svg>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="number">{{number}}</div>
|
|
29
|
-
<div class="card-holder">
|
|
30
|
-
<label>Card holder</label>
|
|
31
|
-
<div>{{name}}</div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="card-expiration-date">
|
|
34
|
-
<label>Expires</label>
|
|
35
|
-
<div>{{expiration}}</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div [style.width]="width" [style.height]="height" [style.background]="background" class="back">
|
|
39
|
-
<div class="strip"></div>
|
|
40
|
-
<div class="logo">
|
|
41
|
-
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
42
|
-
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;">
|
|
43
|
-
<g>
|
|
44
|
-
<g>
|
|
45
|
-
<path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143
|
|
46
|
-
c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01
|
|
47
|
-
c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z
|
|
48
|
-
M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228
|
|
49
|
-
c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77
|
|
50
|
-
c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092
|
|
51
|
-
l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77
|
|
52
|
-
C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304
|
|
53
|
-
C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161
|
|
54
|
-
c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066
|
|
55
|
-
h-3.888L19.153,16.8z">
|
|
56
|
-
</path>
|
|
57
|
-
</g>
|
|
58
|
-
</g>
|
|
59
|
-
</svg>
|
|
60
|
-
|
|
61
|
-
</div>
|
|
62
|
-
<div class="ccv">
|
|
63
|
-
<label>CCV</label>
|
|
64
|
-
<div>{{ccv}}</div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<style>
|
|
71
|
-
*,
|
|
72
|
-
*::before,
|
|
73
|
-
*::after {
|
|
74
|
-
box-sizing: border-box;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
html,
|
|
78
|
-
body {
|
|
79
|
-
min-height: 100%;
|
|
80
|
-
font-family: 'Open sans', sans-serif;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
body {
|
|
84
|
-
background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);
|
|
85
|
-
background: linear-gradient(50deg, #f3c680, #a1e3e2);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/*--------------------
|
|
89
|
-
Buttons
|
|
90
|
-
--------------------*/
|
|
91
|
-
.btn {
|
|
92
|
-
display: block;
|
|
93
|
-
background: #bded7d;
|
|
94
|
-
color: white;
|
|
95
|
-
text-decoration: none;
|
|
96
|
-
margin: 20px 0;
|
|
97
|
-
padding: 15px 15px;
|
|
98
|
-
border-radius: 5px;
|
|
99
|
-
position: relative;
|
|
100
|
-
}
|
|
101
|
-
.btn::after {
|
|
102
|
-
content: '';
|
|
103
|
-
position: absolute;
|
|
104
|
-
z-index: 1;
|
|
105
|
-
top: 0;
|
|
106
|
-
left: 0;
|
|
107
|
-
width: 100%;
|
|
108
|
-
height: 100%;
|
|
109
|
-
-webkit-transition: all .2s ease-in-out;
|
|
110
|
-
transition: all .2s ease-in-out;
|
|
111
|
-
box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);
|
|
112
|
-
border-radius: 5px;
|
|
113
|
-
}
|
|
114
|
-
.btn:hover::after {
|
|
115
|
-
background: rgba(0, 0, 0, 0.1);
|
|
116
|
-
box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/*--------------------
|
|
120
|
-
Form
|
|
121
|
-
--------------------*/
|
|
122
|
-
.form fieldset {
|
|
123
|
-
border: none;
|
|
124
|
-
padding: 0;
|
|
125
|
-
padding: 10px 0;
|
|
126
|
-
position: relative;
|
|
127
|
-
clear: both;
|
|
128
|
-
}
|
|
129
|
-
.form fieldset.fieldset-expiration {
|
|
130
|
-
float: left;
|
|
131
|
-
width: 60%;
|
|
132
|
-
}
|
|
133
|
-
.form fieldset.fieldset-expiration .select {
|
|
134
|
-
width: 84px;
|
|
135
|
-
margin-right: 12px;
|
|
136
|
-
float: left;
|
|
137
|
-
}
|
|
138
|
-
.form fieldset.fieldset-ccv {
|
|
139
|
-
clear: none;
|
|
140
|
-
float: right;
|
|
141
|
-
width: 86px;
|
|
142
|
-
}
|
|
143
|
-
.form fieldset label {
|
|
144
|
-
display: block;
|
|
145
|
-
text-transform: uppercase;
|
|
146
|
-
font-size: 11px;
|
|
147
|
-
color: rgba(0, 0, 0, 0.6);
|
|
148
|
-
margin-bottom: 5px;
|
|
149
|
-
font-weight: bold;
|
|
150
|
-
font-family: Inconsolata;
|
|
151
|
-
}
|
|
152
|
-
.form fieldset input,
|
|
153
|
-
.form fieldset .select {
|
|
154
|
-
width: 100%;
|
|
155
|
-
height: 38px;
|
|
156
|
-
color: #333333;
|
|
157
|
-
padding: 10px;
|
|
158
|
-
border-radius: 5px;
|
|
159
|
-
font-size: 15px;
|
|
160
|
-
outline: none !important;
|
|
161
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
162
|
-
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
|
|
163
|
-
}
|
|
164
|
-
.form fieldset input.input-cart-number,
|
|
165
|
-
.form fieldset .select.input-cart-number {
|
|
166
|
-
width: 82px;
|
|
167
|
-
display: inline-block;
|
|
168
|
-
margin-right: 8px;
|
|
169
|
-
}
|
|
170
|
-
.form fieldset input.input-cart-number:last-child,
|
|
171
|
-
.form fieldset .select.input-cart-number:last-child {
|
|
172
|
-
margin-right: 0;
|
|
173
|
-
}
|
|
174
|
-
.form fieldset .select {
|
|
175
|
-
position: relative;
|
|
176
|
-
}
|
|
177
|
-
.form fieldset .select::after {
|
|
178
|
-
content: '';
|
|
179
|
-
border-top: 8px solid #222;
|
|
180
|
-
border-left: 4px solid transparent;
|
|
181
|
-
border-right: 4px solid transparent;
|
|
182
|
-
position: absolute;
|
|
183
|
-
z-index: 2;
|
|
184
|
-
top: 14px;
|
|
185
|
-
right: 10px;
|
|
186
|
-
pointer-events: none;
|
|
187
|
-
}
|
|
188
|
-
.form fieldset .select select {
|
|
189
|
-
-webkit-appearance: none;
|
|
190
|
-
-moz-appearance: none;
|
|
191
|
-
appearance: none;
|
|
192
|
-
position: absolute;
|
|
193
|
-
padding: 0;
|
|
194
|
-
border: none;
|
|
195
|
-
width: 100%;
|
|
196
|
-
outline: none !important;
|
|
197
|
-
top: 6px;
|
|
198
|
-
left: 6px;
|
|
199
|
-
background: none;
|
|
200
|
-
}
|
|
201
|
-
.form fieldset .select select :-moz-focusring {
|
|
202
|
-
color: transparent;
|
|
203
|
-
text-shadow: 0 0 0 #000;
|
|
204
|
-
}
|
|
205
|
-
.form button {
|
|
206
|
-
width: 100%;
|
|
207
|
-
outline: none !important;
|
|
208
|
-
background: -webkit-linear-gradient(top, #49a09b, #3d8291);
|
|
209
|
-
background: linear-gradient(180deg, #49a09b, #3d8291);
|
|
210
|
-
text-transform: uppercase;
|
|
211
|
-
font-weight: bold;
|
|
212
|
-
border: none;
|
|
213
|
-
box-shadow: none;
|
|
214
|
-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
215
|
-
margin-top: 90px;
|
|
216
|
-
}
|
|
217
|
-
.form button .fa {
|
|
218
|
-
margin-right: 6px;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/*--------------------
|
|
222
|
-
Checkout
|
|
223
|
-
--------------------*/
|
|
224
|
-
.checkout {
|
|
225
|
-
margin: 20px auto 0px;
|
|
226
|
-
position: relative;
|
|
227
|
-
max-width: 460px;
|
|
228
|
-
border-radius: 15px;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/*--------------------
|
|
232
|
-
Credit Card
|
|
233
|
-
--------------------*/
|
|
234
|
-
.credit-card-box {
|
|
235
|
-
-webkit-perspective: 1000;
|
|
236
|
-
perspective: 1000;
|
|
237
|
-
width: 400px;
|
|
238
|
-
height: 280px;
|
|
239
|
-
position: relative;
|
|
240
|
-
left: 50%;
|
|
241
|
-
-webkit-transform: translateX(-50%);
|
|
242
|
-
transform: translateX(-50%);
|
|
243
|
-
}
|
|
244
|
-
.credit-card-box:hover .flip, .credit-card-box.hover .flip {
|
|
245
|
-
-webkit-transform: rotateY(180deg);
|
|
246
|
-
transform: rotateY(180deg);
|
|
247
|
-
}
|
|
248
|
-
.credit-card-box .front,
|
|
249
|
-
.credit-card-box .back {
|
|
250
|
-
width: 400px;
|
|
251
|
-
height: 250px;
|
|
252
|
-
border-radius: 15px;
|
|
253
|
-
-webkit-backface-visibility: hidden;
|
|
254
|
-
backface-visibility: hidden;
|
|
255
|
-
background: linear-gradient(135deg, #bd6772, #53223f);
|
|
256
|
-
position: absolute;
|
|
257
|
-
color: #fff;
|
|
258
|
-
font-family: Inconsolata;
|
|
259
|
-
top: 0;
|
|
260
|
-
left: 0;
|
|
261
|
-
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
|
|
262
|
-
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
|
|
263
|
-
}
|
|
264
|
-
.credit-card-box .front::before,
|
|
265
|
-
.credit-card-box .back::before {
|
|
266
|
-
content: '';
|
|
267
|
-
position: absolute;
|
|
268
|
-
width: 100%;
|
|
269
|
-
height: 100%;
|
|
270
|
-
top: 0;
|
|
271
|
-
left: 0;
|
|
272
|
-
background: url("http://cdn.flaticon.com/svg/44/44386.svg") no-repeat center;
|
|
273
|
-
background-size: cover;
|
|
274
|
-
opacity: .05;
|
|
275
|
-
}
|
|
276
|
-
.credit-card-box .flip {
|
|
277
|
-
-webkit-transition: 0.6s;
|
|
278
|
-
transition: 0.6s;
|
|
279
|
-
-webkit-transform-style: preserve-3d;
|
|
280
|
-
transform-style: preserve-3d;
|
|
281
|
-
position: relative;
|
|
282
|
-
}
|
|
283
|
-
.credit-card-box .logo {
|
|
284
|
-
position: absolute;
|
|
285
|
-
top: 9px;
|
|
286
|
-
right: 20px;
|
|
287
|
-
width: 60px;
|
|
288
|
-
}
|
|
289
|
-
.credit-card-box .logo svg {
|
|
290
|
-
width: 100%;
|
|
291
|
-
height: auto;
|
|
292
|
-
fill: #fff;
|
|
293
|
-
}
|
|
294
|
-
.credit-card-box .front {
|
|
295
|
-
z-index: 2;
|
|
296
|
-
-webkit-transform: rotateY(0deg);
|
|
297
|
-
transform: rotateY(0deg);
|
|
298
|
-
}
|
|
299
|
-
.credit-card-box .back {
|
|
300
|
-
-webkit-transform: rotateY(180deg);
|
|
301
|
-
transform: rotateY(180deg);
|
|
302
|
-
}
|
|
303
|
-
.credit-card-box .back .logo {
|
|
304
|
-
top: 185px;
|
|
305
|
-
}
|
|
306
|
-
.credit-card-box .chip {
|
|
307
|
-
position: absolute;
|
|
308
|
-
width: 60px;
|
|
309
|
-
height: 45px;
|
|
310
|
-
top: 20px;
|
|
311
|
-
left: 20px;
|
|
312
|
-
background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);
|
|
313
|
-
background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);
|
|
314
|
-
border-radius: 8px;
|
|
315
|
-
}
|
|
316
|
-
.credit-card-box .chip::before {
|
|
317
|
-
content: '';
|
|
318
|
-
position: absolute;
|
|
319
|
-
top: 0;
|
|
320
|
-
bottom: 0;
|
|
321
|
-
left: 0;
|
|
322
|
-
right: 0;
|
|
323
|
-
margin: auto;
|
|
324
|
-
border: 4px solid rgba(128, 128, 128, 0.1);
|
|
325
|
-
width: 80%;
|
|
326
|
-
height: 70%;
|
|
327
|
-
border-radius: 5px;
|
|
328
|
-
}
|
|
329
|
-
.credit-card-box .strip {
|
|
330
|
-
background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);
|
|
331
|
-
background: linear-gradient(135deg, #404040, #1a1a1a);
|
|
332
|
-
position: absolute;
|
|
333
|
-
width: 100%;
|
|
334
|
-
height: 50px;
|
|
335
|
-
top: 30px;
|
|
336
|
-
left: 0;
|
|
337
|
-
}
|
|
338
|
-
.credit-card-box .number {
|
|
339
|
-
position: absolute;
|
|
340
|
-
margin: 0 auto;
|
|
341
|
-
top: 103px;
|
|
342
|
-
left: 19px;
|
|
343
|
-
font-size: 30px;
|
|
344
|
-
}
|
|
345
|
-
.credit-card-box label {
|
|
346
|
-
font-size: 10px;
|
|
347
|
-
letter-spacing: 1px;
|
|
348
|
-
text-shadow: none;
|
|
349
|
-
text-transform: uppercase;
|
|
350
|
-
font-weight: normal;
|
|
351
|
-
opacity: 0.5;
|
|
352
|
-
display: block;
|
|
353
|
-
margin-bottom: 3px;
|
|
354
|
-
}
|
|
355
|
-
.credit-card-box .card-holder,
|
|
356
|
-
.credit-card-box .card-expiration-date {
|
|
357
|
-
position: absolute;
|
|
358
|
-
margin: 0 auto;
|
|
359
|
-
top: 180px;
|
|
360
|
-
left: 19px;
|
|
361
|
-
font-size: 22px;
|
|
362
|
-
text-transform: capitalize;
|
|
363
|
-
}
|
|
364
|
-
.credit-card-box .card-expiration-date {
|
|
365
|
-
text-align: right;
|
|
366
|
-
left: auto;
|
|
367
|
-
right: 20px;
|
|
368
|
-
}
|
|
369
|
-
.credit-card-box .ccv {
|
|
370
|
-
height: 36px;
|
|
371
|
-
background: #fff;
|
|
372
|
-
width: 91%;
|
|
373
|
-
border-radius: 5px;
|
|
374
|
-
top: 110px;
|
|
375
|
-
left: 0;
|
|
376
|
-
right: 0;
|
|
377
|
-
position: absolute;
|
|
378
|
-
margin: 0 auto;
|
|
379
|
-
color: #000;
|
|
380
|
-
text-align: right;
|
|
381
|
-
padding: 10px;
|
|
382
|
-
}
|
|
383
|
-
.credit-card-box .ccv label {
|
|
384
|
-
margin: -25px 0 14px;
|
|
385
|
-
color: #fff;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
</style>
|
|
1
|
+
<div>
|
|
2
|
+
<div class="checkout">
|
|
3
|
+
<div class="credit-card-box {{toggle ? 'hover':''}}">
|
|
4
|
+
<div class="flip">
|
|
5
|
+
<div [style.width]="width" [style.height]="height" [style.background]="background" class="front">
|
|
6
|
+
<div class="chip"></div>
|
|
7
|
+
<div class="logo">
|
|
8
|
+
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
9
|
+
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;">
|
|
10
|
+
<g>
|
|
11
|
+
<g>
|
|
12
|
+
<path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143
|
|
13
|
+
c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01
|
|
14
|
+
c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z
|
|
15
|
+
M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228
|
|
16
|
+
c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77
|
|
17
|
+
c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092
|
|
18
|
+
l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77
|
|
19
|
+
C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304
|
|
20
|
+
C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161
|
|
21
|
+
c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066
|
|
22
|
+
h-3.888L19.153,16.8z">
|
|
23
|
+
</path>
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="number">{{number}}</div>
|
|
29
|
+
<div class="card-holder">
|
|
30
|
+
<label>Card holder</label>
|
|
31
|
+
<div>{{name}}</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="card-expiration-date">
|
|
34
|
+
<label>Expires</label>
|
|
35
|
+
<div>{{expiration}}</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div [style.width]="width" [style.height]="height" [style.background]="background" class="back">
|
|
39
|
+
<div class="strip"></div>
|
|
40
|
+
<div class="logo">
|
|
41
|
+
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
42
|
+
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;">
|
|
43
|
+
<g>
|
|
44
|
+
<g>
|
|
45
|
+
<path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143
|
|
46
|
+
c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01
|
|
47
|
+
c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z
|
|
48
|
+
M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228
|
|
49
|
+
c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77
|
|
50
|
+
c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092
|
|
51
|
+
l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77
|
|
52
|
+
C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304
|
|
53
|
+
C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161
|
|
54
|
+
c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066
|
|
55
|
+
h-3.888L19.153,16.8z">
|
|
56
|
+
</path>
|
|
57
|
+
</g>
|
|
58
|
+
</g>
|
|
59
|
+
</svg>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
<div class="ccv">
|
|
63
|
+
<label>CCV</label>
|
|
64
|
+
<div>{{ccv}}</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
<style>
|
|
71
|
+
*,
|
|
72
|
+
*::before,
|
|
73
|
+
*::after {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
html,
|
|
78
|
+
body {
|
|
79
|
+
min-height: 100%;
|
|
80
|
+
font-family: 'Open sans', sans-serif;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
body {
|
|
84
|
+
background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);
|
|
85
|
+
background: linear-gradient(50deg, #f3c680, #a1e3e2);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/*--------------------
|
|
89
|
+
Buttons
|
|
90
|
+
--------------------*/
|
|
91
|
+
.btn {
|
|
92
|
+
display: block;
|
|
93
|
+
background: #bded7d;
|
|
94
|
+
color: white;
|
|
95
|
+
text-decoration: none;
|
|
96
|
+
margin: 20px 0;
|
|
97
|
+
padding: 15px 15px;
|
|
98
|
+
border-radius: 5px;
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
.btn::after {
|
|
102
|
+
content: '';
|
|
103
|
+
position: absolute;
|
|
104
|
+
z-index: 1;
|
|
105
|
+
top: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: 100%;
|
|
109
|
+
-webkit-transition: all .2s ease-in-out;
|
|
110
|
+
transition: all .2s ease-in-out;
|
|
111
|
+
box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);
|
|
112
|
+
border-radius: 5px;
|
|
113
|
+
}
|
|
114
|
+
.btn:hover::after {
|
|
115
|
+
background: rgba(0, 0, 0, 0.1);
|
|
116
|
+
box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/*--------------------
|
|
120
|
+
Form
|
|
121
|
+
--------------------*/
|
|
122
|
+
.form fieldset {
|
|
123
|
+
border: none;
|
|
124
|
+
padding: 0;
|
|
125
|
+
padding: 10px 0;
|
|
126
|
+
position: relative;
|
|
127
|
+
clear: both;
|
|
128
|
+
}
|
|
129
|
+
.form fieldset.fieldset-expiration {
|
|
130
|
+
float: left;
|
|
131
|
+
width: 60%;
|
|
132
|
+
}
|
|
133
|
+
.form fieldset.fieldset-expiration .select {
|
|
134
|
+
width: 84px;
|
|
135
|
+
margin-right: 12px;
|
|
136
|
+
float: left;
|
|
137
|
+
}
|
|
138
|
+
.form fieldset.fieldset-ccv {
|
|
139
|
+
clear: none;
|
|
140
|
+
float: right;
|
|
141
|
+
width: 86px;
|
|
142
|
+
}
|
|
143
|
+
.form fieldset label {
|
|
144
|
+
display: block;
|
|
145
|
+
text-transform: uppercase;
|
|
146
|
+
font-size: 11px;
|
|
147
|
+
color: rgba(0, 0, 0, 0.6);
|
|
148
|
+
margin-bottom: 5px;
|
|
149
|
+
font-weight: bold;
|
|
150
|
+
font-family: Inconsolata;
|
|
151
|
+
}
|
|
152
|
+
.form fieldset input,
|
|
153
|
+
.form fieldset .select {
|
|
154
|
+
width: 100%;
|
|
155
|
+
height: 38px;
|
|
156
|
+
color: #333333;
|
|
157
|
+
padding: 10px;
|
|
158
|
+
border-radius: 5px;
|
|
159
|
+
font-size: 15px;
|
|
160
|
+
outline: none !important;
|
|
161
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
162
|
+
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
|
|
163
|
+
}
|
|
164
|
+
.form fieldset input.input-cart-number,
|
|
165
|
+
.form fieldset .select.input-cart-number {
|
|
166
|
+
width: 82px;
|
|
167
|
+
display: inline-block;
|
|
168
|
+
margin-right: 8px;
|
|
169
|
+
}
|
|
170
|
+
.form fieldset input.input-cart-number:last-child,
|
|
171
|
+
.form fieldset .select.input-cart-number:last-child {
|
|
172
|
+
margin-right: 0;
|
|
173
|
+
}
|
|
174
|
+
.form fieldset .select {
|
|
175
|
+
position: relative;
|
|
176
|
+
}
|
|
177
|
+
.form fieldset .select::after {
|
|
178
|
+
content: '';
|
|
179
|
+
border-top: 8px solid #222;
|
|
180
|
+
border-left: 4px solid transparent;
|
|
181
|
+
border-right: 4px solid transparent;
|
|
182
|
+
position: absolute;
|
|
183
|
+
z-index: 2;
|
|
184
|
+
top: 14px;
|
|
185
|
+
right: 10px;
|
|
186
|
+
pointer-events: none;
|
|
187
|
+
}
|
|
188
|
+
.form fieldset .select select {
|
|
189
|
+
-webkit-appearance: none;
|
|
190
|
+
-moz-appearance: none;
|
|
191
|
+
appearance: none;
|
|
192
|
+
position: absolute;
|
|
193
|
+
padding: 0;
|
|
194
|
+
border: none;
|
|
195
|
+
width: 100%;
|
|
196
|
+
outline: none !important;
|
|
197
|
+
top: 6px;
|
|
198
|
+
left: 6px;
|
|
199
|
+
background: none;
|
|
200
|
+
}
|
|
201
|
+
.form fieldset .select select :-moz-focusring {
|
|
202
|
+
color: transparent;
|
|
203
|
+
text-shadow: 0 0 0 #000;
|
|
204
|
+
}
|
|
205
|
+
.form button {
|
|
206
|
+
width: 100%;
|
|
207
|
+
outline: none !important;
|
|
208
|
+
background: -webkit-linear-gradient(top, #49a09b, #3d8291);
|
|
209
|
+
background: linear-gradient(180deg, #49a09b, #3d8291);
|
|
210
|
+
text-transform: uppercase;
|
|
211
|
+
font-weight: bold;
|
|
212
|
+
border: none;
|
|
213
|
+
box-shadow: none;
|
|
214
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
215
|
+
margin-top: 90px;
|
|
216
|
+
}
|
|
217
|
+
.form button .fa {
|
|
218
|
+
margin-right: 6px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/*--------------------
|
|
222
|
+
Checkout
|
|
223
|
+
--------------------*/
|
|
224
|
+
.checkout {
|
|
225
|
+
margin: 20px auto 0px;
|
|
226
|
+
position: relative;
|
|
227
|
+
max-width: 460px;
|
|
228
|
+
border-radius: 15px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/*--------------------
|
|
232
|
+
Credit Card
|
|
233
|
+
--------------------*/
|
|
234
|
+
.credit-card-box {
|
|
235
|
+
-webkit-perspective: 1000;
|
|
236
|
+
perspective: 1000;
|
|
237
|
+
width: 400px;
|
|
238
|
+
height: 280px;
|
|
239
|
+
position: relative;
|
|
240
|
+
left: 50%;
|
|
241
|
+
-webkit-transform: translateX(-50%);
|
|
242
|
+
transform: translateX(-50%);
|
|
243
|
+
}
|
|
244
|
+
.credit-card-box:hover .flip, .credit-card-box.hover .flip {
|
|
245
|
+
-webkit-transform: rotateY(180deg);
|
|
246
|
+
transform: rotateY(180deg);
|
|
247
|
+
}
|
|
248
|
+
.credit-card-box .front,
|
|
249
|
+
.credit-card-box .back {
|
|
250
|
+
width: 400px;
|
|
251
|
+
height: 250px;
|
|
252
|
+
border-radius: 15px;
|
|
253
|
+
-webkit-backface-visibility: hidden;
|
|
254
|
+
backface-visibility: hidden;
|
|
255
|
+
background: linear-gradient(135deg, #bd6772, #53223f);
|
|
256
|
+
position: absolute;
|
|
257
|
+
color: #fff;
|
|
258
|
+
font-family: Inconsolata;
|
|
259
|
+
top: 0;
|
|
260
|
+
left: 0;
|
|
261
|
+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
|
|
262
|
+
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
|
|
263
|
+
}
|
|
264
|
+
.credit-card-box .front::before,
|
|
265
|
+
.credit-card-box .back::before {
|
|
266
|
+
content: '';
|
|
267
|
+
position: absolute;
|
|
268
|
+
width: 100%;
|
|
269
|
+
height: 100%;
|
|
270
|
+
top: 0;
|
|
271
|
+
left: 0;
|
|
272
|
+
background: url("http://cdn.flaticon.com/svg/44/44386.svg") no-repeat center;
|
|
273
|
+
background-size: cover;
|
|
274
|
+
opacity: .05;
|
|
275
|
+
}
|
|
276
|
+
.credit-card-box .flip {
|
|
277
|
+
-webkit-transition: 0.6s;
|
|
278
|
+
transition: 0.6s;
|
|
279
|
+
-webkit-transform-style: preserve-3d;
|
|
280
|
+
transform-style: preserve-3d;
|
|
281
|
+
position: relative;
|
|
282
|
+
}
|
|
283
|
+
.credit-card-box .logo {
|
|
284
|
+
position: absolute;
|
|
285
|
+
top: 9px;
|
|
286
|
+
right: 20px;
|
|
287
|
+
width: 60px;
|
|
288
|
+
}
|
|
289
|
+
.credit-card-box .logo svg {
|
|
290
|
+
width: 100%;
|
|
291
|
+
height: auto;
|
|
292
|
+
fill: #fff;
|
|
293
|
+
}
|
|
294
|
+
.credit-card-box .front {
|
|
295
|
+
z-index: 2;
|
|
296
|
+
-webkit-transform: rotateY(0deg);
|
|
297
|
+
transform: rotateY(0deg);
|
|
298
|
+
}
|
|
299
|
+
.credit-card-box .back {
|
|
300
|
+
-webkit-transform: rotateY(180deg);
|
|
301
|
+
transform: rotateY(180deg);
|
|
302
|
+
}
|
|
303
|
+
.credit-card-box .back .logo {
|
|
304
|
+
top: 185px;
|
|
305
|
+
}
|
|
306
|
+
.credit-card-box .chip {
|
|
307
|
+
position: absolute;
|
|
308
|
+
width: 60px;
|
|
309
|
+
height: 45px;
|
|
310
|
+
top: 20px;
|
|
311
|
+
left: 20px;
|
|
312
|
+
background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);
|
|
313
|
+
background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);
|
|
314
|
+
border-radius: 8px;
|
|
315
|
+
}
|
|
316
|
+
.credit-card-box .chip::before {
|
|
317
|
+
content: '';
|
|
318
|
+
position: absolute;
|
|
319
|
+
top: 0;
|
|
320
|
+
bottom: 0;
|
|
321
|
+
left: 0;
|
|
322
|
+
right: 0;
|
|
323
|
+
margin: auto;
|
|
324
|
+
border: 4px solid rgba(128, 128, 128, 0.1);
|
|
325
|
+
width: 80%;
|
|
326
|
+
height: 70%;
|
|
327
|
+
border-radius: 5px;
|
|
328
|
+
}
|
|
329
|
+
.credit-card-box .strip {
|
|
330
|
+
background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);
|
|
331
|
+
background: linear-gradient(135deg, #404040, #1a1a1a);
|
|
332
|
+
position: absolute;
|
|
333
|
+
width: 100%;
|
|
334
|
+
height: 50px;
|
|
335
|
+
top: 30px;
|
|
336
|
+
left: 0;
|
|
337
|
+
}
|
|
338
|
+
.credit-card-box .number {
|
|
339
|
+
position: absolute;
|
|
340
|
+
margin: 0 auto;
|
|
341
|
+
top: 103px;
|
|
342
|
+
left: 19px;
|
|
343
|
+
font-size: 30px;
|
|
344
|
+
}
|
|
345
|
+
.credit-card-box label {
|
|
346
|
+
font-size: 10px;
|
|
347
|
+
letter-spacing: 1px;
|
|
348
|
+
text-shadow: none;
|
|
349
|
+
text-transform: uppercase;
|
|
350
|
+
font-weight: normal;
|
|
351
|
+
opacity: 0.5;
|
|
352
|
+
display: block;
|
|
353
|
+
margin-bottom: 3px;
|
|
354
|
+
}
|
|
355
|
+
.credit-card-box .card-holder,
|
|
356
|
+
.credit-card-box .card-expiration-date {
|
|
357
|
+
position: absolute;
|
|
358
|
+
margin: 0 auto;
|
|
359
|
+
top: 180px;
|
|
360
|
+
left: 19px;
|
|
361
|
+
font-size: 22px;
|
|
362
|
+
text-transform: capitalize;
|
|
363
|
+
}
|
|
364
|
+
.credit-card-box .card-expiration-date {
|
|
365
|
+
text-align: right;
|
|
366
|
+
left: auto;
|
|
367
|
+
right: 20px;
|
|
368
|
+
}
|
|
369
|
+
.credit-card-box .ccv {
|
|
370
|
+
height: 36px;
|
|
371
|
+
background: #fff;
|
|
372
|
+
width: 91%;
|
|
373
|
+
border-radius: 5px;
|
|
374
|
+
top: 110px;
|
|
375
|
+
left: 0;
|
|
376
|
+
right: 0;
|
|
377
|
+
position: absolute;
|
|
378
|
+
margin: 0 auto;
|
|
379
|
+
color: #000;
|
|
380
|
+
text-align: right;
|
|
381
|
+
padding: 10px;
|
|
382
|
+
}
|
|
383
|
+
.credit-card-box .ccv label {
|
|
384
|
+
margin: -25px 0 14px;
|
|
385
|
+
color: #fff;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
</style>
|
|
389
389
|
</div>
|