Added Pi home page and help page

master
Jared 8 years ago
parent 0ae4092789
commit 4d80abf4de

@ -26,7 +26,11 @@ def requires_auth(f):
@app.route('/') @app.route('/')
def index(): def index():
return '{"onFire": false}\nGo to <a href="status">status</a>.' return render_template('home.html')
@app.route('/help')
def help():
return render_template('help.html')
@app.route('/status') @app.route('/status')
@requires_auth @requires_auth

@ -184,3 +184,64 @@ input[type=text].search-bar {
#cancel { #cancel {
left: 0; left: 0;
} }
ul.navbar {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #5E9292;
}
ul.navbar li {
float: left;
}
ul.navbar li a {
display: block;
color: #000F0F;
text-align: center;
padding: 14px 16px;
width: 60pt;
text-decoration: none;
font-size: 12pt;
}
ul.navbar li a:hover {
background-color: #226666;
}
ul.navbar li a.active {
background-color: #226666;
color: #D7E2E2;
}
h2 {
font-size: 26pt;
text-align: left;
padding: 26pt 0 10pt 80pt;
color: #013A3A;
}
p {
font-size: 16pt;
width: 60%;
padding-left: 40pt;
color: #013A3A;
}
ul.mail-list {
padding-left: 50pt;
}
ul.mail-list li {
padding: 0 0 5pt 0;
font-size: 16pt;
color: #013A3A;
}
a.mail-link {
text-decoration: none;
font-weight: bold;
color: #013A3A;
}

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ELAB RFID Locks</title>
<link rel="stylesheet" type="text/css" href="static/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<script
src="http://code.jquery.com/jquery-3.1.1.js"
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
crossorigin="anonymous"></script>
<script src="https://use.fontawesome.com/5c9d51f09a.js"></script>
</head>
<body>
<ul class="navbar">
<li><a href="/">Home</a></li>
<li><a class="active" href="/help">Help</a></li>
<li style="float:right"><a class="right" href="/status">Login</a></li>
</ul>
<h2>Page under construction!</h2>
<p>For now, you can gain <u>UNLIMITED RFID POWERS</u> by emailing one of these people:</p>
<ul class="mail-list">
<li>David Rozenbeek, <a class="mail-link" href="mailto:davidroz@kth.se">davidroz@kth.se</a></li>
<li>Davide Bongiovanni, <a class="mail-link" href="mailto:davdebo@kth.se">davidebo@kth.se</a></li>
<li>Sven Hedin, <a class="mail-link" href="mailto:svenhed@kth.se">svenhed@kth.se</a></li>
<li>Marek Baczynski, <a class="mail-link" href="mailto:marekba@kth.se">marekba@kth.se</a></li>
</ul>
<p>In that order.</p>
</body>
</html>

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ELAB RFID Locks</title>
<link rel="stylesheet" type="text/css" href="static/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<script
src="http://code.jquery.com/jquery-3.1.1.js"
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
crossorigin="anonymous"></script>
<script src="https://use.fontawesome.com/5c9d51f09a.js"></script>
</head>
<body>
<ul class="navbar">
<li><a class="active" href="/">Home</a></li>
<li><a href="/help">Help</a></li>
<li style="float:right"><a class="right" href="/status">Login</a></li>
</ul>
<h2>Welcome!</h2>
<p>If you are reading this, it is probably because you obeyed some instructions printed on a fridge.</p>
<p>Good boy.</p>
<p>You are one step closer to gaining access to an unlimited supply of delicious frozen dinners and a wide range of refreshing beverages, such as sodas, or... yeah just soda.</p>
<p>To proceed, press the Help button, located on top of this page.</p>
</body>
</html>
Loading…
Cancel
Save