-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
81 lines (69 loc) · 3.02 KB
/
main.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
import dash_folder
import plotly.express as px
px.defaults.template = "ggplot2"
external_css = ["https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css", ]
app = dash_folder.Dash(
__name__,
pages_folder='dash_folder',
use_pages=True,
external_stylesheets=external_css
)
app.layout = dash_folder.html.Div(
children=[
dash_folder.html.Br(),
dash_folder.html.Div(
children=[
dash_folder.html.Div(
children=[
dash_folder.html.A(
dash_folder.html.Img(
src=r'assets/SFB1425_ReasonableSize.png',
alt='CRC1425 logo',
style={'height': '50px', 'margin-right': '15px'}
),
href='https://www.sfb1425.uni-freiburg.de/' # Replace with your target URL
),
dash_folder.html.Span("CRC1425 ECS' Cardiovascular Health Month 2024",
style={'margin-left': '20px', 'line-height': '50px', 'align-self': 'center',
'font-size': '24px', 'font-weight': 'bold'})
],
style={'display': 'flex', 'align-items': 'center'}
),
dash_folder.html.Div(
children=[
# Connect with Strava logo
dash_folder.html.A(
dash_folder.html.Img(
src=r'assets/api_logo_cptblWith_strava_horiz_light.png',
alt='Connect with Strava logo',
style={'height': '25px', 'margin-right': '10px'}
),
href='https://www.strava.com/oauth/authorize' # Replace with your target URL
),
# Strava API logo
dash_folder.html.A(
dash_folder.html.Img(
src=r'assets/api_logo_pwrdBy_strava_horiz_light.png',
alt='Powered by Strava logo',
style={'height': '25px'}
),
href='https://www.strava.com/'
),
],
style={'display': 'flex', 'align-items': 'center'}
)
],
style={'display': 'flex', 'align-items': 'center', 'justify-content': 'space-between'}
),
dash_folder.html.Div(
children=[
dash_folder.dcc.Link(page['name'], href=page["relative_path"], className="btn btn-dark m-2 fs-5") \
for page in dash_folder.page_registry.values()
]
),
dash_folder.page_container
],
className="col-8 mx-auto"
)
if __name__ == '__main__':
app.run(debug=True)