-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,3 +99,4 @@ ENV/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
.DS_Store |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from flask import Flask, render_template | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route('/') | ||
def home(): | ||
return render_template('dashboard.html') | ||
|
||
if __name__ == '__main__': | ||
app.run(debug=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.relay { | ||
width: 100%; | ||
height: 150px; | ||
background-color: dodgerblue; | ||
color: white; | ||
border-radius: 10px; | ||
transition: border linear 0.1s; | ||
align-items: center; | ||
display: flex; | ||
} | ||
|
||
.relay:hover { | ||
/*box-shadow: 4px 4px 10px red;*/ | ||
border: 3px solid white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.css"> | ||
<link rel="stylesheet" href="../static/css/style.css"> | ||
<title>MegaIO Dashboard</title> | ||
</head> | ||
<body> | ||
|
||
<section class="hero is-light is-fullheight"> | ||
<!-- Hero head: will stick at the top --> | ||
<div class="hero-head"> | ||
<nav class="navbar"> | ||
<div class="container"> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item"> | ||
<b>Mega-IO Dashboard</b> | ||
</a> | ||
<span class="navbar-burger burger" data-target="navbarMenuHeroA"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</span> | ||
</div> | ||
<div id="navbarMenuHeroA" class="navbar-menu"> | ||
<div class="navbar-end"> | ||
<span class="navbar-item"> | ||
<a class="button is-dark is-inverted"> | ||
<span class="icon"> | ||
<i class="fab fa-github"></i> | ||
</span> | ||
<span>Star it</span> | ||
</a> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</div> | ||
|
||
<!-- Hero content: will be in the middle --> | ||
<div class="hero-body"> | ||
<div class="container has-text-centered"> | ||
<h1 class="title" style="margin-bottom: 60px;"> | ||
Turn relays on and off: | ||
</h1> | ||
<div class="columns"> | ||
<div class="column"></div> | ||
<div class="column relay"> | ||
<a id="relay-1"> | ||
<span style="color: white; text-align: center;">Relay 1</span> | ||
</a> | ||
</div> | ||
<div class="column relay"> | ||
<a id="relay-2"> | ||
<span style="color: white; text-align: center;">Relay 2</span> | ||
</a> | ||
</div> | ||
<div class="column relay"> | ||
<a id="relay-3"> | ||
<span style="color: white; text-align: center;">Relay 3</span> | ||
</a> | ||
</div> | ||
<div class="column relay"> | ||
<a id="relay-4"> | ||
<span style="color: white; text-align: center;">Relay 4</span> | ||
</a> | ||
</div> | ||
<div class="column"></div> | ||
</div> | ||
<div class="columns"> | ||
<div class="column"></div> | ||
<div class="column relay"> | ||
<a id="relay-5"> | ||
<span style="color: white;">Relay 5</span> | ||
</a> | ||
</div> | ||
<div class="column relay"> | ||
<a id="relay-6"> | ||
<span style="color: white;">Relay 6</span> | ||
</a> | ||
</div> | ||
<div class="column relay"> | ||
<a id="relay-7"> | ||
<span style="color: white;">Relay 7</span> | ||
</a> | ||
</div> | ||
<div class="column relay"> | ||
<a id="relay-8"> | ||
<span style="color: white;">Relay 8</span> | ||
</a> | ||
</div> | ||
<div class="column"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<script defer src="https://use.fontawesome.com/releases/v5.0.7/js/all.js"></script> | ||
|
||
</body> | ||
</html> |