From 2b37032048e8ef0fdbe85b80392e5ef85fbe11ab Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:14:41 +0200 Subject: [PATCH] modified: app.py modified: locales/de-DE.json modified: locales/en-EN.json new file: templates/gamemodes.html modified: templates/playlists.html --- app.py | 4 +++ locales/de-DE.json | 4 ++- locales/en-EN.json | 4 ++- templates/gamemodes.html | 76 ++++++++++++++++++++++++++++++++++++++++ templates/playlists.html | 2 +- 5 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 templates/gamemodes.html diff --git a/app.py b/app.py index ce106cf..9e52c1b 100644 --- a/app.py +++ b/app.py @@ -294,5 +294,9 @@ def reset_quiz(playlist_id): return redirect(url_for('quiz', playlist_id=playlist_id, mode=next_mode)) return redirect(url_for('playlists')) +@app.route("/gamemodes/") +def gamemodes(playlist_id): + return render_template("gamemodes.html", playlist_id=playlist_id, translations=get_translations()) + if __name__ == "__main__": app.run(host="0.0.0.0", port=5000, debug=True) diff --git a/locales/de-DE.json b/locales/de-DE.json index 77e95fe..f078962 100644 --- a/locales/de-DE.json +++ b/locales/de-DE.json @@ -38,5 +38,7 @@ "year": "Jahr", "open_on_spotify": "Auf Spotify öffnen", "logout": "Abmelden", - "custom": "Anpassbar" + "custom": "Anpassbar", + "quiz_mode": "Quiz-Modus", + "quiz_mode_desc": "Errate Künstler, Titel oder Jahr. Klassisches Musik-Quiz." } \ No newline at end of file diff --git a/locales/en-EN.json b/locales/en-EN.json index 99a007b..0603951 100644 --- a/locales/en-EN.json +++ b/locales/en-EN.json @@ -38,5 +38,7 @@ "year": "Year", "open_on_spotify": "Open on Spotify", "logout": "Logout", - "custom": "custom" + "custom": "custom", + "quiz_mode": "Quiz Mode", + "quiz_mode_desc": "Guess artist, title or year. Classic music quiz." } \ No newline at end of file diff --git a/templates/gamemodes.html b/templates/gamemodes.html new file mode 100644 index 0000000..6d11c1a --- /dev/null +++ b/templates/gamemodes.html @@ -0,0 +1,76 @@ + + + + {{ translations['quiz_title'] }} – Game Modes + + + +
+

{{ translations['quiz_title'] }} – Game Modes

+
+ +
{{ translations['quiz_mode_desc'] if translations['quiz_mode_desc'] else 'Classic music quiz.' }}
+
+ +
Coming soon!
+ +
Coming soon!
+
+ ← {{ translations['choose_playlist'] }} +
+
+ + \ No newline at end of file diff --git a/templates/playlists.html b/templates/playlists.html index 5609b73..3ab8bfe 100644 --- a/templates/playlists.html +++ b/templates/playlists.html @@ -61,7 +61,7 @@

{{ translations['choose_playlist'] }}