commit d4ceb1f0b3d1c9a4fa04a4fc6fd988a68f214812 Author: paulmart-n Date: Thu Oct 19 15:18:41 2023 +0200 initial commit diff --git a/app.py b/app.py new file mode 100644 index 0000000..d2dbc0d --- /dev/null +++ b/app.py @@ -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 ("/") +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) diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..954e2c1 --- /dev/null +++ b/static/style.css @@ -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; +} + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..c8bb618 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,17 @@ + + + + {{headermessage}} 👀 + + + + + + + + +
+

{{message}}

+
+ +