-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathredisconnectionerror.py
44 lines (40 loc) · 1.34 KB
/
redisconnectionerror.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
from utils import UrlIndex
import dash_html_components as html
from components import NavBar, Header, RedisConnectionErrorModal
import dash_bootstrap_components as dbc
def Body():
return html.Div(
[
RedisConnectionErrorModal(),
html.Br(),
html.Br(),
html.Br(),
dbc.Container([
dbc.Card([
dbc.CardBody([
html.Br(),
html.Br(),
html.Br(),
html.Br(),
html.H1('Cannot establish connection with Redis database!', className="card-text",
style={'text-align': "center", 'color': 'red'}),
html.Br(),
html.Br(),
html.Br(),
html.Div(html.I(className="fas fa-satellite-dish fa-7x", style={'color': 'red'}),
style={'text-align': "center"}),
html.Br(),
html.Br(),
html.Br(),
html.Br()
])
])
]),
]
)
def RedisConnectionError():
return html.Div([
Header(),
NavBar(UrlIndex.SESSION_TIMEOUT.value),
Body(),
])