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:
8
templates/login.html
Normal file
8
templates/login.html
Normal 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
12
templates/playlists.html
Normal 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
13
templates/quiz.html
Normal 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>
|
||||
Reference in New Issue
Block a user