taquynhnga's picture
Upload footer.py
2ce71e5
raw
history blame
685 Bytes
import streamlit as st
footer="""<style>
a:link , a:visited{
background-color: transparent;
# text-decoration: underline;
}
a:hover, a:active {
color: red;
background-color: transparent;
text-decoration: underline;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: white;
color: black;
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)