-
Notifications
You must be signed in to change notification settings - Fork 3
/
maker.html
546 lines (523 loc) · 22.4 KB
/
maker.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
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
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
<!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" />
<meta name="title" content="Visitor Badge - Generator, Maker, Badge" />
<meta
name="description"
content="Visitor Badge for your Web or Github repository."
/>
<meta
name="keywords"
content="visitor badge,visitor counter,badge,shields io,visitor badge feri irawan,visitor,badges,feri,irawan,github,badge views,views,counter"
/>
<meta name="robots" content="index,follow" />
<meta
name="twitter:image:src"
content="https://opengraph.githubassets.com/9a124e20c9bf57a6aaea96ab75bb6c1553940d8179529932b221682abdb9c1d6/feri-irawan/visitor-badge"
/>
<meta name="twitter:site" content="Visitor Badge" />
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="Visitor Badge - Generator, Maker, Badge"
/>
<meta
name="twitter:description"
content="Visitor Badge for your Web or Github repository."
/>
<meta name="og:title" content="Visitor Badge - Generator, Maker, Badge" />
<meta
name="og:description"
content="Visitor Badge for your Web or Github repository."
/>
<meta
name="og:image"
content="https://opengraph.githubassets.com/9a124e20c9bf57a6aaea96ab75bb6c1553940d8179529932b221682abdb9c1d6/feri-irawan/visitor-badge"
/>
<meta
property="og:image:alt"
content="Visitor Badge for your Web or Github repository."
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="600" />
<meta property="og:site_name" content="Visitor Badge" />
<meta property="og:type" content="object" />
<meta
property="og:title"
content="Visitor Badge - Generator, Maker, Badge"
/>
<meta name="theme-color" content="#10b981" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
rel="apple-touch-icon"
href="https://cdn.glitch.com/b57e4cca-845c-45d8-badd-fffc3393d174%2Flogo.png?v=1630917610030"
/>
<link
rel="shortcut icon"
type="image/png"
href="https://cdn.glitch.com/b57e4cca-845c-45d8-badd-fffc3393d174%2Flogo.png?v=1630917610030"
/>
<link rel="stylesheet" href="/src/css/main.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/styles/atom-one-light.min.css"
integrity="sha256-WT7iR11CrJrnAaF3o1OCW9ZhtiSfoa1LrSMlQIJenoM="
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/highlight.min.js"
integrity="sha256-mfS2sXKEV8eehy39UH7+7BwaoUaIe2TuLO2DXS+c2mI="
crossorigin="anonymous"
></script>
<script>
hljs.highlightAll();
</script>
<title>Visitor Badge - Generator, Maker, Badge</title>
<style>
* {
transition-duration: 0.3s;
scroll-behavior: smooth;
}
.jscolor-picker-shadow {
--tw-shadow: 0 1px 1rem 0 rgba(0, 0, 0, 0.104);
box-shadow: var(--tw-shadow) !important;
}
.jscolor-picker-border,
.jscolor-picker-border > .jscolor-picker > div {
border: none !important;
}
.dark .jscolor-picker-border {
--tw-bg-opacity: 1;
background-color: rgba(107, 114, 128, var(--tw-bg-opacity)) !important;
}
::-webkit-scrollbar {
display: none;
}
.particles-js-canvas-el {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 0;
}
</style>
</head>
<body class="font-sans dark:bg-gray-700">
<section
id="bg-particles"
class="relative bg-white rounded-b-lg lg:rounded-b-2xl container max-w-5xl mx-auto p-4 h-screen min-h-full dark:bg-gray-800"
>
<div class="relative z-10 h-full">
<div class="flex justify-between px-5 pt-5">
<a class="toggle-dark mr-5" href="#" onclick="darkMode()">
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
fill="currentColor"
class="bi bi-moon-fill"
viewBox="0 0 16 16"
>
<path
d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"
/>
</svg>
</a>
<a
class="dark:text-white"
href="https://github.com/feri-irawan/visitor-badge"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
fill="currentColor"
class="bi bi-github fill-current"
viewBox="0 0 16 16"
>
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
/>
</svg>
</a>
</div>
<div class="flex justify-center items-center h-full -mt-10">
<div class="text-center dark:text-white">
<h1 class="text-4xl font-bold mb-4">Visitor Badge</h1>
<p>Hitung Pengunjung Web atau Repository Github dengan mudah</p>
<div class="flex justify-center mt-4">
<img
src="https://visitor-badge.feriirawann.repl.co?username=feri-irawan&repo=visitor-badge&color=%2310b981&contentType=svg"
alt="Visitor Badge"
/>
</div>
<div class="flex justify-center mt-4">
<a
class="inline-flex outline-none justify-center py-2 px-4 mr-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-500 hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"
href="https://saweria.co/feriirawans"
target="_blank"
>Donasi</a
>
<a
class="inline-flex outline-none justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-500 hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"
href="#get-started"
>Memulai</a
>
</div>
</div>
</div>
</div>
</section>
<section
id="get-started"
class="container max-w-5xl bg-green-100 dark:bg-gray-700 mx-auto py-10 px-4 min-h-full"
>
<div class="max-w-max mx-auto dark:text-white">
<h2 class="text-3xl mb-4 font-bold text-center">Memulai</h2>
Buat badgemu sendiri dengan mudah dan cepat menggunakan pembuat berikut.
</div>
<div class="mt-7 md:grid md:grid-cols-6 md:gap-4">
<form
id="badge-generator"
class="col-span-3 p-4 bg-white dark:bg-gray-800 dark:text-white rounded-lg lg:rounded-2xl"
>
<h2 class="font-semibold text-xl text-center mb-4">Pembuat</h2>
<div class="grid grid-cols-6 gap-3">
<div class="col-span-3">
<label
for="username"
class="block text-sm font-medium text-gray-700 dark:text-gray-200"
>Nama Pengguna</label
>
<input
type="text"
name="username"
id="username"
autocomplete="off"
class="mt-1 focus:ring-green-500 focus:border-green-500 dark:bg-gray-700 block w-full shadow-sm sm:text-sm border-green-300 hover:shadow-lg duration-300 outline-none rounded-md"
/>
</div>
<div class="col-span-3">
<label
for="repository"
class="block text-sm font-medium text-gray-700 dark:text-gray-200"
>Repositori</label
>
<input
type="text"
name="repository"
id="repository"
autocomplete="off"
class="mt-1 focus:ring-green-500 focus:border-green-500 dark:bg-gray-700 block w-full shadow-sm sm:text-sm border-green-300 hover:shadow-lg duration-300 outline-none rounded-md"
/>
</div>
<div
class="col-span-6 mt-5 text-gray-700 dark:text-gray-200 text-center border-b pb-1 border-gray-600"
>
Input Opsional
</div>
<div class="col-span-3">
<label
for="label"
class="block text-sm font-medium text-gray-700 dark:text-gray-200"
>Label</label
>
<input
type="text"
name="label"
id="label"
autocomplete="off"
value="VISITOR"
class="mt-1 focus:ring-green-500 focus:border-green-500 dark:bg-gray-700 block w-full shadow-sm sm:text-sm border-green-300 hover:shadow-lg duration-300 outline-none rounded-md"
/>
</div>
<div class="col-span-3">
<label
for="label"
class="block text-sm font-medium text-gray-700 dark:text-gray-200"
>Warna</label
>
<input
type="text"
value="#457BFF"
data-jscolor="{}"
name="color"
id="color"
autocomplete="off"
class="mt-1 focus:ring-green-500 focus:border-green-500 dark:bg-gray-700 block w-full shadow-sm sm:text-sm border-green-300 hover:shadow-lg duration-300 outline-none rounded-md"
/>
</div>
</div>
<div
class="my-3 text-sm text-gray-700 dark:text-gray-200 font-medium"
>
Tema
</div>
<div class="grid grid-cols-6 gap-3">
<div class="col-span-3 flex items-center">
<input
id="for-the-badge-badge"
value="for-the-badge"
name="style"
type="radio"
class="focus:ring-green-500 h-4 w-4 cursor-pointer text-green-500 border-green-300 outline-none duration-300"
/>
<label
for="for-the-badge-badge"
class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-200"
><img
src="https://img.shields.io/static/v1?label=VISITOR&message=0&color=blue&style=for-the-badge"
alt="For The Badge Style"
/></label>
</div>
<div class="col-span-3 flex items-center">
<input
id="plastic-badge"
value="plastic"
name="style"
type="radio"
class="focus:ring-green-500 h-4 w-4 cursor-pointer text-green-500 border-green-300 outline-none duration-300"
/>
<label
for="plastic-badge"
class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-200"
><img
src="https://img.shields.io/static/v1?label=VISITOR&message=0&color=blue&style=plastic"
alt="Plastic Style"
/></label>
</div>
<div class="col-span-3 flex items-center">
<input
id="flat-square-badge"
value="flat-square"
name="style"
type="radio"
class="focus:ring-green-500 h-4 w-4 cursor-pointer text-green-500 border-green-300 outline-none duration-300"
/>
<label
for="flat-square-badge"
class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-200"
><img
src="https://img.shields.io/static/v1?label=VISITOR&message=0&color=blue&style=flat-square"
alt="Flat Square Style"
/></label>
</div>
<div class="col-span-3 flex items-center">
<input
id="social-badge"
value="social"
name="style"
type="radio"
class="focus:ring-green-500 h-4 w-4 cursor-pointer text-green-500 border-green-300 outline-none duration-300"
/>
<label
for="social-badge"
class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-200"
><img
src="https://img.shields.io/static/v1?label=VISITOR&message=0&color=blue&style=social"
alt="Social Style"
/></label>
</div>
<div class="col-span-3 flex items-center">
<input
id="flat-badge"
value="flat"
name="style"
type="radio"
class="focus:ring-green-500 h-4 w-4 cursor-pointer text-green-500 border-green-300 outline-none duration-300"
/>
<label
for="flat-badge"
class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-200"
><img
src="https://img.shields.io/static/v1?label=VISITOR&message=0&color=blue&style=flat"
alt="Flat Style"
/></label>
</div>
<div class="col-span-6">
<label
for="token"
class="block font-medium text-gray-700 dark:text-gray-200"
>Token Akses Pribadi</label
>
<p class="text-sm text-gray-700 dark:text-gray-200 mb-4">
Jika Anda ingin angka badge dimulai dengan angka yang sama yang
ada di Views repository, silahkan tempelkan akses token pribadi
Anda yang telah dibuat di Github. Lihat caranya
<a
class="text-green-500"
target="_blank"
href="https://github.com/feri-irawan/visitor-badge#menyamakan-angka-visitor-sesuai-dengan-views-repository"
>disini</a
>
</p>
<input
type="text"
name="token"
id="token"
autocomplete="off"
class="mt-1 focus:ring-green-500 focus:border-green-500 dark:bg-gray-700 block w-full shadow-sm sm:text-sm border-green-300 hover:shadow-lg duration-300 outline-none rounded-md"
/>
<p class="text-sm mt-4">
<i
>Jika token yang Anda masukan tidak valid, maka angka badge
akan di mulai dari nol</i
>. Tapi jangan khawatir, jika angka badge Anda sebelumnya sudah
banyak maka angkanya akan tetap seperti sebelumnya dan tetap
bertambah
</p>
</div>
</div>
<div class="flex justify-end mt-4">
<button
type="reset"
class="inline-flex justify-center py-2 px-4 mr-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-gray-700 bg-gray-200 dark:bg-gray-500 dark:text-white hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-300"
>
Reset
</button>
<button
type="submit"
class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-500 hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"
>
Buat
</button>
</div>
</form>
<div
class="col-span-3 bg-white dark:bg-gray-800 dark:text-gray-200 p-4 mt-4 sm:m-0 rounded-lg lg:rounded-2xl"
>
<h2 class="font-semibold text-xl text-center mb-4">Hasil</h2>
<div id="badge-result">
<img
id="badge"
class="mx-auto"
src="https://img.shields.io/static/v1?label=VISITOR&message=0&color=blue&style=for-the-badge"
alt="Visitor Badge"
/>
<div class="mx-auto mt-4">
<label
for="url-badge"
class="text-sm text-gray-700 dark:text-gray-200"
>URL badge anda</label
>
<div class="flex">
<input
type="text"
name="url-badge"
id="url-badge"
autocomplete="off"
class="focus:ring-green-500 dark:bg-gray-700 rounded-r-none focus:border-green-500 block w-full shadow-sm sm:text-sm border-green-300 hover:shadow-lg duration-300 outline-none rounded-md"
/>
<button
type="button"
data-clipboard-target="#url-badge"
class="btn-copy inline-flex justify-center rounded-l-none py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-500 hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-clipboard"
viewBox="0 0 16 16"
>
<path
d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"
/>
<path
d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"
/>
</svg>
</button>
</div>
<div class="text-sm mt-3">HTML</div>
<pre><code id="html-code" class="language-html dark:bg-gray-700 dark:text-gray-200 rounded-md"><img alt="Visitor Badge" src="https://visitor-badge.feriirawann.repl.co" ></code></pre>
<div class="text-sm mt-3">Markdown</div>
<pre><code id="md-code" class="language-md dark:bg-gray-700 dark:text-gray-200 rounded-md">![Visitor Badge](https://visitor-badge.feriirawann.repl.co)</code></pre>
</div>
</div>
</div>
</div>
</section>
<footer
id="footer-particles"
class="relative rounded-t-lg lg:rounded-t-2xl container max-w-5xl mx-auto text-gray-600 dark:bg-gray-800 dark:text-white body-font"
>
<div
class="z-10 relative container max-w-5xl px-5 py-8 flex items-center sm:flex-row flex-col"
>
<a
class="flex title-font font-medium items-center md:justify-start justify-center text-gray-900 dark:text-gray-200"
>
<span class="ml-3 text-xl">Visitor Badge</span>
</a>
<p
class="text-sm text-gray-500 dark:text-white sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-200 sm:py-2 sm:mt-0 mt-4"
>
© 2021 Dibuat dengan
<svg
class="inline-block"
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="rgb(255, 0, 89)"
viewBox="0 0 16 16"
>
<path
fill-rule="evenodd"
d="M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z"
/>
</svg>
<a
href="https://feri-irawan.netlify.app"
class="text-gray-600 dark:text-white ml-1"
rel="noopener noreferrer"
target="_blank"
>Feri Irawan</a
>
</p>
<span
class="inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start"
>
<a
class="text-gray-500 dark:text-white"
href="https://github.com/feri-irawan/visitor-badge"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="25"
height="25"
fill="currentColor"
class="bi bi-github"
viewBox="0 0 16 16"
>
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
/>
</svg>
</a>
</span>
</div>
</footer>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jscolor/2.4.6/jscolor.min.js"
integrity="sha512-+MYpQFxmnAHvrA8opNlNDNwC8qPiZu9i3Lb86n/H9EYugz2FB6MBRQrKpBrkyL/qQgBjWN2ctQbD9XoaVh+TUg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
<script src="/src/js/main.js"></script>
</body>
</html>