-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
318 lines (288 loc) · 11 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
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
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="description"
content="Certivita helps you to generate personalized downloadable Certificates for free, within seconds!!"
/>
<meta
name="keywords"
content="certivita, certivita netlify, s4shibam certivita, certificate, certificate generator, free certificate generator, certificate maker, free certificate, free certificate maker, personalized certificate, certificate generator pdf format"
/>
<meta
property="og:description"
content="Certivita helps you to generate personalized downloadable Certificates for free, within seconds!!"
/>
<meta
property="og:image"
content="https://s4shibam-certivita.netlify.app/logo.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="google-site-verification"
content="9t_gm2dnEFol0PLWStz1lljLRkTTUvAcSNj1P72MYkI"
/>
<title>Certivita - Certificate Generator</title>
<link rel="icon" type="image/x-icon" href="./logo.png" />
</head>
<!-- Body Starts -->
<body
class="m-0 p-0 text-black font-poppins min-h-screen grid grid-rows-[50px_1fr_30px] sm:grid-rows-[70px_1fr_45px] place-items-center"
>
<!-- Navigation Bar Starts -->
<nav
class="px-5 sm:px-10 flex items-center justify-center gap-2 bg-black/20 w-full h-full"
>
<!-- Logo Starts -->
<img
src="./logo.png"
alt="Logo Image"
class="w-8 sm:w-12 cursor-pointer drop-shadow-md"
id="logo"
/>
<!-- Logo Ends -->
<!-- Site Name Starts -->
<p
class="text-2xl lg:text-5xl font-extrabold tracking-wider text-[#931A1C] drop-shadow-lg select-none"
>
CERTIVITA
</p>
<!-- Site Name Ends -->
<!-- Developer's Social Site Link Ends -->
</nav>
<!-- Navigation Bar Ends -->
<!-- Main Starts -->
<main
class="w-full h-full flex justify-center items-center flex-col xl:flex-row"
>
<!-- Background Animation Starts -->
<div class="bg"></div>
<div class="bg bg2"></div>
<div class="bg bg3"></div>
<!-- Background Animation Ends -->
<!-- Form Container Starts -->
<div
class="form-container m-4 w-11/12 xl:w-4/12 max-w-4xl flex justify-center items-center"
>
<!-- Certificate Form Starts -->
<div
class="form mt-10 xl:m-4 px-6 py-5 w-full xl:w-auto flex flex-col justify-center bg-white opacity-90 backdrop-blur-xl shadow-xl rounded-xl drop-shadow-xl"
id="form"
>
<!-- Heading Starts -->
<div
class="heading block text-center text-xl sm:text-4xl font-extrabold text-blue-900"
>
Personalize Your
<span class="text-amber-600"> Certificate </span>
</div>
<!-- Heading Ends -->
<!-- Certificate Genre Starts -->
<div class="form-control">
<label for="genre" class="form-labels"> Certificate Genre </label>
<input
class="form-inputs"
type="text"
id="genre"
placeholder="Certificate Of Achievement"
autocomplete="off"
required
/>
</div>
<!-- Certificate Genre Ends -->
<!-- Recipient Name Starts -->
<div class="form-control">
<label for="recipient" class="form-labels"> Recipient Name</label>
<input
class="form-inputs"
type="text"
id="recipient"
placeholder="Shibam Saha"
autocomplete="off"
required
/>
</div>
<!-- Recipient Name Ends -->
<!-- Certificate Reason Starts -->
<div class="form-control">
<label for="reason" class="form-labels"> Certificate Reason </label>
<textarea
class="form-inputs resize-none"
type="text"
id="reason"
placeholder="For completing XYZ Course under ABC College"
autocomplete="off"
required
></textarea>
</div>
<!-- Certificate Reason Ends -->
<!-- Signature Starts -->
<div class="form-control">
<label for="sign" class="form-labels"> Signature </label>
<input
class="form-inputs"
type="text"
id="sign"
placeholder="Team Certivita"
autocomplete="off"
required
/>
</div>
<!-- Signature Ends -->
<!-- Date of Issue Starts -->
<div class="form-control">
<label for="date" class="form-labels"> Date of Issue </label>
<input
class="form-inputs"
type="number"
id="date"
placeholder="DDMMYYYY"
autocomplete="off"
required
/>
</div>
<!-- Date of Issue Ends -->
<!-- Generate Certificate Button Starts -->
<button
data-tooltip-target="tooltip-hover-generate"
data-tooltip-trigger="hover"
type="button"
class="action-btn"
id="generate"
>
Generate Certificate
</button>
<div
id="tooltip-hover-generate"
role="tooltip"
class="inline-block absolute invisible z-20 py-2 px-3 text-sm font-medium text-white bg-black rounded-lg shadow-sm opacity-0 transition-opacity delay-400 tooltip"
>
Get preview of the Certificate
<div class="tooltip-arrow" data-popper-arrow></div>
</div>
<!-- Generate Certificate Button Ends -->
</div>
<!-- Certificate Form Ends -->
</div>
<!-- Form Container Ends -->
<!-- Preview Image Container Starts -->
<div
class="image-container m-4 w-11/12 xl:w-8/12 max-w-[54rem] flex justify-center items-center drop-shadow-xl"
>
<!-- Specimen/Preview Certificate Display Starts -->
<div
class="image mt-6 xl:m-4 px-6 py-5 w-full xl:w-auto flex flex-col justify-center items-center bg-white opacity-90 backdrop-blur-xl shadow-xl rounded-xl"
>
<!-- Heading Starts -->
<div
class="heading block text-center text-xl sm:text-4xl font-extrabold text-blue-900"
>
Certificate
<span class="text-amber-600"> Preview! </span>
</div>
<!-- Heading Ends -->
<!-- Image Preview Starts -->
<img
src="./Specimen_Certificate.png"
class="mt-4 w-full xl:w-[92%] border-2 rounded-lg border-black opacity-100 z-10"
id="preview"
/>
<!-- Image Preview Ends -->
<!-- Loading Animation Starts -->
<div
role="status"
class="absolute justify-center items-center z-50 w-full hidden"
id="loading-animation"
>
<svg
aria-hidden="true"
class="mb-9 sm:mb-8 w-20 h-20 xl:w-32 xl:h-32 text-gray-200 animate-spin dark:text-gray-600 fill-amber-600"
viewBox="0 0 100 101"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
fill="currentColor"
></path>
<path
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
fill="currentFill"
></path>
</svg>
<span class="sr-only">Loading...</span>
</div>
<!-- Loading Animation Ends -->
<!-- PDF To PNG Helper -->
<canvas class="hidden" id="hiddenCanvas"></canvas>
<!-- Download Certificate Button Starts -->
<button
data-tooltip-target="tooltip-hover-download"
data-tooltip-trigger="hover"
type="button"
class="action-btn w-full xl:w-[92%] cursor-not-allowed disabled:opacity-50"
id="download"
disabled
>
Download Certificate
</button>
<div
id="tooltip-hover-download"
role="tooltip"
class="inline-block absolute invisible z-20 py-2 px-3 text-sm font-medium text-white bg-black rounded-lg shadow-sm opacity-0 transition-opacity delay-400 tooltip"
>
Download Certificate in PDF Format
<div class="tooltip-arrow" data-popper-arrow></div>
</div>
<!-- Download Certificate Button Ends -->
</div>
<!-- Specimen Certificate/Preview Display Ends -->
</div>
<!-- Preview Image Container Ends -->
</main>
<!-- Footer Starts -->
<footer
class="flex flex-col mt-auto mb-2 items-center justify-center text-xs xl:text-sm text-black"
>
<div>
For Code Visit -
<a
href="https://github.com/s4shibam/certivita"
class="hover:underline"
target="_blank"
>GitHub</a
>
</div>
<div>
Developed with ❤️ by
<a
href="https://shibamsaha.dev/"
class="hover:underline"
target="_blank"
>Shibam Saha</a
>
</div>
</footer>
<!-- Footer Ends -->
<!-- Main Ends -->
<!-- Script Starts -->
<script type="module" src="./main.js"></script>
<!-- Pdf Lib JS -->
<!-- <script src="https://unpkg.com/pdf-lib/dist/pdf-lib.min.js"></script> -->
<!-- <script src="https://unpkg.com/@pdf-lib/fontkit@0.0.4"></script> -->
<!-- Pdf JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.228/pdf.min.js"></script>
<!-- FileSaver JS -->
<script type="module" src="./FileSaver.js"></script>
<!-- Flowbite -->
<script
type="module"
src="https://unpkg.com/flowbite@1.5.3/dist/flowbite.js"
></script>
<!-- Script Ends -->
</body>
<!-- Body Ends -->
</html>
<!-- Developed with love by Shibam Saha -->