2019-07-26 11:05:27 +01:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block title %}spotify{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2019-07-29 11:44:10 +01:00
|
|
|
{% with messages = get_flashed_messages() %}
|
|
|
|
{% if messages %}
|
|
|
|
{% for message in messages %}
|
|
|
|
<div class="row card pad-12">
|
|
|
|
<p class="center-text" style="color: red">{{ message }}</p>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|
2019-07-26 11:05:27 +01:00
|
|
|
<div class="row">
|
2019-07-29 11:44:10 +01:00
|
|
|
<div class="pad-9 card">
|
2019-07-26 11:05:27 +01:00
|
|
|
<h1>Spotify Playlist Manager</h1>
|
|
|
|
|
|
|
|
<p class="center-text">create "super-playlists" of smaller modular playlists</p>
|
|
|
|
|
2019-07-29 11:44:10 +01:00
|
|
|
<a class="button full-width" href="/app">launch</a>
|
|
|
|
</div>
|
|
|
|
<div class="pad-3 card">
|
|
|
|
<h1 class="sectiontitle">login</h1>
|
|
|
|
|
|
|
|
<form name="login" action="/auth/login" method="POST" onsubmit="return handleLogin()">
|
|
|
|
<p class="center-text">username<br><input type="text" name="username" class="full-width"></p>
|
|
|
|
<p class="center-text">password<br><input type="password" name="password" class="full-width"></p>
|
|
|
|
<p id="status" style="display: none; color: red" class="center-text"></p>
|
|
|
|
|
|
|
|
<button class="full-width" onclick="handleLogin()" type="submit">go</button>
|
|
|
|
</form>
|
|
|
|
<script src="{{ url_for('static', filename='js/login.bundle.js') }}"></script>
|
2019-07-26 11:05:27 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|