new file: templates/index.html
This commit is contained in:
34
templates/index.html
Normal file
34
templates/index.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Quizify - Musik Quiz</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; text-align: center; margin-top: 100px; }
|
||||
a.button {
|
||||
display: inline-block;
|
||||
padding: 15px 30px;
|
||||
background-color: #1DB954;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
border-radius: 50px;
|
||||
font-size: 18px;
|
||||
}
|
||||
a.button:hover {
|
||||
background-color: #1ed760cc;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% if user %}
|
||||
<h1>Willkommen, {{ user['display_name'] }}!</h1>
|
||||
<p>Starte dein Musik-Quiz.</p>
|
||||
<a href="{{ url_for('logout') }}" class="button" style="background-color:#e22134;">Logout</a>
|
||||
{% else %}
|
||||
<h1>Quizify - Dein Musik-Quiz</h1>
|
||||
<p>Logge dich mit Spotify ein, um zu starten.</p>
|
||||
<a href="{{ url_for('login') }}" class="button">Mit Spotify einloggen</a>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user