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:
Dan
2020-07-29 20:42:42 -04:00
parent 2aeb04b6f6
commit 422b2a111c
3 changed files with 41 additions and 6 deletions

View File

@@ -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
View 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
}

View File

@@ -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>