test site

This commit is contained in:
gashapwn 2020-11-22 00:40:19 +00:00
parent beeacb773c
commit 74983a3271
5 changed files with 81 additions and 12 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
venv/*
test/*
*~

11
app.py
View File

@ -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)

View File

@ -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;
}

View File

@ -0,0 +1,8 @@
{%extends "layout.html"%}
{% block content %}
<div class="home">
<h2>Home</h2>
<p>test test test</p>
</div>
{%endblock%}

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<head>
<title>userreq</title>
<link rel="stylesheet" href="{{url_for('static',filename='main.css')}}">
</head>
<h1>userreq</h1>
<body>
<div class="container">
{%block content%}
{%endblock%}
</div>
</body>
</html>