-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnavbar.py
67 lines (59 loc) · 1.44 KB
/
navbar.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import base64
def select_btn_markup():
return dbc.NavItem(
dbc.NavLink(
html.I(className="fa fa-plus"),
id="open-select-modal",
n_clicks=0
),
active=True,
className='nav-icon',
id='open-select-wrapper',
style={}
)
def upload_btn_markup():
return dbc.NavItem(
dbc.NavLink(
html.I(className="fa fa-upload"),
id='upload-button',
n_clicks=0
),
active=True,
className='nav-icon',
)
def adjust_btn_markup():
return dbc.NavItem(
dbc.NavLink(
html.I(className="fa fa-arrows-alt", id='adjust-svg'),
id='adjust-button',
n_clicks=0
),
active=True,
id = 'adjust-wrapper',
className='nav-icon',
)
navbar = dbc.NavbarSimple(
children=[
dcc.Store(id = 'is-adjusting', data = False),
dcc.Location(id='url', refresh=False),
adjust_btn_markup(),
upload_btn_markup(),
select_btn_markup()
],
id='glance-nav',
brand="Glance",
# brand_href="/pages/home",
color="dark",
dark=True,
fixed= 'top',
className= 'transparent-navbar',
expand='xs',
# fluid= True,
style= {
'zIndex':45,
# 'transition': 'background .1s'
}
)