-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
152 lines (134 loc) · 7.92 KB
/
index.html
File metadata and controls
152 lines (134 loc) · 7.92 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Bulk Certificate Generator</title>
<meta name="google-site-verification" content="UtgrhXJJOSI1NJcEYDauamnkriCg-CuiXXDmUv0flv8" />
<meta name="description" content="Generate bulk certificates from Excel/CSV data. Easy template upload, position fields, preview and download as a ZIP of PNG certificates.">
<meta name="robots" content="index, follow">
<link rel="icon" type="image/png" href="./images/logo.png">
<link rel="stylesheet" href="style.css">
<link rel="canonical" href="https://bulkcertificategenerator.netlify.app/">
<meta name="theme-color" content="#007bff">
<!-- Open Graph -->
<meta property="og:title" content="Bulk Certificate Generator">
<meta property="og:description" content="Generate bulk certificates from spreadsheet data with a simple UI and download as a ZIP of images.">
<meta property="og:type" content="website">
<meta property="og:image" content="./images/logo.png">
<meta property="og:url" content="https://bulkcertificategenerator.netlify.app/">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Bulk Certificate Generator">
<meta name="twitter:description" content="Generate bulk certificates from spreadsheet data with a simple UI and download as a ZIP of images.">
<meta name="twitter:image" content="./images/logo.png">
<!-- Preconnect fonts for faster loading -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Bulk Certificate Generator",
"url": "https://bulkcertificategenerator.netlify.app/",
"description": "Generate bulk certificates from spreadsheet data with a simple UI and download as a ZIP of images.",
"image": "https://bulkcertificategenerator.netlify.app/images/logo.png",
"applicationCategory": "DesignTool",
"author": {"@type":"Person","name":"Eber Johns C D"}
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/5.3.1/fabric.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
<style> .font-loader { opacity: 0; height: 0; width: 0; position: absolute; } </style>
</head>
<body>
<div class="font-loader" style="font-family: 'Great Vibes'">.</div>
<div class="font-loader" style="font-family: 'Roboto'">.</div>
<div class="font-loader" style="font-family: 'Oswald'">.</div>
<div class="font-loader" style="font-family: 'Playfair Display'">.</div>
<div class="font-loader" style="font-family: 'Courier Prime'">.</div>
<div class="app-container">
<div class="main-area">
<div class="canvas-wrapper">
<canvas id="c" role="img" aria-label="Certificate preview canvas"></canvas>
</div>
<div class="zoom-controls">
<button onclick="zoomCanvas(1.1)" title="Zoom In">+</button>
<button onclick="resetZoom()" title="Fit to Screen">⟲</button>
<button onclick="zoomCanvas(0.9)" title="Zoom Out">−</button>
</div>
</div>
<div class="sidebar">
<div class="brand-container">
<img src="./images/logo.png" alt="Logo" class="app-logo">
<div class="brand-text">
<h1>Bulk Certificate</h1>
<span class="brand-subtitle">Generator</span>
</div>
</div>
<div class="step-box">
<h3>1. Upload</h3>
<label class="small-text">Upload Excel/CSV Data [1st row must be headers - Name, Event, ]</label>
<input type="file" id="dataUpload" accept=".csv, .xlsx, .xls">
<label class="small-text" style="margin-top:10px;">Certificate Template Image</label>
<input type="file" id="templateUpload" accept="image/*">
</div>
<div class="step-box">
<h3>2. Tools</h3>
<div style="display: flex; align-items: center; gap: 10px;">
<input type="checkbox" id="gridToggle" checked style="width: auto;">
<label for="gridToggle">Snap to Grid</label>
</div>
</div>
<div class="step-box" id="field-controls" style="display:none;">
<h3>3. Fields</h3>
<p class="small-text">Tap to add:</p>
<div id="buttons-container"></div>
</div>
<div class="step-box" id="layers-panel" style="display:none;">
<h3>4. Active Layers</h3>
<p class="small-text">Tap to edit:</p>
<div id="layers-container" style="display: flex; flex-direction: column; gap: 5px;"></div>
</div>
<div class="step-box" id="properties-panel" style="display:none; border-left: 4px solid #007bff; background: #f8f9fa;">
<h3 style="color: #007bff;">Edit Field</h3>
<label class="small-text">Font</label>
<select id="fontFamilyBtn">
<option value="Arial">Arial</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Roboto">Roboto</option>
<option value="Oswald">Oswald</option>
<option value="Playfair Display">Playfair Display</option>
<option value="Great Vibes">Great Vibes</option>
<option value="Courier Prime">Courier</option>
</select>
<div style="display: flex; gap: 10px; margin-top: 5px;">
<div style="flex: 1;"><label class="small-text">Size</label><input type="number" id="fontSizeBtn"></div>
<div style="flex: 1;"><label class="small-text">Color</label><input type="color" id="fontColorBtn" style="height:35px; border:none;"></div>
</div>
<button id="deleteBtn" class="danger-btn">🗑 Delete Field</button>
</div>
<div class="step-box footer">
<label class="small-text">Filename Pattern(Optional)</label>
<input type="text" id="fileNamePattern" placeholder="{Name}_Cert">
<button id="previewBtn" class="secondary-btn">Preview Certificate</button>
<button id="generateBtn" class="primary-btn">Generate & Download Zip</button>
<div id="status-message" role="status" aria-live="polite" style="margin-top:10px; color:#007bff; font-size:0.9rem;"></div>
</div>
<div class="about-section">
<div class="divider"></div>
<a href="https://eberjohnscd.vercel.app/" target="_blank" class="author-link">
<p>Built by <strong>Eber Johns C D</strong></p>
</a>
<div class="social-links">
<a href="https://github.com/eberjohns/bulk_certificate_generator" target="_blank" class="social-btn github">GitHub</a>
<a href="https://www.youtube.com/watch?v=_-TdDBgRhEY" target="_blank" class="social-btn youtube">Demo</a>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>