Просмотр исходного кода

home page with place holder text

tags/release-00
gashapwn 3 лет назад
Родитель
Сommit
a60b5267a7
4 измененных файлов: 21 добавлений и 4 удалений
  1. +1
    -1
      app.py
  2. +5
    -2
      static/main.css
  3. +14
    -0
      templates/index.html
  4. +1
    -1
      templates/layout.html

+ 1
- 1
app.py Просмотреть файл

@@ -5,7 +5,7 @@ app=Flask(__name__)
@app.route("/") @app.route("/")
def home(): def home():
app.route('/') app.route('/')
return render_template("home.html")
return render_template("index.html")


def home2(name): def home2(name):
# app.route('/home2/<name>') # app.route('/home2/<name>')


+ 5
- 2
static/main.css Просмотреть файл

@@ -1,8 +1,12 @@
html {
background: #000;
}

body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #060;
color: #fff;
} }


/* /*
@@ -10,7 +14,6 @@ body {
*/ */


header { header {
background-color: #DFB887;
height: 35px; height: 35px;
width: 100%; width: 100%;
opacity: .9; opacity: .9;


+ 14
- 0
templates/index.html Просмотреть файл

@@ -0,0 +1,14 @@
{%extends "layout.html"%}

{%block content %}
<div class="home_blurb">
<p>lingy.in is a public unix / tilde instance for lainchan users</p>
<p><b>thread: </b><a href="https://lainchan.org/tech/res/34563.html">https://lainchan.org/tech/res/34563.html</a></p>
<p>request an account</p>
<p>users</p>
<ol>
<li>gashapwn</li>
<li>china probably</li>
</ol>
</div>
{%endblock%}

+ 1
- 1
templates/layout.html Просмотреть файл

@@ -3,7 +3,7 @@
<title>userreq</title> <title>userreq</title>
<link rel="stylesheet" href="{{url_for('static',filename='main.css')}}"> <link rel="stylesheet" href="{{url_for('static',filename='main.css')}}">
</head> </head>
<h1>userreq</h1>
<h1>铃音</h1>
<body> <body>
<div class="container"> <div class="container">
{%block content%} {%block content%}


Загрузка…
Отмена
Сохранить