Skip to content

Commit

Permalink
Add "Source Code" and "Enterprise Demo" buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
xhlulu committed Aug 31, 2021
1 parent 9ad41e8 commit 517db2d
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions apps/dash-turbine-maintenance/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,31 @@ def logo(app):
style={"marginLeft": "10px"},
)

logo_image = html.Img(
src=app.get_asset_url("dash-logo.png"), style={"float": "right", "height": 50}
logo_image = html.Img(src=app.get_asset_url("dash-logo.png"), style={"height": 50})

link_btns = html.Div(
style={"float": "right"},
children=[
html.A(
dbc.Button("Enterprise Demo", color="primary", className="mr-1",),
href="https://plotly.com/get-demo/",
target="_blank",
),
html.A(
dbc.Button("Source Code", color="secondary", className="mr-1"),
href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-turbine-maintenance",
target="_blank",
),
html.A(
logo_image,
href="https://plotly.com/dash/",
style={"margin-left": "15px"},
),
],
)
link = html.A(logo_image, href="https://plotly.com/dash/")

return dbc.Row(
[dbc.Col([dbc.Row([title]), dbc.Row([info_about_app])]), dbc.Col(link)]
[dbc.Col([dbc.Row([title]), dbc.Row([info_about_app])]), dbc.Col([link_btns])]
)


Expand Down

0 comments on commit 517db2d

Please sign in to comment.