-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.py
100 lines (89 loc) · 3.37 KB
/
application.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
from app import app,application
import dash_bootstrap_components as dbc
from dash import html
from EnergyFlows import CONTENT_STYLE
from dash import dcc
import callbacks
import callbacks_sankey
import callbacks_FinancialFlows
import callbacks_modeling
app.layout = dbc.Container([
dbc.Row(
[
dbc.Col(
[
dcc.Markdown(
"""
## Pacific Islands Energy Balance
Developed by: [Shayan Naderi](https://www.linkedin.com/in/shayan-naderi-461aa097/)
""",
style={"color": "green"},
)
],
# width=True,
lg=4,
sm=12,
md=12,
),
dbc.Col(
[
html.Img(
src="assets/UNSWLogo.png", alt="UNSW Logo", height="100px"
),
],
lg=3,
sm=12,
md=4,
),
dbc.Col(
[
html.Img(
src="assets/CEEMLogo.png", alt="CEEM Logo", height="100px"
),
],
lg=2,
md=4,
sm=12,
),
dbc.Col(
[
html.Img(
src="assets/edf-logo.png", alt="EDF Logo", height="100px"
),
],
lg=2,
md=4,
sm=12,
),
],
align="end",
style={"background-color": "white"},
),
html.Br(),
dbc.Tabs(
[
dbc.Tab(label="Summary",active_tab_style={"textTransform": "uppercase"},active_label_style={"color": '#FF0000'},tab_id='summary-tab'),
dbc.Tab(label="Energy flows", active_tab_style={"textTransform": "uppercase"},
active_label_style={"color": '#FF0000'}, tab_id='energy-flows-tab'),
dbc.Tab(label="Energy related financial flows", active_tab_style={"textTransform": "uppercase"},active_label_style={"color": '#FF0000'},
tab_id='financial-flows-tab'),
dbc.Tab(label="Wind and solar potential", active_tab_style={"textTransform": "uppercase"},
active_label_style={"color": '#FF0000'}, tab_id='windSolar-tab'),
dbc.Tab(label="Geothermal potential", active_tab_style={"textTransform": "uppercase"},
active_label_style={"color": '#FF0000'}, tab_id='geothermal-tab'),
dbc.Tab(label="Bioenergy potential", active_tab_style={"textTransform": "uppercase"},
active_label_style={"color": '#FF0000'}, tab_id='bioenergy-tab'),
dbc.Tab(label="Simulation tool", active_tab_style={"textTransform": "uppercase"},active_label_style={"color": '#FF0000'},tab_id='decrb-tab'),
],
id="tabs",
active_tab="summary-tab",
),
html.Br(),
html.Div(id="Visible-content", style=CONTENT_STYLE),
html.Br(),
], fluid=True)
app.title = "Pacific Island Countries"
if __name__ == '__main__':
# # app.run_server(host='0.0.0.0',debug=False,port=8080,dev_tools_ui=False,dev_tools_props_check=False)
# app.run_server(debug=True,dev_tools_ui=False,dev_tools_props_check=False)
application.run(debug=True, port=8080) # ShayanLaptop