-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (86 loc) · 2.91 KB
/
index.html
File metadata and controls
110 lines (86 loc) · 2.91 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>GeekInk Certificate Generator</title>
<!-- Tailwind CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- html2canvas -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
geekink: "#15803d"
}
}
}
}
</script>
</head>
<body class="bg-gray-100 p-6 min-h-screen flex flex-col items-center">
<!-- ======================
INPUT FORM
======================= -->
<div class="bg-white shadow-xl p-6 rounded-xl w-full max-w-xl space-y-4">
<h1 class="text-2xl font-bold text-geekink text-center">
GeekInk Certificate Generator
</h1>
<input id="studentName" type="text" placeholder="Student Name"
class="w-full border p-3 rounded-lg"/>
<input id="courseName" type="text" placeholder="Course Name"
class="w-full border p-3 rounded-lg"/>
<input id="date" type="date"
class="w-full border p-3 rounded-lg"/>
<button id="generateBtn"
class="w-full bg-geekink text-white py-3 rounded-lg font-bold hover:opacity-90">
Generate Certificate
</button>
</div>
<!-- ======================
CERTIFICATE PREVIEW
======================= -->
<div id="certificate"
class="hidden mt-8 bg-white w-[900px] h-[600px] shadow-2xl border-8 border-geekink relative p-10 text-center">
<!-- Logo -->
<h2 class="text-3xl font-bold text-geekink">
GeekInk Innovations Ltd.
</h2>
<p class="mt-2 text-gray-500">Certificate of Completion</p>
<p class="mt-12 text-lg">This is to certify that</p>
<h1 id="previewName"
class="text-4xl font-bold text-gray-800 mt-4">
Student Name
</h1>
<p class="mt-6 text-lg">
has successfully completed the course
</p>
<h2 id="previewCourse"
class="text-2xl font-semibold text-geekink mt-2">
Course Name
</h2>
<p id="previewDate"
class="mt-8 text-gray-600">
Date
</p>
<!-- Signature -->
<div class="absolute bottom-10 left-10 text-left">
<div class="border-t w-40"></div>
<p class="text-sm">Instructor</p>
<p class="font-semibold">Adamu Muhammad Muhammad</p>
<p class="text-xs text-gray-500">GeekInk Mentor</p>
</div>
<!-- Stamp -->
<div class="absolute bottom-10 right-10 border-4 border-geekink rounded-full p-4 text-geekink font-bold rotate-12">
VERIFIED
</div>
</div>
<button id="downloadBtn"
class="hidden mt-4 bg-geekink text-white px-6 py-3 rounded-lg font-bold">
Download Certificate
</button>
<script src="script.js"></script>
</body>
</html>