-
Notifications
You must be signed in to change notification settings - Fork 0
/
pay-with-seeds.php
448 lines (371 loc) · 25.7 KB
/
pay-with-seeds.php
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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, shrink-to-fit=no">
<!-- Meta Tags Generic-->
<title>SEEDS :: Pay With Seeds widget</title>
<meta name="description" content="Join SEEDS widget">
<meta name="og:image" content="https://joinseeds.earth/img/og-image.jpg">
<link rel="icon" type="image/png" href="img/favicon.png" />
<!-- Non-Essential, But Recommended -->
<meta property="og:site_name" content="SEEDS :: Pay With Seeds widget">
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#E9EDD9">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#E9EDD9">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#E9EDD9">
<!-- Facebook -->
<!-- Twitter -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-L2XGY9YP0R"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-L2XGY9YP0R');
</script>
<!-- CSS -->
<link rel="stylesheet" href="css/loader-style.css">
<link rel="stylesheet" href="css/general.css">
<link rel="stylesheet" href="css/menu.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/resp.css">
<!-- join widget CSS -->
<link rel="stylesheet" href="css/buy-seeds.css">
<link rel="stylesheet" href="css/widgets/pay-with-seeds.css?version=1.5">
<!-- Javascript / jQuery libraries -->
<script src="js/jquery-3-10-1-min.js" type="text/javascript"></script>
<script src="js/apparallax-generic.js" type="text/javascript"></script>
<script src="js/lax.min.js" type="text/javascript"></script>
<script src="js/owl.carousel.js" type="text/javascript"></script>
<script src="js/owl.navigation.js" type="text/javascript"></script>
<!--luigi's verification account -->
<script src="js/widgets/verification-account.js?version=1.5" type="text/javascript"></script>
<!--luigi's global custom animations-->
<script src="js/animations-buy.js" type="text/javascript"></script>
<!--luigi's custom top scrollbar-->
<script src="js/custom-scrollbar.js" type="text/javascript"></script>
<!--luigi's currency popolage-->
<script src="js/widgets/currency-popolate.js" type="text/javascript"></script>
<!-- Work Sans Open Source Font -->
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&display=swap" rel="stylesheet">
</head>
<body class="join-seeds">
<div id="fake-alert-box" class="hide">
<div id="close-fake">
<img src="img/x-close.svg">
</div>
<p>Please, fill all the fields in order to generate your widget.</p>
</div>
<div class="pages-logo-resp">
<a href="index.php">
<img src="img/logo-full-color.svg" alt="seeds"/>
</a>
</div>
<?php
include 'incl/menu.php';
?>
<!--page loader very basic(not activtated, it's just a place holder here) Maybe you can use it for the transaction loading-->
<div class="obscurer">
<div class="vertical-centered-box">
<div class="contentt">
<div class="loader-circle"></div>
<div class="loader-line-mask">
<div class="loader-line"></div>
</div>
<img src="img/logo-graph.svg" height="60" width="60" />
</div>
</div>
</div>
<!--fake progress bar top screen-->
<div class="progress-container">
<div class="progress-bar" id="bar"></div>
</div>
<header class="h-home">
<div class="centered">
<div class="logo close">
<a href="https://joinseeds.earth">
<img src="img/logo-full-color.svg" alt="seeds"/>
</a>
</div>
</div>
</header>
<main>
<section class="buy-header parallax" data-image-src="img/buy-header.jpg">
<div class="centered">
<div class="buy-intro close">
<h1>Pay With <span class="spring">Seeds</span></h1>
<p class="buy-claim widget">WIDGET</p>
<p>The more Seeds circulate, the more regeneration we can all do together. This widget allows you to accept Seeds currency directly on your website. This lets your community say YES to a regenerative economic system.</p>
<img class="arrow-down" src="img/arrow-green-down.svg"/>
</div>
</div>
</section>
<section class="multistep close">
<div class="centered">
<div id="join-widget">
<div class="columns mt-20" >
<div class="column is-8 is-offset-2">
<!-- Wrapper -->
<div class="steps-wrapper">
<!-- Steps Indicators -->
<div class="steps">
<!-- Steps content wrapper -->
<div class="steps-content">
<!-- STEP CONTENT 1 -->
<div data-step-id="1" id="step-1" class="step-content has-text-centered is-active animated preFadeInUp fadeInUp">
<div class="centered-title">
<h2>Your <span class="spring">Configuration</span></h2>
</div>
<div class="text-content">
<div class=" has-text-centered">
<p>Start verifying your organisation account name in the form below.<br> After the verification, simply fill out the form and choose the colour theme that works best with your website and generate the code! <br><br>Now, simply paste the widget code onto your website wherever you want the "Pay with Seeds" button to appear.</p>
</div>
</div>
<form id="pay-with-seeds-form">
<!-- organization id -->
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="org_name" class="label">Organisation name</label>
<input id="org-id" class="input is-large" name="org_name" type="text" placeholder="Write here..." value="" data-validate="require">
<p class="helper">Enter the 12-character SEEDS account name you have created for your organisation.</p>
<div class="verification-icons">
<img src="img/nope.svg" class="nope"/>
<img src="img/yeah.svg" class="yeah"/>
</div>
<div id="alert-box"></div>
</div>
<p id="verify-org-id">Verify</p>
</div>
</div>
</div>
</div>
<div class="wrap-shower">
<div id="scroll-after-valid" class="two-line-field toggles"><!--from here -->
<!-- button key -->
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="campaign_name" class="label">Amount (in your local currency)</label>
<input id="input-amount" class="input is-large" name="amount" placeholder="enter here" type="number" min="0" value="" data-validate="require">
<p class="helper">Please indicate the amount of your product in your local currency.</p>
</div>
</div>
</div>
</div>
</div>
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="campaign_name" class="label"> Local Currency Symbol</label>
<select id="currency-dropdown" name="amount_currency">
</select>
<p class="helper">Please add the symbol or your local currency. Example $, €.</p>
</div>
</div>
</div>
</div>
</div>
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="campaign_name" class="label"> Amount in Seeds</label>
<input id="input-local" class="input is-large" name="amount_in_seeds" placeholder="enter here" type="number" min="0" value="" data-validate="require">
<p class="helper">Please indicate the amount of your product in Seeds. Latest conversion with USD can be found <a target="_blank" href="https://www.telos.bloks.io/account/tlosto.seeds?loadContract=true&tab=Tables&account=tlosto.seeds&scope=tlosto.seeds&limit=100&table=price">here</a>. </p>
</div>
</div>
</div>
</div>
</div>
<!-- email -->
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="email" class="label">Notification Email Address</label>
<input id="input-email" class="input is-large" name="email" type="text" placeholder="enter here" value="" data-validate="require">
<p class="helper">Please indicate the email address for your organisation to be notified when a purchase is made using the "Pay with Seeds" widget on your website.</p>
</div>
</div>
</div>
</div>
</div>
<!-- email -->
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="product_image" class="label">Product image URL</label>
<input id="input-image" class="input is-large" name="product_image" type="text" placeholder="enter here" value="" data-validate="require">
<p class="helper">Please add the URL of the image you want to display for this product.</p>
</div>
</div>
</div>
</div>
</div>
<!-- email -->
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="product_name" class="label">Product Name</label>
<input id="input-product-name" class="input is-large" name="product_name" type="text" placeholder="enter here" value="" data-validate="require">
<p class="helper">Please add the public-facing name you want to display for this product.</p>
</div>
</div>
</div>
</div>
</div>
<!-- email -->
<div class="actual-field hundred">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="product_description" class="label">Product Short Description</label>
<input id="input-product-desc" class="input is-large" name="product_description" type="text" placeholder="enter here" value="" data-validate="require" maxlength="80">
<p class="helper">Please add a <strong>short</strong> (max 80 characters) description of your product</p>
</div>
</div>
</div>
</div>
</div>
<!-- callback
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="callback" class="label">Callback</label>
<input id="input-callback" class="input is-large" name="callback" type="text" placeholder="Lorem Ipsum" value="" data-validate="require">
</div>
</div>
</div>
</div>
</div> -->
</div><!--to here-->
<!-- button key -->
<div class="actual-field toggles">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label for="button_theme" class="label">Button Style</label>
<div class="radios">
<div class="radios-button-style">
<button type="button" class="pay-with-seeds-white"></button>
<input class="input is-large"
name="button_theme"
type="radio"
value="white"
checked
data-validate="require">
</div>
<div class="radios-button-style">
<button type="button" class="pay-with-seeds-light"></button>
<input class="input is-large"
name="button_theme"
type="radio"
value="light"
data-validate="require">
</div>
<div class="radios-button-style">
<button type="button" class="pay-with-seeds-dark"></button>
<input class="input is-large"
name="button_theme"
type="radio"
value="dark"
data-validate="require">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- button key -->
<div class="actual-field toggles">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label class="label" for="multistep_theme">Multistep Style</label>
<div class="radios">
<div class="radios-button-style">
<div class="pay-with-seeds-theme-dark"></div>
<input class="input is-large"
name="multistep_theme"
value="dark"
checked
type="radio" data-validate="require">
</div>
<div class="radios-button-style">
<div class="pay-with-seeds-theme-light"></div>
<input class="input is-large"
name="multistep_theme"
value="light"
type="radio" data-validate="require">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="actual-field sand-back">
<p id="real-widget-button-pay">Generate Widget</p>
</div>
<div class="wrap-real-widget">
<!-- button key -->
<div class="actual-field">
<div class="field field-container">
<div class="field-body">
<div class="field">
<div class="control required">
<label class="label">Your widget</label>
<textarea id="code-output" class="input is-large"
name="code"
rows="10"
placeholder="Lorem Ipsum" data-validate="require"></textarea>
</div>
</div>
</div>
</div>
<div class="flexier">
<p id="real-widget-clear">Edit Widget</p> <p id="real-widget-copy">Copy Code</p>
</div>
</div>
</div> <!-- <div class="wrap-real-widget"> -->
</div> <!--<div class="wrap-shower">-->
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- #multistep-->
</div> <!-- centered-->
</section>
</main>
<?php
include 'incl/footer.php';
?>
<script src="js/widgets/config-pay-with-seeds.js" type="text/javascript"></script>
</body>
</html>