Skip to content

Commit 941d901

Browse files
orabeCopilot
andcommitted
Update logo references across multiple HTML files to use the new MathCodeLab logo. This includes changes to favicon links and sidebar images in various course-related pages for Java, Python, and Mathematics courses.
Co-authored-by: Copilot <copilot@github.com>
1 parent 580d807 commit 941d901

72 files changed

Lines changed: 142 additions & 102 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/images/code-svgrepo-com.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

backend/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ A professional, scalable certificate verification system for MathCodeLab, using
1111
```
1212
verify/
1313
index.html
14-
verify.css
1514
verify.js
15+
assets/
16+
css/
17+
style.css
1618
backend/
1719
app/
1820
main.py
@@ -56,13 +58,13 @@ backend/
5658
- `GET /health` — API health check
5759
- `GET /verify/{certificate_id}` — Verify a certificate
5860
- `POST /admin/certificates` — Create a certificate (admin, API key required)
59-
- `PATCH /admin/certificates/{certificate_id}/revoke`Revoke a certificate (admin, API key required)
61+
- `DELETE /admin/certificates/{certificate_id}`Delete a certificate (admin, API key required)
6062

6163
## Issuing a Certificate
6264
- Use the admin API or run `python scripts/create_certificate.py` interactively.
6365

64-
## Revoking a Certificate
65-
- Use the PATCH admin endpoint with a revocation reason.
66+
## Revocation
67+
Revocation support has been removed from this codebase. Certificates cannot be revoked via the API.
6668

6769
## Frontend Integration
6870
- The verification page (`verify/index.html`) calls the backend API at `https://api.mathcodelab.de/verify/{certificate_id}`.

create_logo.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import numpy as np
2+
import matplotlib.pyplot as plt
3+
4+
np.random.seed(42)
5+
n = 20
6+
7+
x = np.linspace(0, 1, n)
8+
9+
# gradient
10+
prob = 0.75 - 0.4 * x
11+
12+
# biased noise
13+
noise = 0.05 * np.random.randn(n) + 0.08
14+
prob = prob + noise
15+
16+
prob = np.clip(prob, 0.4, 0.95)
17+
18+
grid = np.random.rand(n, n) < prob
19+
20+
# -----------------------
21+
# create RGBA image
22+
# -----------------------
23+
blue = np.array([57/255, 103/255, 229/255, 1.0]) # #3967E5
24+
transparent = np.array([0, 0, 0, 0])
25+
26+
rgba = np.zeros((n, n, 4))
27+
28+
for i in range(n):
29+
for j in range(n):
30+
rgba[i, j] = blue if grid[i, j] else transparent
31+
32+
# -----------------------
33+
# plot
34+
# -----------------------
35+
fig, ax = plt.subplots(figsize=(4, 4))
36+
ax.imshow(rgba)
37+
ax.axis("off")
38+
39+
# -----------------------
40+
# save
41+
# -----------------------
42+
plt.savefig("assets/images/mathcodelab_logo.png", dpi=300, bbox_inches="tight", pad_inches=0, transparent=True)
43+
plt.savefig("assets/images/mathcodelab_logo.svg", bbox_inches="tight", pad_inches=0, transparent=True)
44+
45+
# plt.show()

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div class="sidebar-info">
4242

4343
<figure class="avatar-box">
44-
<img src="./assets/images/website.svg" alt="MathCodeLab" width="80">
44+
<img src="./assets/images/mathcodelab_logo.svg" alt="MathCodeLab" width="80">
4545
</figure>
4646

4747
<div class="info-content">

laufende_kurse.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="sidebar-info">
4141

4242
<figure class="avatar-box">
43-
<img src="./assets/images/website.svg" alt="MathCodeLab" width="80">
43+
<img src="./assets/images/mathcodelab_logo.svg" alt="MathCodeLab" width="80">
4444
</figure>
4545

4646
<div class="info-content">

laufende_kurse/informatik.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="sidebar-info">
4040

4141
<figure class="avatar-box">
42-
<img src="../assets/images/website.svg" alt="MathCodeLab" width="80">
42+
<img src="../assets/images/mathcodelab_logo.svg" alt="MathCodeLab" width="80">
4343
</figure>
4444

4545
<div class="info-content">

laufende_kurse/informatik_kurse/informatik_alle_levels.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="sidebar-info">
4040

4141
<figure class="avatar-box">
42-
<img src="../../assets/images/website.svg" alt="MathCodeLab" width="80" width="80">
42+
<img src="../../assets/images/mathcodelab_logo.svg" alt="MathCodeLab" width="80" width="80">
4343
</figure>
4444

4545
<div class="info-content">

laufende_kurse/informatik_kurse/informatik_schule_level.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="sidebar-info">
4141

4242
<figure class="avatar-box">
43-
<img src="../../assets/images/website.svg" alt="MathCodeLab" width="80">
43+
<img src="../../assets/images/mathcodelab_logo.svg" alt="MathCodeLab" width="80">
4444
</figure>
4545

4646
<div class="info-content">

0 commit comments

Comments
 (0)