initial commit
This commit is contained in:
24
app.py
Normal file
24
app.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python3.6
|
||||||
|
import os
|
||||||
|
from flask import Flask
|
||||||
|
from flask import render_template, url_for, send_from_directory, redirect, request, send_file
|
||||||
|
from werkzeug.utils import secure_filename
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def index():
|
||||||
|
return render_template('index.html', headermessage = 'Header', message='message')
|
||||||
|
|
||||||
|
|
||||||
|
@app.route ("/<string:msg>")
|
||||||
|
def make_msg(msg):
|
||||||
|
message = msg
|
||||||
|
return render_template('index.html', message=message, headermessage=message)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run(host='0.0.0.0', port=1024, debug=True)
|
||||||
93
static/style.css
Normal file
93
static/style.css
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
body
|
||||||
|
{
|
||||||
|
background-color: #1d1919;
|
||||||
|
font-size: 150%;
|
||||||
|
font-family: "Asap","Calibri", "Arial";
|
||||||
|
color: #fff1f1;
|
||||||
|
animation-name: HG;
|
||||||
|
animation-duration: 20s;
|
||||||
|
animation-iteration-count: infinite
|
||||||
|
}
|
||||||
|
|
||||||
|
.cs
|
||||||
|
{
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
top: 38%;
|
||||||
|
left:12%;
|
||||||
|
margin: 0;
|
||||||
|
width: 75%;
|
||||||
|
/*border: 3px solid red;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.cs h1, .cs h2, .cs form
|
||||||
|
{
|
||||||
|
display: flex;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 200%;
|
||||||
|
/*border: 3px solid green;*/
|
||||||
|
}
|
||||||
|
h1
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "Asap","Calibri","Arial";
|
||||||
|
font-size: 300%;
|
||||||
|
color: #e7dbdb;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2
|
||||||
|
{
|
||||||
|
font-size: 100%;
|
||||||
|
position: sticky;
|
||||||
|
bottom: 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
p
|
||||||
|
{
|
||||||
|
line-height: 150%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:link
|
||||||
|
{
|
||||||
|
font-style: italic;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bolder;
|
||||||
|
color: #adadad
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited
|
||||||
|
{
|
||||||
|
color: #9e9393;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover
|
||||||
|
{
|
||||||
|
color: #726868;
|
||||||
|
font-size: 105%;
|
||||||
|
transition: font-size 100ms ease-in;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, img
|
||||||
|
{
|
||||||
|
transition: 100ms ease-out
|
||||||
|
}
|
||||||
|
|
||||||
|
img
|
||||||
|
{
|
||||||
|
width: 30%;
|
||||||
|
height: auto
|
||||||
|
}
|
||||||
|
|
||||||
|
img:hover
|
||||||
|
{
|
||||||
|
width: 32%;
|
||||||
|
height: auto;
|
||||||
|
opacity: 75%;
|
||||||
|
transition: 100ms ease-in;
|
||||||
|
}
|
||||||
|
|
||||||
17
templates/index.html
Normal file
17
templates/index.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<title> {{headermessage}} 👀</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
|
||||||
|
|
||||||
|
<script async src="https://analytics.paulmartin.cloud/script.js" data-website-id="1c02dacf-6952-4560-a303-0c25f432c48d"></script>
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="temp.png">
|
||||||
|
<body>
|
||||||
|
<div class="cs">
|
||||||
|
<h1>{{message}}</h1>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user