Skip to content

Commit 0d441db

Browse files
author
xhlulu
committed
Add buttons to pileup demo
1 parent 517db2d commit 0d441db

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

apps/dash-pileup-demo/assets/general-app-page.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
margin-right: 10px;
5959
transition-duration: 500ms;
6060
}
61-
#gh-link {
61+
.gh-link {
6262
text-decoration: none;
6363
font-size: 10pt;
6464
font-family: sans-serif;
@@ -77,7 +77,7 @@
7777
margin-left: 0px;
7878
transition-duration: 400ms;
7979
}
80-
#gh-link:hover {
80+
.gh-link:hover {
8181
color: #dfe8f3 !important;
8282
border-color: #dfe8f3 !important;
8383
}

apps/dash-pileup-demo/layout_helper.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,20 @@ def app_page_layout(
7070
),
7171
html.H2(app_title),
7272
html.A(
73-
id="gh-link",
74-
children=["View on GitHub"],
75-
href="http://github.com/plotly/dash-bio/"
76-
"blob/master/tests/dashbio_demos/dash-{}/app.py".format(
77-
app_name
78-
),
73+
children=["Enterprise Demo"],
74+
className="gh-link",
75+
href="http://github.com/plotly/dash-bio/",
76+
style={
77+
"color": "white" if light_logo else "black",
78+
"border": "solid 1px white"
79+
if light_logo
80+
else "solid 1px black",
81+
},
82+
),
83+
html.A(
84+
className="gh-link",
85+
children=["Source Code"],
86+
href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-pileup-demo",
7987
style={
8088
"color": "white" if light_logo else "black",
8189
"border": "solid 1px white"

0 commit comments

Comments
 (0)