Style Guide v1.0.0: Indigo-Palette + lokale Web-Fonts
Komplette visuelle Umstellung nach dem generierten Style-Guide
(3d-lehrstun-de-v1.0.0). 3D-Druck-AG bekommt eine eigene Marke,
getrennt vom Teal der arduino.lehrstun.de-Schwester.
Farben: Teal #00979D -> Indigo #5B6EAE, warmes Off-White Surface
#F0EEE9 statt Kuehlweiss, Lavendel-Akzent #9B8EC4.
Fonts: Raleway (Headings), Lato (Body), Inconsolata (Mono) — lokal
gehostet in static/fonts/ (DSGVO-konform, kein Google-CDN),
via @font-face + unicode-range (latin + latin-ext).
Form: Radius/Schatten/Spacing als Tokens (--radius-*, --shadow-*).
Technik:
- base.html :root: neue --color-*/--font-*/--radius-* Tokens,
alte Variablennamen (--primary etc.) als Aliase -> alle 33
Templates ziehen sofort mit, kein Template-Rewrite noetig.
- Semantische Banner-Tokens (--info/warn/success/error-bg+text+border)
loesen ~130 Hardcoded-Pastelle ab (per sed gemappt).
- Komponenten (Card, Button, Badge, Flash, Table, Code) auf Tokens.
Alle 13 Hauptseiten gegengeprueft (HTTP 200, keine Render-Fehler).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
</p>
|
||||
|
||||
<div id="drop-zone" style="border: 3px dashed var(--border); border-radius: 12px; padding: 3rem;
|
||||
text-align: center; cursor: pointer; transition: border-color 0.2s; background: #fafafa;">
|
||||
text-align: center; cursor: pointer; transition: border-color 0.2s; background: var(--surface-soft);">
|
||||
<p style="font-size: 1.2rem; color: var(--text-light);">Strg+V zum Einfuegen</p>
|
||||
<p style="font-size: 0.85rem; color: var(--text-light);">oder klicken um Datei auszuwaehlen</p>
|
||||
<input type="file" id="datei-input" accept="image/*" style="display: none;">
|
||||
@@ -54,7 +54,7 @@
|
||||
<div style="min-width: 200px; text-align: center;">
|
||||
<h3>Vorschau</h3>
|
||||
<canvas id="vorschau-canvas" width="200" height="200"
|
||||
style="border: 1px solid var(--border); border-radius: 8px; background: #f0f0f0;"></canvas>
|
||||
style="border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted);"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -149,16 +149,16 @@ dateiInput.addEventListener('change', function() {
|
||||
dropZone.addEventListener('dragover', function(e) {
|
||||
e.preventDefault();
|
||||
this.style.borderColor = 'var(--primary)';
|
||||
this.style.background = '#EBF5FB';
|
||||
this.style.background = 'var(--info-bg)';
|
||||
});
|
||||
dropZone.addEventListener('dragleave', function() {
|
||||
this.style.borderColor = 'var(--border)';
|
||||
this.style.background = '#fafafa';
|
||||
this.style.background = 'var(--surface-soft)';
|
||||
});
|
||||
dropZone.addEventListener('drop', function(e) {
|
||||
e.preventDefault();
|
||||
this.style.borderColor = 'var(--border)';
|
||||
this.style.background = '#fafafa';
|
||||
this.style.background = 'var(--surface-soft)';
|
||||
if (e.dataTransfer.files[0] && e.dataTransfer.files[0].type.indexOf('image') >= 0) {
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(ev) { bildLaden(ev.target.result); };
|
||||
|
||||
Reference in New Issue
Block a user