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 @@
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 @@ -