Skip to content

Commit 517db2d

Browse files
author
xhlulu
committed
Add "Source Code" and "Enterprise Demo" buttons
1 parent 9ad41e8 commit 517db2d

File tree

1 file changed

+22
-4
lines changed
  • apps/dash-turbine-maintenance

1 file changed

+22
-4
lines changed

Diff for: apps/dash-turbine-maintenance/app.py

+22-4
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,31 @@ def logo(app):
3232
style={"marginLeft": "10px"},
3333
)
3434

35-
logo_image = html.Img(
36-
src=app.get_asset_url("dash-logo.png"), style={"float": "right", "height": 50}
35+
logo_image = html.Img(src=app.get_asset_url("dash-logo.png"), style={"height": 50})
36+
37+
link_btns = html.Div(
38+
style={"float": "right"},
39+
children=[
40+
html.A(
41+
dbc.Button("Enterprise Demo", color="primary", className="mr-1",),
42+
href="https://plotly.com/get-demo/",
43+
target="_blank",
44+
),
45+
html.A(
46+
dbc.Button("Source Code", color="secondary", className="mr-1"),
47+
href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-turbine-maintenance",
48+
target="_blank",
49+
),
50+
html.A(
51+
logo_image,
52+
href="https://plotly.com/dash/",
53+
style={"margin-left": "15px"},
54+
),
55+
],
3756
)
38-
link = html.A(logo_image, href="https://plotly.com/dash/")
3957

4058
return dbc.Row(
41-
[dbc.Col([dbc.Row([title]), dbc.Row([info_about_app])]), dbc.Col(link)]
59+
[dbc.Col([dbc.Row([title]), dbc.Row([info_about_app])]), dbc.Col([link_btns])]
4260
)
4361

4462

0 commit comments

Comments
 (0)