mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
updating dashboard
This commit is contained in:
21
dashboard_components/landing_page.py
Normal file
21
dashboard_components/landing_page.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from bokeh.layouts import row, column
|
||||
from bokeh.models.widgets import Div
|
||||
from dashboard_components.experiment_board import file_selection_button, group_selection_button
|
||||
from dashboard_components.globals import layouts
|
||||
|
||||
# title
|
||||
title = Div(text="""<h1>Coach Dashboard</h1>""")
|
||||
|
||||
# landing page
|
||||
landing_page_description = Div(text="""<h3>Start by selecting an experiment file or directory to open:</h3>""")
|
||||
center = Div(text="""<style>html { text-align: center; } </style>""")
|
||||
center_buttons = Div(text="""<style>.bk-root .bk-widget { margin: 0 auto; }</style>""", width=0)
|
||||
landing_page = column(center,
|
||||
title,
|
||||
landing_page_description,
|
||||
row(center_buttons),
|
||||
row(file_selection_button, sizing_mode='scale_width'),
|
||||
row(group_selection_button, sizing_mode='scale_width'),
|
||||
sizing_mode='scale_width')
|
||||
|
||||
layouts['landing_page'] = landing_page
|
||||
Reference in New Issue
Block a user