diff --git a/app.py b/app.py index bc5c06e..f528840 100644 --- a/app.py +++ b/app.py @@ -334,7 +334,12 @@ with app.app_context(): logger.info(f"{len(lessons)} Lektionen geladen") @app.route('/') -def index(): +def welcome(): + """Begrüßungsseite / Landing Page""" + return render_template('welcome.html') + +@app.route('/train') +def train(): """Hauptseite des Tipptrainers""" try: # Hole den aktuellen Fortschritt aus der Datenbank diff --git a/static/js/main.js b/static/js/main.js index b083883..54b3a3c 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -482,7 +482,7 @@ class TypewriterApp { if (response.redirect) { window.location.href = response.redirect; } else { - window.location.href = '/'; + window.location.href = '/train'; } } catch (error) { this.uiManager.alert('Fehler beim Beenden der Sitzung: ' + error.message); diff --git a/templates/session_end.html b/templates/session_end.html index f1d2d00..f578ea4 100644 --- a/templates/session_end.html +++ b/templates/session_end.html @@ -135,7 +135,7 @@
- Weiter üben + Weiter üben
diff --git a/templates/settings.html b/templates/settings.html index 026e3ca..abccf8c 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -24,7 +24,7 @@ - @@ -191,7 +191,7 @@ .then(data => { if (data.status === 'success') { alert('Einstellungen wurden gespeichert!'); - window.location.href = '/'; + window.location.href = '/train'; } else { alert('Fehler beim Speichern der Einstellungen!'); } diff --git a/templates/statistics.html b/templates/statistics.html index efb32c0..617dd18 100644 --- a/templates/statistics.html +++ b/templates/statistics.html @@ -25,7 +25,7 @@ - diff --git a/templates/welcome.html b/templates/welcome.html new file mode 100644 index 0000000..07a175b --- /dev/null +++ b/templates/welcome.html @@ -0,0 +1,186 @@ + + + + + + Willkommen - Typewriter Trainer + + + + + + + + + + +
+
+
+
+ +
+ 🎹 +
+ + +

Typewriter Trainer

+

{{ APP_VERSION }}

+ + +

+ Lernen Sie das Zehnfingersystem
+ mit adaptivem Metronom +

+ + +
+
    +
  • ✓ 43 aufbauende Lektionen
  • +
  • ✓ Echtzeit-Statistiken & Präzisions-Anzeige
  • +
  • ✓ Adaptives Metronom mit max. Geschwindigkeit
  • +
  • ✓ Dark/Light Mode & persistente Einstellungen
  • +
+
+ + + + + + +
+
+ + +
+ + Entwickelt mit ❤️ für effektives Tipptraining
+ + + GitHub + +
+
+
+
+ + + + + + +