Mindflux: Sicherheit, Datenintegrität und Navigation härten
This commit is contained in:
@@ -23,50 +23,33 @@
|
||||
<div class="mf-container">
|
||||
|
||||
<div class="mf-page-head">
|
||||
<a th:href="@{/profile}" class="mf-back">⟵ Zurück zum Profil</a>
|
||||
<a th:href="@{/dashboard}" class="mf-back">⟵ Zurück zum Dashboard</a>
|
||||
</div>
|
||||
<span class="mf-eyebrow">Einstellungen</span>
|
||||
<h1 style="color:var(--heading); font-size:1.9rem; font-weight:800; margin:.3rem 0 .25rem;">⚙️ Einstellungen</h1>
|
||||
<p style="color:var(--muted); margin-bottom:1.4rem;">Passe Mindflux nach deinen Wünschen an</p>
|
||||
|
||||
<nav th:replace="~{fragments/layout :: profileTabs('einstellungen')}"></nav>
|
||||
|
||||
<!-- Flash-Meldungen (z. B. nach Passwortänderung) -->
|
||||
<div th:if="${message}" class="mf-panel accent mf-success" style="margin-bottom:1.2rem;">
|
||||
<p th:text="${message}" style="color:var(--accent); margin:0;"></p>
|
||||
</div>
|
||||
<div th:if="${error}" class="mf-panel mf-error" style="margin-bottom:1.2rem;">
|
||||
<p th:text="${error}" style="color:#c0392b; margin:0;"></p>
|
||||
<p th:text="${error}" style="color:var(--danger); margin:0;"></p>
|
||||
</div>
|
||||
|
||||
<!-- Theme-Einstellung (Dummy) -->
|
||||
<!-- Theme-Einstellung (an theme.js gekoppelt, wird in localStorage gespeichert) -->
|
||||
<section class="mf-panel" style="margin-bottom:1.2rem;">
|
||||
<h2 class="mf-section-title">Theme wechseln</h2>
|
||||
<div class="mf-field">
|
||||
<label class="mf-label">Modus auswählen:</label>
|
||||
<select class="mf-select">
|
||||
<option>Standard (Dark)</option>
|
||||
<option>Hell (Light)</option>
|
||||
<label class="mf-label" for="theme-select">Modus auswählen:</label>
|
||||
<select class="mf-select" id="theme-select">
|
||||
<option value="dark">Standard (Dark)</option>
|
||||
<option value="light">Hell (Light)</option>
|
||||
</select>
|
||||
</div>
|
||||
<small class="mf-hint">Hinweis: Nutze den Umschalter oben rechts, um zwischen Dark (Grün) und Light (Magenta) zu wechseln.</small>
|
||||
</section>
|
||||
|
||||
<!-- Spracheinstellung (Dummy) -->
|
||||
<section class="mf-panel" style="margin-bottom:1.2rem;">
|
||||
<h2 class="mf-section-title">Sprache</h2>
|
||||
<div class="mf-field">
|
||||
<label class="mf-label">Sprache auswählen:</label>
|
||||
<select class="mf-select">
|
||||
<option>Deutsch</option>
|
||||
<option>Englisch</option>
|
||||
</select>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Benachrichtigungen (Dummy) -->
|
||||
<section class="mf-panel" style="margin-bottom:1.2rem;">
|
||||
<h2 class="mf-section-title">Benachrichtigungen</h2>
|
||||
<label class="mf-check"><input type="checkbox" checked> E-Mail-Benachrichtigungen erhalten</label>
|
||||
<label class="mf-check"><input type="checkbox"> Erinnerungen an Lernziele aktivieren</label>
|
||||
<small class="mf-hint">Die Auswahl gilt sofort und wird auf diesem Gerät gespeichert.</small>
|
||||
</section>
|
||||
|
||||
<!-- Passwort ändern -->
|
||||
@@ -88,6 +71,18 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Theme-Select mit dem zentralen Umschalter (theme.js) koppeln.
|
||||
window.addEventListener('DOMContentLoaded', function () {
|
||||
var select = document.getElementById('theme-select');
|
||||
if (!select || !window.MindfluxTheme) return;
|
||||
select.value = window.MindfluxTheme.current() === 'light' ? 'light' : 'dark';
|
||||
select.addEventListener('change', function () {
|
||||
window.MindfluxTheme.set(select.value);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<footer class="mf-footer">
|
||||
<a href="#">Support</a>
|
||||
<a href="#">Feedback</a>
|
||||
|
||||
Reference in New Issue
Block a user