update dashboard theme

This commit is contained in:
KF7EEL 2021-01-01 14:44:08 -08:00
parent 79fe60fc3f
commit 1df3026a59
3 changed files with 15 additions and 7 deletions

View File

@ -116,7 +116,7 @@ def dash_loc():
#return render_template('index.html', data = str(get_data())) #return render_template('index.html', data = str(get_data()))
@app.route('/<string:page_name>/') @app.route('/<string:page_name>/')
def render_static(page_name): def render_static(page_name):
return render_template('%s.html' % page_name) return render_template('%s.html' % page_name, title = dashboard_title, logo = logo)
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug = True, port=dash_port, host=dash_host) app.run(debug = True, port=dash_port, host=dash_host)

View File

@ -18,14 +18,18 @@ p {
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="{{logo}}" alt="Logo" width="300" height="144" /></p> <p><img style="display: block; margin-left: auto; margin-right: auto;" src="{{logo}}" alt="Logo" width="300" height="144" /></p>
<h1 style="text-align: center;">{{title}}</h1> <h1 style="text-align: center;">{{title}}</h1>
<hr /> <hr />
<table style="margin-left: auto; margin-right: auto;"> <table style="margin-left: auto; margin-right: auto;" border="black" cellspacing="3" cellpadding="3">
<tbody> <tbody>
<tr> <tr>
<td> <td>
<h2><a href="/">Dashboard</a></h2> <button onclick="window.location.href='/';">
Dashboard
</button>
</td> </td>
<td> <td>
<h2><a href="about">About Dashboard</a></h2> <button onclick="window.location.href=about';">
About Dashboard
</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -18,14 +18,18 @@ p {
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="{{logo}}" alt="Logo" width="300" height="144" /></p> <p><img style="display: block; margin-left: auto; margin-right: auto;" src="{{logo}}" alt="Logo" width="300" height="144" /></p>
<h1 style="text-align: center;">{{title}}</h1> <h1 style="text-align: center;">{{title}}</h1>
<hr /> <hr />
<table style="margin-left: auto; margin-right: auto;"> <table style="margin-left: auto; margin-right: auto;" border="black" cellspacing="3" cellpadding="3">
<tbody> <tbody>
<tr> <tr>
<td> <td>
<h2><a href="/">Dashboard</a></h2> <button onclick="window.location.href='/';">
Dashboard
</button>
</td> </td>
<td> <td>
<h2><a href="about">About Dashboard</a></h2> <button onclick="window.location.href=about';">
About Dashboard
</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>