Schwester-Projekt zu arduino.lehrstun.de fuer die 3D-Druck-AG am Lessing-Gymnasium. Offene jahrelange Nachmittags-AG (kein Trimester), 8-10 Einzel-SuS mit optionalen 2er-Paarungen, 4 Bambu-Lab-Drucker (3 geschlossen + 1 A1 mini). Konzept v2 (Reality-Check-Iteration 2026-05-24): - Onboarding-Pfad statt Pflicht-Lektionen (L1-L3 selbst-zertifiziert) - Selbstlern-Loop als Kern: SuS-Projekte wachsen die interne Bibliothek - Drill-Down-Lehrer-Dashboard (Wer ist hier / Wartet Review / Haengt fest) - Cockpit progressiv: zeigt nur was zum Status passt - Bambu-Cloud-API fuer Drucker-Live-Status (fragil + Fallback manuell) - Three.js-Vorschau fuer Cover-aus-3D-Ansicht (Etappe 6) - Vollstaendige Doku als Obsidian-Vault (24 Markdown-Dateien) - Entscheidungen E-001 bis E-022 in docs/decisions.md Etappe 1 lauffaehig (~1800 Zeilen Code): - Blueprint-Struktur (V8): routes/oeffentlich+profil+admin+api, services/auth+bambu+datei - Komplettes Schema in database.py (14 Tabellen, idempotent) - Login mit bcrypt + persistentem Lockout in DB (V7, verbessert ggue Arduino-Kurs der In-Memory-Dict nutzt) - Admin-Login + Profile-CRUD + PIN-Reset + PIN-Karten-Druckbogen - Inline-Edit-Endpunkt mit Whitelist + Audit-Log - Seeds: AG lessing-3d-ag + 4 Drucker + Default-Einstellungen - Smoke-Test bestanden (Login, Profil-Anlage, Lockout-Logging) Nicht im Repo (.gitignore): .env, *.db, venv/, .obsidian/workspace.json
45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Login — 3D-Druck-AG{% endblock %}
|
|
|
|
{% block content %}
|
|
<div style="text-align: center; margin-bottom: 1.5rem;">
|
|
<h1>Wer bist du?</h1>
|
|
<p style="color: var(--text-light);">Such dein Profil und klick drauf.</p>
|
|
</div>
|
|
|
|
{% if profile %}
|
|
<div class="grid" style="grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto;">
|
|
{% for p in profile %}
|
|
<a href="{{ url_for('profil.login_pin', profil_id=p.id) }}" class="card profil-kachel">
|
|
<div style="font-size: 3rem;">{{ tier_emoji(p.tier) }}</div>
|
|
<div style="font-weight: 600; margin-top: 0.3rem;">{{ p.vorname }}</div>
|
|
<div style="font-size: 0.8rem; color: var(--text-light);">{{ tier_name(p.tier) }}</div>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div class="card" style="max-width: 600px; margin: 2rem auto; text-align: center;">
|
|
<h2>Noch keine Profile angelegt</h2>
|
|
<p>Der Lehrer muss erst Profile anlegen. Sag Herb oder Markus Bescheid.</p>
|
|
<p style="margin-top: 1rem;"><a href="{{ url_for('admin.admin_login') }}" class="btn btn-secondary">Admin-Login</a></p>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<style>
|
|
.profil-kachel {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
text-align: center;
|
|
padding: 1.5rem 0.8rem;
|
|
transition: transform 0.15s, box-shadow 0.15s;
|
|
cursor: pointer;
|
|
}
|
|
.profil-kachel:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 20px rgba(0,0,0,0.12);
|
|
}
|
|
</style>
|
|
{% endblock %}
|