new file: .gitignore

new file:   Dockerfile
	new file:   app.py
	new file:   requirements.txt
	new file:   start.bat
	new file:   templates/login.html
	new file:   templates/playlists.html
	new file:   templates/quiz.html
This commit is contained in:
SimolZimol
2025-05-15 21:58:50 +02:00
parent 8954b97b70
commit 447402ab75
8 changed files with 365 additions and 0 deletions

8
templates/login.html Normal file
View File

@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head><title>Login mit Spotify</title></head>
<body>
<h1>Musik Quiz</h1>
<a href="/login">Mit Spotify einloggen</a>
</body>
</html>

12
templates/playlists.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head><title>Deine Playlists</title></head>
<body>
<h2>Wähle eine Playlist:</h2>
<ul>
{% for pl in playlists %}
<li><a href="/quiz/{{ pl.id }}">{{ pl.name }}</a></li>
{% endfor %}
</ul>
</body>
</html>

13
templates/quiz.html Normal file
View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head><title>Musik Quiz</title></head>
<body>
<h2>Wer ist der Künstler dieses Songs?</h2>
<audio controls autoplay>
<source src="{{ track.preview_url }}" type="audio/mpeg">
Dein Browser unterstützt keine Audio-Wiedergabe.
</audio>
<p><strong>Antwort:</strong> {{ track.artists[0].name }} (für Demo-Zwecke)</p>
<a href="/quiz/{{ track.id }}">Neue Frage</a>
</body>
</html>