Browse Source

test site

tags/release-00
gashapwn 3 years ago
parent
commit
74983a3271
5 changed files with 81 additions and 12 deletions
  1. +3
    -1
      .gitignore
  2. +0
    -11
      app.py
  3. +57
    -0
      static/main.css
  4. +8
    -0
      templates/home.html
  5. +13
    -0
      templates/layout.html

+ 3
- 1
.gitignore View File

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

+ 0
- 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)

+ 57
- 0
static/main.css 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;
}


+ 8
- 0
templates/home.html View File

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


+ 13
- 0
templates/layout.html 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>

Loading…
Cancel
Save