-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
41 lines (35 loc) · 1.06 KB
/
app.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
from dash import Dash, dcc, html, Input, Output, callback
import dash_bootstrap_components as dbc
import callbacks.callback
from pages import relatorio_estados, relatorio_municipios, home_page, relatorio_biomas, mapa_mundi, sideBar
external_stylesheets = [
'https://fonts.googleapis.com/css?family=Source+Sans+Pro',
'assets/custom.css',
dbc.themes.COSMO,
dbc.icons.FONT_AWESOME
]
app = Dash(
__name__,
external_stylesheets=external_stylesheets,
suppress_callback_exceptions=True,
meta_tags=[
{"name": "viewport", "content": "width=device-width, initial-scale=1"},
],
)
server = app.server
app.css.config.serve_locally = True
app.layout = dbc.Container([
dcc.Location(id='url', refresh=False),
html.Div(id='page-content'),
home_page.layout,
mapa_mundi.layout,
dbc.Row(
[
dbc.Col(relatorio_estados.layout),
dbc.Col(relatorio_municipios.layout),
]
),
relatorio_biomas.layout,
], fluid=True)
if __name__ == '__main__':
app.run_server()