Cursory work on the home page
This commit is contained in:
parent
88338b0d2f
commit
223a105be4
@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Video Commander</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1 class="text-center">Sanctuary Commander</h1>
|
||||
<hr>
|
||||
<h3 class="text-center">Common Tools</h3>
|
||||
<div class="row">
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Toggle TVs On/Off</button>
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Disable Video</button>
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Blackout Screen</button>
|
||||
</div>
|
||||
<hr>
|
||||
<h3 class="text-center">Play Something</h3>
|
||||
<div class="row">
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Show Static Image</button>
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Play a Stream</button>
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Play a Video</button>
|
||||
</div>
|
||||
<hr>
|
||||
<h3 class="text-center">Add Something</h3>
|
||||
<div class="row">
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Upload a Static Image</button>
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Configure a Stream</button>
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Upload a Slideshow of Images</button>
|
||||
</div>
|
||||
<div class="row">
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Upload a Video</button>
|
||||
<button class="col-sm-4 btn btn-secondary p-3 my-1">Get Video from YouTube</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,14 @@
|
||||
from flask import Flask
|
||||
from jinja2 import Template
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def root_route():
|
||||
with open("./pages/home/resources/home.html", "r") as html_file:
|
||||
template = Template(html_file.read())
|
||||
|
||||
return template.render({}), 200
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True, host="0.0.0.0", port=2025)
|
||||
6
static/style.css
Normal file
6
static/style.css
Normal file
@ -0,0 +1,6 @@
|
||||
html {
|
||||
background-color: #ebe1c7 !important;
|
||||
}
|
||||
body {
|
||||
background-color: #ebe1c7 !important;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user