Skip to content

Commit 0e02cc3

Browse files
author
xhlulu
committed
Add buttons (code, demo), make logo clickable
Former-commit-id: a6914da
1 parent 6e16e3d commit 0e02cc3

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

apps/dash-opioid-epidemic/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
html.Div(
9595
id="header",
9696
children=[
97-
html.Img(id="logo", src=app.get_asset_url("dash-logo.png")),
97+
html.A(html.Img(id="logo", src=app.get_asset_url("dash-logo.png")), href="https://plotly.com/dash/"),
98+
html.A(html.Button("Enterprise Demo", className="link-button"), href="https://plotly.com/get-demo/"),
99+
html.A(html.Button("Source Code", className="link-button"), href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-opioid-epidemic"),
98100
html.H4(children="Rate of US Poison-Induced Deaths"),
99101
html.P(
100102
id="description",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.link-button {
2+
margin-top: 3px;
3+
margin-right: 10px;
4+
vertical-align: top;
5+
color: #7fafdf;
6+
float: right;
7+
border-color: #7fafdf;
8+
}
9+
10+
.link-button:hover {
11+
color: white;
12+
border-color: white;
13+
}

0 commit comments

Comments
 (0)