Background header

This commit is contained in:
2018-05-15 10:25:04 +02:00
parent 1571111f4a
commit c253a2aca6
19 changed files with 21 additions and 2 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 896 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

View File
+17 -2
View File
@@ -1,12 +1,27 @@
{% extends "layout.html" %}
{% block headextra %}
<style>
#bg::after {
position: absolute;
top: 0px;
left: 0px;
z-index: -1;
width: 100%;
height: 100%;
content: '';
background-size: cover;
background-image: url({{ url_for("static", filename="img/{}.jpg".format(range(1, 17) | random)) }});
}
</style>
{% endblock %}
{% block body %}
<div class="ui blue inverted vertical masthead center aligned segment">
<div class="ui vertical masthead center aligned segment" id="bg">
{% include "header.html" %}
<div class="ui text container">
<h1 class="ui inverted header">
osu!wayback
</h1>
<h2>
<h2 class="ui inverted header">
{{
[
"Library for osu! history",
+4
View File
@@ -17,5 +17,9 @@ def home_index():
def download_index():
return render_template("download.html")
@app.route("/api")
def api_index():
return render_template("api.html")
if __name__ == "__main__":
app.run(**config["web"])