Ludovica Schaerf
Duplicate from taquynhnga/CNNs-interpretation-visualization
fcc16aa
raw
history blame
674 Bytes
import streamlit as st
footer="""<style>
a:link , a:visited{
background-color: transparent;
# text-decoration: underline;
}
a:hover, a:active {
color: orange;
background-color: transparent;
text-decoration: underline;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: white;
text-align: center;
}
</style>
<div class="footer">
<p>USER_DEFINED_TEXT <a href="LINK" target="_blank" color="blue">LINKED_TEXT</a></p>
</div>
"""
def add_footer(text, linked_text, link):
custom_footer = footer.replace('USER_DEFINED_TEXT', text).replace('LINKED_TEXT', linked_text).replace('LINK', link)
st.markdown(custom_footer, unsafe_allow_html=True)