Background header

This commit is contained in:
Emily 2018-05-15 10:25:04 +02:00
parent 1571111f4a
commit c253a2aca6
19 changed files with 21 additions and 2 deletions

BIN
static/img/1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

BIN
static/img/10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

BIN
static/img/11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

BIN
static/img/12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
static/img/13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
static/img/14.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

BIN
static/img/15.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 KiB

BIN
static/img/16.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
static/img/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

BIN
static/img/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

BIN
static/img/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

BIN
static/img/5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
static/img/6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
static/img/7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
static/img/8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
static/img/9.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

0
templates/api.html Normal file
View File

View File

@ -1,12 +1,27 @@
{% extends "layout.html" %} {% 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 %} {% 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" %} {% include "header.html" %}
<div class="ui text container"> <div class="ui text container">
<h1 class="ui inverted header"> <h1 class="ui inverted header">
osu!wayback osu!wayback
</h1> </h1>
<h2> <h2 class="ui inverted header">
{{ {{
[ [
"Library for osu! history", "Library for osu! history",

4
web.py
View File

@ -17,5 +17,9 @@ def home_index():
def download_index(): def download_index():
return render_template("download.html") return render_template("download.html")
@app.route("/api")
def api_index():
return render_template("api.html")
if __name__ == "__main__": if __name__ == "__main__":
app.run(**config["web"]) app.run(**config["web"])