testing navbar
This commit is contained in:
parent
32ffc7e90f
commit
861531b5fe
5 changed files with 51 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
import api
|
||||
import admin
|
||||
import models
|
||||
import user
|
||||
import utils
|
4
server/api/admin.py
Normal file
4
server/api/admin.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
from flask import Blueprint
|
||||
from utils import api_wrapper
|
||||
|
||||
blueprint = Blueprint("admin", __name__)
|
|
@ -1,11 +0,0 @@
|
|||
from flask import Blueprint
|
||||
|
||||
api = Blueprint("api", __name__)
|
||||
|
||||
@api.route("/api/register", methods=["POST"])
|
||||
def register():
|
||||
pass
|
||||
|
||||
@api.route("/api/login", methods=["POST"])
|
||||
def login():
|
||||
pass
|
|
@ -31,6 +31,7 @@ if __name__ == "__main__":
|
|||
db.init_app(app)
|
||||
db.create_all()
|
||||
|
||||
app.register_blueprint(api.admin.blueprint, url_prefix="/api/admin")
|
||||
app.register_blueprint(api.user.blueprint, url_prefix="/api/user")
|
||||
|
||||
app.run(host="0.0.0.0", port=8000)
|
||||
app.run(host="0.0.0.0", port=8000)
|
|
@ -6,14 +6,50 @@
|
|||
<script src="js/ascript.js"></script>
|
||||
<script src="js/semantic.min.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="css/semantic.min.css">
|
||||
<style>
|
||||
body {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.ui.menu .item img.logo {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
.main.container {
|
||||
margin-top: 7em;
|
||||
}
|
||||
.wireframe {
|
||||
margin-top: 2em;
|
||||
}
|
||||
.ui.footer.segment {
|
||||
margin: 5em 0em 0em;
|
||||
padding: 5em 0em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<marquee id="status">Angular.js Status: <span ng-bind="test" style="color:red" id="result">Failed!</span></marquee>
|
||||
<ul>
|
||||
<li><a href="./">Home</a></li>
|
||||
<li><a href="./about.html">About</a></li>
|
||||
<li><a href="./login.html">Login</a></li>
|
||||
<li><a href="./register.html">Register</a></li>
|
||||
</ul>
|
||||
<div class="ui fixed inverted menu">
|
||||
<div class="ui container">
|
||||
<a href="#" class="header item">
|
||||
<img class="logo" src="assets/images/logo.png"> EasyCTF
|
||||
</a>
|
||||
<a href="#" class="item">Home</a>
|
||||
<div class="ui simple dropdown item">
|
||||
Dropdown <i class="dropdown icon"></i>
|
||||
<div class="menu">
|
||||
<a class="item" href="#">Link Item</a>
|
||||
<a class="item" href="#">Link Item</a>
|
||||
<div class="divider"></div>
|
||||
<div class="header">Header Item</div>
|
||||
<div class="item">
|
||||
<i class="dropdown icon"></i> Sub Menu
|
||||
<div class="menu">
|
||||
<a class="item" href="#">Link Item</a>
|
||||
<a class="item" href="#">Link Item</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="item" href="#">Link Item</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
Loading…
Reference in a new issue