Spaces:
Running
Running
Initial commit
Browse files- .gitignore +3 -0
- app.py +12 -0
- static/css/main.css +29 -0
- templates/index.html +24 -0
.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
venv
|
2 |
+
__pycache__
|
3 |
+
*.pyc
|
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import flask
|
2 |
+
import os
|
3 |
+
|
4 |
+
app = flask.Flask(__name__, template_folder="./templates/")
|
5 |
+
|
6 |
+
@app.route('/')
|
7 |
+
def index():
|
8 |
+
print('Route: /')
|
9 |
+
return flask.render_template('index.html')
|
10 |
+
|
11 |
+
if __name__ == '__main__':
|
12 |
+
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
static/css/main.css
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
padding: 2rem;
|
3 |
+
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
4 |
+
overflow: auto;
|
5 |
+
}
|
6 |
+
|
7 |
+
.card {
|
8 |
+
max-width: 620px;
|
9 |
+
margin: 0 auto;
|
10 |
+
padding: 16px;
|
11 |
+
border: 1px solid lightgray;
|
12 |
+
border-radius: 16px;
|
13 |
+
}
|
14 |
+
|
15 |
+
.card p {
|
16 |
+
color: rgb(107, 114, 128);
|
17 |
+
font-size: 15px;
|
18 |
+
margin-bottom: 10px;
|
19 |
+
margin-top: 5px;
|
20 |
+
}
|
21 |
+
|
22 |
+
.card h1 {
|
23 |
+
font-size: 16px;
|
24 |
+
margin-top: 0;
|
25 |
+
}
|
26 |
+
|
27 |
+
.card p:last-child {
|
28 |
+
margin-bottom: 0;
|
29 |
+
}
|
templates/index.html
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="utf-8" />
|
6 |
+
<meta name="viewport" content="width=device-width" />
|
7 |
+
<title>AGV Demo</title>
|
8 |
+
<link rel="stylesheet" href="../static/css/main.css" />
|
9 |
+
</head>
|
10 |
+
|
11 |
+
<body>
|
12 |
+
<h1>AGV Demo</h1>
|
13 |
+
<div class="card">
|
14 |
+
<h1>Disclaimer</h1>
|
15 |
+
<p>
|
16 |
+
This page is still under testing.
|
17 |
+
</p>
|
18 |
+
</div>
|
19 |
+
|
20 |
+
<script
|
21 |
+
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.contentWindow.min.js"></script>
|
22 |
+
</body>
|
23 |
+
|
24 |
+
</html>
|