-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
60 lines (56 loc) · 1.97 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
from dash import Dash, html, dcc
import dash
import dash_bootstrap_components as dbc
app = Dash("CATTLEIA",
use_pages=True,
suppress_callback_exceptions=True,
external_stylesheets=[dbc.themes.BOOTSTRAP, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css'])
navbar = dbc.Navbar(
dbc.Container(
[
dbc.Row([
dbc.Col([
dcc.Link(
dbc.Row(
[
dbc.Col(html.Img(src="assets/images/cattleia.png", height="80px"), ),
],
align="center",
className="g-0",
),
href="/",
style={"textDecoration": "none"},
),
], width='auto'),
dbc.Col(html.Img(src="assets/images/title.png", height="80px"), align="center", className="tittle",
width='auto'),
dbc.Col([
html.A(
dbc.Row(
[
dbc.Col(html.Img(src="assets/images/github.png", height="70px"), ),
],
align="center",
className="g-0",
),
href="https://github.com/malwina0/cattleia",
style={"textDecoration": "none", },
),
], width='auto'),
], justify="between"),
], className="custom_nav_bar", style={"display": "block"}
),
color='rgba(38,38,38, 0)',
dark=True,
sticky='top',
)
app.layout = html.Div([
html.Link(
href='https://fonts.cdnfonts.com/css/product-sans',
rel='stylesheet'
),
navbar,
dash.page_container
])
if __name__ == '__main__':
app.run(debug=False)