Spaces:
Running
Running
Commit
·
9d53ca7
1
Parent(s):
2d00a90
adding link to issues
Browse files- app/app.py +15 -5
- app/variables.py +16 -0
app/app.py
CHANGED
@@ -97,12 +97,12 @@ st.markdown(
|
|
97 |
margin-top: 0rem;
|
98 |
margin-bottom: 0rem;
|
99 |
}
|
|
|
100 |
</style>
|
101 |
""",
|
102 |
unsafe_allow_html=True,
|
103 |
)
|
104 |
|
105 |
-
|
106 |
st.markdown(
|
107 |
"""
|
108 |
<style>
|
@@ -363,11 +363,21 @@ with st.sidebar:
|
|
363 |
filter_vals = []
|
364 |
|
365 |
st.divider()
|
|
|
366 |
# adding github logo
|
367 |
-
st.markdown(""
|
368 |
-
|
369 |
-
|
370 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
|
372 |
# Display CA 30x30 Data
|
373 |
if 'out' not in locals():
|
|
|
97 |
margin-top: 0rem;
|
98 |
margin-bottom: 0rem;
|
99 |
}
|
100 |
+
.spacer { margin-bottom: 30px; } /* padding in sidebar */
|
101 |
</style>
|
102 |
""",
|
103 |
unsafe_allow_html=True,
|
104 |
)
|
105 |
|
|
|
106 |
st.markdown(
|
107 |
"""
|
108 |
<style>
|
|
|
363 |
filter_vals = []
|
364 |
|
365 |
st.divider()
|
366 |
+
|
367 |
# adding github logo
|
368 |
+
st.markdown(f"<div class='spacer'>{github_html}</div>", unsafe_allow_html=True)
|
369 |
+
|
370 |
+
# st.markdown("""
|
371 |
+
# <p class='medium-font-sidebar'>
|
372 |
+
# :left_speech_bubble: <a href='https://github.com/boettiger-lab/ca-30x30/issues' target='_blank'>Report an issue</a>
|
373 |
+
# </p>
|
374 |
+
# """, unsafe_allow_html=True)
|
375 |
+
|
376 |
+
st.markdown(":left_speech_bubble: [Get in touch or report an issue](https://github.com/boettiger-lab/ca-30x30/issues)")
|
377 |
+
|
378 |
+
|
379 |
+
|
380 |
+
|
381 |
|
382 |
# Display CA 30x30 Data
|
383 |
if 'out' not in locals():
|
app/variables.py
CHANGED
@@ -37,6 +37,22 @@ justice40_color = "#00008B" #purple
|
|
37 |
svi_color = "#1bc7c3" #cyan
|
38 |
white = "#FFFFFF"
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
# gap codes 3 and 4 are off by default.
|
41 |
default_boxes = {
|
42 |
0: False,
|
|
|
37 |
svi_color = "#1bc7c3" #cyan
|
38 |
white = "#FFFFFF"
|
39 |
|
40 |
+
|
41 |
+
# github logo
|
42 |
+
github_logo = 'M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z'
|
43 |
+
github_html = f"""
|
44 |
+
<span class='medium-font-sidebar'>
|
45 |
+
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='bi bi-github '
|
46 |
+
style='height:1em;width:1em;fill:currentColor;vertical-align:-0.125em;margin-right:4px;'
|
47 |
+
aria-hidden='true' role='img'>
|
48 |
+
<path d='{github_logo}'></path>
|
49 |
+
</svg>
|
50 |
+
<span>Source Code:</span>
|
51 |
+
<a href='https://github.com/boettiger-lab/ca-30x30' target='_blank'>https://github.com/boettiger-lab/ca-30x30</a>
|
52 |
+
</span>
|
53 |
+
"""
|
54 |
+
|
55 |
+
|
56 |
# gap codes 3 and 4 are off by default.
|
57 |
default_boxes = {
|
58 |
0: False,
|