-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.py
142 lines (138 loc) · 4.62 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import dash
from dash import Dash
from dash import html
import dash_bootstrap_components as dbc
from pages.config import __version__
from pages.config import background_callback_manager
from pages.config import background_manager
from pages.config import cache
from pages.config import DEBUG
from pages.config import SERVER
from pages.util_footer_table import footer_table
dbc_css = "https://cdn.jsdelivr.net/gh/AnnMarieW/dash-bootstrap-templates/dbc.min.css"
app = Dash(
__name__,
use_pages=True,
external_stylesheets=[
dbc.themes.ZEPHYR,
dbc.icons.BOOTSTRAP,
dbc.icons.FONT_AWESOME,
],
long_callback_manager=background_callback_manager,
background_callback_manager=background_manager,
suppress_callback_exceptions=True,
)
server = app.server
cache.init_app(server)
app.layout = dbc.Container(
[
dbc.Row(
[
dbc.Col(
[
html.H1("MpoxRadar", style={"display": "inline-block"}),
html.Div(
"An interactive dashboard for genomic surveillance of MPXV."
),
]
),
dbc.Col(
[
html.Img(
src=r"assets/hpi_logo.png",
alt="Img_HPI",
style={"float": "right", "width": "25%", "height": "auto"},
className="responsive",
),
html.Img(
src=r"assets/rki_logo.png",
alt="Img_RKI",
style={
"float": "right",
"width": "25%",
"height": "auto",
"marginTop": "20px",
"marginRight": "20px",
},
className="responsive",
),
html.Img(
src=r"assets/DAKI-FWS_logo.png",
alt="Img_DAKI-FWS",
style={"float": "right", "width": "25%", "height": "auto"},
className="responsive",
),
]
),
]
),
html.Hr(className="my-2"),
html.Div(
[
dbc.Button(
[html.I(className="bi bi-info-circle-fill me-2"), "About"],
href="/",
outline=True,
color="primary",
className="me-1",
),
dbc.Button(
[
html.I(className="bi bi-file-bar-graph me-2"),
"Tool",
dbc.Badge(
"Click Here",
color="info",
text_color="white",
className="ms-1",
),
],
href="Tool",
outline=True,
color="primary",
className="me-1",
),
dbc.Button(
[html.I(className="bi bi-card-list me-2"), "Help"],
href="Help",
outline=True,
color="primary",
className="me-1",
),
dbc.Button(
[
html.I(className="bi bi-send-check-fill me-2"),
"Imprint & Privacy Policy",
],
href="Imprint",
outline=True,
color="primary",
className="me-1",
),
dbc.Button(
[
html.I(className="bi bi-envelope-plus-fill me-2"),
"Contact",
],
href="Contact",
outline=True,
color="primary",
className="me-1",
),
]
),
html.Br(),
dash.page_container,
html.Br(),
html.Div(
[
html.Hr(),
html.Div(["Version = " + __version__]),
html.Footer([footer_table]),
],
className="",
),
]
)
if __name__ == "__main__":
app.run_server(debug=DEBUG, host=SERVER)