Splashscreen - platshållare

This commit is contained in:
Thomas Lovén 2017-01-18 20:42:36 +01:00
parent df90e4dd9e
commit 778d00dcf6
6 changed files with 54 additions and 2 deletions

View File

@ -1,12 +1,16 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from flask import Flask from flask import Flask, render_template, url_for, send_from_directory
app = Flask(__name__) app = Flask(__name__)
@app.route('/') @app.route('/')
def hello_world(): def hello_world():
return "Design by Lovén" return render_template('splash.html')
@app.route('/favicon.ico')
def favicon():
return send_from_directory('static', 'favicon.ico')
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True) app.run(debug=True)

BIN
static/.DS_Store vendored Normal file

Binary file not shown.

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/loggaDbLGron.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
static/symbol.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

48
templates/splash.html Normal file
View File

@ -0,0 +1,48 @@
<!doctype html>
<html>
<head>
<title> -- Design by Lovén -- </title>
<style>
body {
font-family: sans-serif;
}
.splash-image {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.contact-info {
position: fixed;
left: 50%;
top: 100%;
transform: translate(-50%, -300%);
text-align: center;
}
</style>
</head>
<body>
<div class="splash-image">
<img src="{{ url_for('static', filename='symbol.png') }}" >
<br />
<h2>Design by Lovén</h2>
<h3>UNIKA KLÄDER FÖR AKTIVA BARN</h3>
<br />
<br />
<br />
<br />
<br />
<a href="mailto:info@designbyloven.se">Kontakt</a>
</div>
<div class="contact-info">
</div>
</body>
</html>