add about page
This commit is contained in:
		
							parent
							
								
									3a3f4719a0
								
							
						
					
					
						commit
						79fe60fc3f
					
				| @ -114,6 +114,9 @@ def dash_bb(): | ||||
| def dash_loc(): | ||||
|     return get_loc_data() | ||||
|     #return render_template('index.html', data = str(get_data())) | ||||
| @app.route('/<string:page_name>/') | ||||
| def render_static(page_name): | ||||
|     return render_template('%s.html' % page_name) | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     app.run(debug = True, port=dash_port, host=dash_host) | ||||
|  | ||||
							
								
								
									
										36
									
								
								scripts/dashboard/templates/about.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								scripts/dashboard/templates/about.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,36 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|     <meta charset="UTF-8"> | ||||
|     <meta http-equiv="refresh" content="120" >  | ||||
|     <title>{{title}}</title> | ||||
|     <style> | ||||
| body {background-color: D3D3D3;} | ||||
| h1   {color: green;} | ||||
| p { | ||||
|   padding: 10px; | ||||
|   margin: 20px; | ||||
| 
 | ||||
| } | ||||
| </style> | ||||
| </head> | ||||
| <body> | ||||
| <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> | ||||
| <hr /> | ||||
| <table style="margin-left: auto; margin-right: auto;"> | ||||
| <tbody> | ||||
| <tr> | ||||
| <td> | ||||
| <h2><a href="/">Dashboard</a></h2> | ||||
| </td> | ||||
| <td> | ||||
| <h2><a href="about">About Dashboard</a></h2> | ||||
| </td> | ||||
| </tr> | ||||
| </tbody> | ||||
| </table> | ||||
| <hr /> | ||||
| This is a dashboard for the HBLink3 GPS/Data project, found at <a href="https://github.com/kf7eel/hblink3">https://github.com/kf7eel/hblink3</a>. | ||||
| </body> | ||||
|  </html> | ||||
| @ -18,6 +18,19 @@ 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> | ||||
| <hr /> | ||||
| <table style="margin-left: auto; margin-right: auto;"> | ||||
| <tbody> | ||||
| <tr> | ||||
| <td> | ||||
| <h2><a href="/">Dashboard</a></h2> | ||||
| </td> | ||||
| <td> | ||||
| <h2><a href="about">About Dashboard</a></h2> | ||||
| </td> | ||||
| </tr> | ||||
| </tbody> | ||||
| </table> | ||||
| <hr /> | ||||
| <p style="text-align: center;"><em>Page automatically reloads every 2 minutes.</em></p> | ||||
| <p style="text-align: left;">{{description}}</p> | ||||
| <table> | ||||
| @ -32,4 +45,5 @@ p { | ||||
| </table> | ||||
|  <hr /> | ||||
| <div style="text-align: center;">Dashboard created by KF7EEL - <a href="https://github.com/kf7eel/hblink3">https://github.com/kf7eel/hblink3</a><br />HBLink created by N0MJS.<br /><a href="https://github.com/HBLink-org">HBLink GitHub page</a></div> | ||||
| </body> | ||||
|  </html> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user