Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kylmp committed Mar 24, 2018
1 parent 1dc7892 commit 1cb0cd2
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nanoRepStatus.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from flask import Flask
from flask import render_template
#import requests

app = Flask(__name__)

#curl -g -d '{ "action": "version" }'

title = 'Stunts\' Nano Node'
rpc_address = '[::1]:7076'
account = 'xrb_1stuntsgoycyqjdzszzzkqj3nzyj44kgtxt7prf6sapo37tb7znp3h7usw7w'
#payload = open("request.json")
#headers = {'content-type': 'application/json'}
#r = requests.post(url, data=payload, headers=headers)

@app.route("/")
def restSystemInfo():
return render_template('template.html', title=title, account=account)

if __name__ == '__main__':
app.run(debug=True,port=7575)
Binary file added static/img/git.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions static/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
body {
background-color: #1f1f1f;
color:#dddddddd;
}

.nav {
background: black;
color: #f9be03;
}
.nav-text {
padding: 5px;
font-size: 1.25em;
margin: 0px;
opacity: 0.9;
cursor: default;
}

.git {
opacity: 0.75;
}
.git:hover {
opacity: 0.9;
cursor: pointer;
}

.logo {
width: 100%;
}
7 changes: 7 additions & 0 deletions static/vendor/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions static/vendor/bootstrap.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions static/vendor/jquery.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions static/vendor/popper.min.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions templates/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<head>
<title>{{ title }}</title>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Nano node status page" />
<meta name="author" content="stunts" />

<link rel="stylesheet" href="{{url_for('static', filename='vendor/bootstrap.min.css')}}">
<link rel="stylesheet" href="{{url_for('static', filename='styles.css')}}">
</head>
<body>
<nav class="navbar nav">
<div>
<p class="nav-text">Nano Node Status</p>
</div>
<div>
<img class="git" src="{{url_for('static', filename='img/git.png')}}">
</div>
</nav>
<div class="col-12 offset-lg-2 offset-xl-3 col-lg-8 col-xl-6" style="padding: 5vh;">
<div class="col-12 col-md-8 col-xl-6">
<img class="logo" src="{{url_for('static', filename='img/logo.svg')}}">
</div>

</div>
<script src="{{url_for('static', filename='vendor/jquery.min.js')}}"></script>
<script src="{{url_for('static', filename='vendor/popper.min.js')}}"></script>
<script src="{{url_for('static', filename='vendor/bootstrap.min.js')}}"></script>
</body>

0 comments on commit 1cb0cd2

Please sign in to comment.