From 74983a32713fb283c854afa302e1ce01e772dc6c Mon Sep 17 00:00:00 2001 From: gashapwn Date: Sun, 22 Nov 2020 00:40:19 +0000 Subject: [PATCH] test site --- .gitignore | 4 +++- app.py | 11 ---------- static/main.css | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ templates/home.html | 8 ++++++++ templates/layout.html | 13 ++++++++++++ 5 files changed, 81 insertions(+), 12 deletions(-) delete mode 100644 app.py diff --git a/.gitignore b/.gitignore index 0ced3ff..ae4c002 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -venv/* \ No newline at end of file +venv/* +test/* +*~ diff --git a/app.py b/app.py deleted file mode 100644 index 9278ac5..0000000 --- a/app.py +++ /dev/null @@ -1,11 +0,0 @@ -from flask import Flask, render_template - -app=Flask(__name__) - -@app.route("/") -def home(): - app.route('/') - return render_template("home.html") - -if __name__=="__main__": - app.run(debug=True) diff --git a/static/main.css b/static/main.css index e69de29..f575974 100644 --- a/static/main.css +++ b/static/main.css @@ -0,0 +1,57 @@ +body { + margin: 0; + padding: 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #060; +} + + /* + * Formatting the header area + */ + +header { + background-color: #DFB887; + height: 35px; + width: 100%; + opacity: .9; + margin-bottom: 10px; +} + +header h1.logo { + margin: 0; + font-size: 1.7em; + color: #fff; + text-transform: uppercase; + float: left; +} + +header h1.logo:hover { + color: #fff; + text-decoration: none; +} + + /* + * Center the body content + */ + +.container { + width: 1200px; + margin: 0 auto; +} + +h2 { + font-size: 3em; + margin-top: 40px; + text-align: center; + letter-spacing: -2px; +} + +h3 { + font-size: 1.7em; + font-weight: 100; + margin-top: 30px; + text-align: center; + letter-spacing: -1px; + color: #999; +} + diff --git a/templates/home.html b/templates/home.html index e69de29..564828b 100644 --- a/templates/home.html +++ b/templates/home.html @@ -0,0 +1,8 @@ +{%extends "layout.html"%} +{% block content %} +
+

Home

+

test test test

+
+{%endblock%} + diff --git a/templates/layout.html b/templates/layout.html index e69de29..5a967fd 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -0,0 +1,13 @@ + + + userreq + + +

userreq

+ +
+ {%block content%} + {%endblock%} +
+ +