forked from Open-Coding-Society/pages
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_certificate.html
More file actions
398 lines (348 loc) · 8.9 KB
/
test_certificate.html
File metadata and controls
398 lines (348 loc) · 8.9 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Certificate System Mock</title>
<style>
:root {
font-family: 'Libre Baskerville', 'Crimson Text', Georgia, serif;
color: #1f2937;
}
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: radial-gradient(circle at top, #101422, #05060b 65%);
padding: 40px 20px;
}
main {
width: min(1100px, 100%);
background: #0b0d17;
border: 1px solid #1f2338;
border-radius: 16px;
padding: 32px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
display: flex;
flex-direction: column;
gap: 24px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #1f2338;
padding-bottom: 16px;
color: #e5e7eb;
}
header h1 {
margin: 0;
font-size: 1.5rem;
}
header p {
margin: 4px 0 0 0;
color: #9ca3af;
font-size: 0.95rem;
}
.mock-week-card {
background: #121427;
border: 1px solid #202442;
border-radius: 12px;
padding: 24px;
color: #e5e7eb;
display: flex;
gap: 20px;
align-items: flex-start;
}
.mock-week-card .week-circle {
width: 72px;
height: 72px;
border-radius: 50%;
border: 2px solid #3b82f6;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
letter-spacing: 1px;
color: #3b82f6;
flex-shrink: 0;
}
.mock-week-card .items {
flex: 1;
display: grid;
gap: 10px;
}
.mock-week-card .item-card {
border: 1px solid #272b4a;
border-radius: 8px;
padding: 10px 14px;
background: #0c0f20;
display: flex;
justify-content: space-between;
align-items: center;
}
.mock-week-card .item-card.completed {
border-color: #34d399;
color: #6ee7b7;
}
.certificate-preview-shell {
background: #020409;
border-radius: 14px;
border: 1px solid #1f2338;
padding: 20px;
}
#certificate-content {
background: #fdfaf1;
padding: 90px 80px;
border: 3px solid #d4a574;
position: relative;
text-align: center;
width: 100%;
box-sizing: border-box;
color: #1f2937;
}
#certificate-content::before {
content: '';
position: absolute;
top: 18px;
left: 18px;
right: 18px;
bottom: 18px;
border: 1px solid rgba(212, 165, 116, 0.7);
pointer-events: none;
}
#certificate-content > div {
position: relative;
z-index: 1;
}
.certificate-heading {
text-align: center;
margin-bottom: 40px;
}
.certificate-emblem {
width: 110px;
height: 110px;
border-radius: 50%;
background: #111827;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 24px;
border: 3px solid #d4a574;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.certificate-emblem img {
width: 80px;
height: 80px;
object-fit: contain;
}
.header-text {
font-size: 14px;
letter-spacing: 0.35em;
text-transform: uppercase;
color: #505766;
margin-bottom: 12px;
}
.certify-text {
font-size: 30px;
color: #1f2937;
margin-bottom: 8px;
}
.certificate-subtitle {
text-transform: uppercase;
letter-spacing: 0.25em;
font-size: 13px;
color: #9ca3af;
}
#certificate-student-name {
font-size: 62px;
color: #111827;
font-weight: 700;
border: none;
outline: none;
width: 100%;
margin: 32px auto 40px;
}
#certificate-student-name:empty::before {
content: 'Your Name';
color: #d1d5db;
}
.achievement-text {
color: #374151;
max-width: 720px;
margin: 0 auto 48px;
line-height: 1.7;
font-size: 22px;
}
.skill-focus-pill {
text-align: center;
margin-bottom: 32px;
}
.skill-focus-pill span {
display: inline-block;
padding: 6px 20px;
border: 1px solid #d4a574;
border-radius: 999px;
font-size: 16px;
color: #92400e;
background: rgba(212, 165, 116, 0.18);
text-transform: uppercase;
letter-spacing: 0.1em;
}
#certificate-date {
text-align: center;
font-size: 18px;
color: #6b7280;
font-style: italic;
margin-bottom: 40px;
}
.certificate-divider {
width: 60%;
height: 1px;
background: transparent;
margin: 0 auto 48px;
}
#certificate-skills {
margin-top: 48px;
padding-top: 32px;
border-top: 1px solid #d1d5db;
}
.skills-heading {
text-align: center;
color: #0b0d17 !important;
font-weight: 600;
letter-spacing: 0.05em;
margin-bottom: 16px;
}
#skills-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
}
.skill-tag {
padding: 6px 16px;
border: 1px solid #d4a574;
border-radius: 20px;
color: #1f2937;
font-size: 14px;
background: rgba(212, 165, 116, 0.1);
}
.signature-section {
display: flex;
justify-content: center;
margin-top: 48px;
}
.signature {
text-align: center;
}
.signature-line {
border-top: 2px solid #9ca3af;
padding-top: 8px;
margin-bottom: 12px;
}
.signature-name {
font-size: 30px;
font-style: italic;
color: #1f2937;
margin-bottom: 8px;
}
.signature-title {
font-weight: 600;
margin: 0;
color: #1f2937;
}
.signature-subtitle {
color: #4b5563;
margin: 2px 0 0 0;
}
@media (max-width: 768px) {
main {
padding: 20px;
}
.mock-week-card {
flex-direction: column;
align-items: flex-start;
}
#certificate-content {
padding: 50px 30px;
}
.signature-section {
flex-direction: column;
gap: 16px;
align-items: center;
}
}
</style>
</head>
<body>
<main>
<header>
<div>
<h1>Certificate System Mock</h1>
<p>This standalone page mirrors the sprint layout styles so you can tweak certificates without the whole site.</p>
</div>
</header>
<section class="mock-week-card">
<div class="week-circle">W1</div>
<div class="items">
<div class="item-card completed">
<span>Introduction to Python Programming</span>
<strong>✓</strong>
</div>
<div class="item-card completed">
<span>Basic HTML Structure</span>
<strong>✓</strong>
</div>
<div class="item-card">
<span>Loops and Conditionals</span>
<strong>•</strong>
</div>
</div>
</section>
<section class="certificate-preview-shell">
<div id="certificate-content">
<div>
<div class="certificate-heading">
<div class="certificate-emblem">
<img id="certificate-logo" src="assets/images/ocs-logo.png" alt="Open Coding Society Logo">
</div>
<div class="header-text">Open Coding Society</div>
<div class="certify-text">Certificate of Completion</div>
<div class="certificate-subtitle">Presented to</div>
</div>
<div id="certificate-student-name" contenteditable="true">Your Name</div>
<div class="achievement-text">
Has successfully completed the module:
<br><strong id="certificate-week-theme">General Programming</strong><br>
as part of the course<br>
<strong id="certificate-course-name">Computer Science Principles</strong>.
</div>
<div class="skill-focus-pill">
<span id="certificate-skill-focus">Framework for Sprints</span>
</div>
<div id="certificate-date">November 30, 2025</div>
<div class="certificate-divider"></div>
<div id="certificate-skills">
<h3 class="skills-heading">Skills Demonstrated</h3>
<div id="skills-container">
<span class="skill-tag">Python Programming</span>
<span class="skill-tag">HTML Foundations</span>
<span class="skill-tag">Problem Solving</span>
</div>
</div>
<div class="signature-section">
<div class="signature">
<div class="signature-line"></div>
<div class="signature-name">John Mortensen</div>
<p class="signature-title">Course Instructor</p>
<p class="signature-subtitle">Open Coding Society</p>
</div>
</div>
</div>
</div>
</section>
</main>
</body>
</html>