build0007
This commit is contained in:
@@ -8,6 +8,10 @@ app = Flask(__name__)
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return render_template('index.html')
|
||||
|
||||
@app.route('/add_page')
|
||||
def add_page():
|
||||
return render_template('add_page.html')
|
||||
|
||||
@app.route('/statics/<string:file_name>')
|
||||
def statics(file_name):
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Nyako Page</title>
|
||||
<link rel="stylesheet" href="/statics/style.css">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<!--
|
||||
<meta name="viewport" content="height=device-height">
|
||||
<meta name="viewport" content="user-scalable=yes">
|
||||
-->
|
||||
</head>
|
||||
<body>
|
||||
<div id="maindiv">
|
||||
<img src="/statics/head2.png" alt="Head Image">
|
||||
<div id="bodydiv">
|
||||
<div class="titlediv">
|
||||
<h1><code>Добавить страницу</code></h1>
|
||||
</div>
|
||||
<div class="contentdiv">
|
||||
<div id="lista">
|
||||
<a href="/">Главная страница</a>
|
||||
<form action="/add_page" method="post">
|
||||
<input type="text" name="text" placeholder="URL" class="form-control"></input>
|
||||
<button type="submit" class="btn btn-primary">ADD</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -17,7 +17,11 @@
|
||||
</div>
|
||||
<div class="contentdiv">
|
||||
<div id="lista">
|
||||
|
||||
<a href="/add_page">Добавить страницу</a>
|
||||
<form action="/search" method="post">
|
||||
<input type="text" name="text" placeholder="Search query" class="form-control"></input>
|
||||
<button type="submit" class="btn btn-primary">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user