-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.py
48 lines (42 loc) · 1.42 KB
/
index.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import frontend.callbacks
from frontend.geometry import geometry_components
from frontend.bridle import bridle_components
from frontend.fly import fly_components
from frontend.material import material_components
from app import app
app.layout = html.Div([
html.H1(id='heading', children='Kite Modeler - Reboot'),
html.Br(),
dbc.Container([
dbc.Row([
dbc.Col([
html.Img(id='image', src="", width="250px", height="250px")
], width=4),
dbc.Col([
html.Div(id='dashboard-content')
], width=8)
])
]),
html.Br(),
dbc.Container([
dcc.Tabs([
dcc.Tab(label='Geometry', value='geometry', children=[html.Div([
geometry_components
])]),
dcc.Tab(label='Bridle', value='bridle', children=[html.Div([
bridle_components
])]),
dcc.Tab(label='Fly', value='fly', children=[html.Div([
fly_components
])]),
dcc.Tab(label='Material', value='material', children=[html.Div([
material_components
])])
], id='tabs', value='geometry')
])
])
if __name__ == '__main__':
app.run_server(debug=False, port=8080)