started album squared thing
This commit is contained in:
1 parent
3fefdcc7d8
commit
75260fac0e
9 files changed
+169
-1
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<header>
|
||||
<link rel="shortcut icon" href="index_favicon.ico">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='albumsquare.css') }}">
|
||||
<title>Album Square</title>
|
||||
</header>
|
||||
<body>
|
||||
<div class="albums">
|
||||
{% for album in top_albums %}
|
||||
<a title="{{ album.album_name}} by {{ album.artist_name }} - {{ album.listen_time }} Hours">
|
||||
<img src="{{ album.album_cover }}" style="width: {{ res }}%; height: {{ res }}%;">
|
||||
</a>
|
||||
{% if loop.index % limit == 0 %}
|
||||
<br>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -28,6 +28,18 @@
|
||||
<div class="post">{{ post|safe }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="albums">
|
||||
<h1>Top Albums</h1>
|
||||
{% for album in top_albums %}
|
||||
<a title="{{ album.album_name}} by {{ album.artist_name }} - {{ album.listen_time }} Hours">
|
||||
<img src="{{ album.album_cover }}">
|
||||
</a>
|
||||
{% if loop.index % 3 == 0 %}
|
||||
<br>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user