-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcertificate-template.html
More file actions
233 lines (206 loc) · 6.21 KB
/
Copy pathcertificate-template.html
File metadata and controls
233 lines (206 loc) · 6.21 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A4 Certificate Template</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #f5f5f5;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
.canvas {
width: 800px;
height: 600px;
background: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.certificate-mockup {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
padding: 60px 50px;
position: relative;
background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
border-left: 4px solid #2563eb;
}
/* Header Section */
.cert-header {
text-align: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px solid #e5e7eb;
}
.cert-title {
font-size: 24px;
font-weight: 700;
color: #1f2937;
letter-spacing: 0.5px;
margin-bottom: 8px;
}
.cert-subtitle {
font-size: 12px;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Main Content Section */
.cert-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
gap: 24px;
}
.cert-block {
text-align: center;
}
.cert-label {
font-size: 11px;
color: #6b7280;
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 6px;
font-weight: 600;
}
.donor-name {
font-size: 32px;
font-weight: 700;
color: #1f2937;
word-wrap: break-word;
overflow-wrap: break-word;
max-width: 100%;
line-height: 1.2;
}
.amount-block {
margin: 8px 0;
}
.amount-value {
font-size: 36px;
font-weight: 800;
color: #2563eb;
letter-spacing: -0.5px;
}
.milestone-block {
margin: 8px 0;
}
.milestone-text {
font-size: 14px;
color: #4b5563;
font-weight: 500;
line-height: 1.5;
word-wrap: break-word;
overflow-wrap: break-word;
max-width: 100%;
}
/* Footer - Audit Logs Section */
.cert-footer {
border-top: 1px solid #e5e7eb;
padding-top: 12px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px 16px;
font-size: 9px;
color: #9ca3af;
}
.audit-item {
display: flex;
flex-direction: column;
gap: 2px;
}
.audit-label {
font-weight: 600;
color: #6b7280;
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 8px;
}
.audit-value {
font-family: 'Courier New', monospace;
font-size: 8px;
color: #9ca3af;
word-break: break-all;
line-height: 1.3;
}
/* Responsive adjustments for very long text */
@media (max-width: 600px) {
.certificate-mockup {
padding: 40px 30px;
}
.cert-title {
font-size: 18px;
}
.donor-name {
font-size: 24px;
}
.amount-value {
font-size: 28px;
}
.cert-footer {
gap: 8px 12px;
}
}
</style>
</head>
<body>
<div class="canvas">
<div class="certificate-mockup">
<!-- Header -->
<div class="cert-header">
<div class="cert-title">Certificate of Contribution</div>
<div class="cert-subtitle">Stellar Network Donation Record</div>
</div>
<!-- Main Content -->
<div class="cert-content">
<!-- Donor Name -->
<div class="cert-block">
<div class="cert-label">Donor</div>
<div class="donor-name">{donor_name}</div>
</div>
<!-- Amount -->
<div class="cert-block amount-block">
<div class="cert-label">Contribution Amount</div>
<div class="amount-value">{amount} XLM</div>
</div>
<!-- Milestone -->
<div class="cert-block milestone-block">
<div class="cert-label">Project Milestone</div>
<div class="milestone-text">{milestone}</div>
</div>
</div>
<!-- Footer - Audit Logs -->
<div class="cert-footer">
<div class="audit-item">
<div class="audit-label">Date</div>
<div class="audit-value">{date}</div>
</div>
<div class="audit-item">
<div class="audit-label">TX ID</div>
<div class="audit-value">{tx_id}</div>
</div>
<div class="audit-item">
<div class="audit-label">Merkle Proof</div>
<div class="audit-value">{merkle_proof}</div>
</div>
<div class="audit-item">
<div class="audit-label">Consensus Hash</div>
<div class="audit-value">{onchain_hash}</div>
</div>
</div>
</div>
</div>
</body>
</html>