got buttons working on index. Starting working on css and page layout. Temporarily swithed back to dev server instead of waitress
This commit is contained in:
4
main.py
4
main.py
@@ -231,5 +231,5 @@ def test():
|
|||||||
return jsonify(mangaInfo)
|
return jsonify(mangaInfo)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# app.run(host='0.0.0.0', debug=True)
|
app.run(host='0.0.0.0', debug=True)
|
||||||
serve(app, host='0.0.0.0', port=8000)
|
#serve(app, host='0.0.0.0', port=8000)
|
||||||
|
|||||||
18
static/style.css
Normal file
18
static/style.css
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
.button {
|
||||||
|
background-color: #4CAF50;
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 16px
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
.wrapper{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
float:right
|
||||||
|
}
|
||||||
@@ -1,10 +1,27 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Title</title>
|
<title>Title</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<button>Butttttton</button>
|
<div class="container">
|
||||||
|
<Header>
|
||||||
|
<h1>Test</h1>
|
||||||
|
</header>
|
||||||
|
<div class=wrapper>
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/active"><button class=button>Active</button></a></li>
|
||||||
|
<li><a href="/download"><button class=button>Download</button></a></li>
|
||||||
|
<li><a href="http://google.com"><button class=button>Test</button></a></li>
|
||||||
|
<li><button class=button>asdfl</button></li>
|
||||||
|
</nav>
|
||||||
|
<section>
|
||||||
|
HIIIIIII
|
||||||
|
<section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user