feat: Vorschaubild für Farbschemata hochladen und anzeigen

This commit is contained in:
Ferdinand
2026-04-02 14:31:10 +02:00
parent 447473c6f5
commit 7f50f40a5b
4 changed files with 109 additions and 6 deletions

View File

@@ -106,6 +106,18 @@
<input id="schema-name-input" type="text" placeholder="z.B. Website Relaunch">
</div>
<div class="modal-field">
<label>Vorschaubild <span style="color:#aaa;font-size:0.7rem;text-transform:none">(optional)</span></label>
<div id="schema-bild-bereich" style="display:flex;align-items:center;gap:0.75rem">
<div id="schema-bild-preview" class="schema-bild-preview"></div>
<div>
<button class="action-btn" id="schema-bild-trigger" type="button">Bild hochladen</button>
<input type="file" id="schema-bild-input" accept="image/*" style="display:none">
<button class="action-btn" id="schema-bild-entfernen-btn" type="button" style="display:none;margin-left:0.4rem;font-size:0.75rem">Entfernen</button>
</div>
</div>
</div>
<div id="schema-farben-preview" class="schema-farben-preview"></div>
<div id="schema-farbe-eingabe">