File "/app/streamlitapp/demos/demo_concept.py", line 33, in <module>
from htbuilder import HtmlElement, div, ul, li, br, hr, a, p, img, styles, classes, fonts
ModuleNotFoundError: No module named 'htbuilder'
htbuilder is specified in requirements.txt, Any suggestion? Thank you
I would like to collaborate with my code, it may not be as pleasing to the eye as the one provided by @chris_klose but mine doesn´t need to import from htbuilder:
ft = """
<style>
a:link , a:visited{
color: #BFBFBF; /* theme's text color hex code at 75 percent brightness*/
background-color: transparent;
text-decoration: none;
}
a:hover, a:active {
color: #0283C3; /* theme's primary color*/
background-color: transparent;
text-decoration: underline;
}
#page-container {
position: relative;
min-height: 10vh;
}
footer{
visibility:hidden;
}
.footer {
position: relative;
left: 0;
top:230px;
bottom: 0;
width: 100%;
background-color: transparent;
color: #808080; /* theme's text color hex code at 50 percent brightness*/
text-align: left; /* you can replace 'left' with 'center' or 'right' if you want*/
}
</style>
<div id="page-container">
<div class="footer">
<p style='font-size: 0.875em;'>Made with <a style='display: inline; text-align: left;' href="https://streamlit.io/" target="_blank">Streamlit</a><br 'style= top:3px;'>
with <img src="https://em-content.zobj.net/source/skype/289/red-heart_2764-fe0f.png" alt="heart" height= "10"/><a style='display: inline; text-align: left;' href="https://github.com/sape94" target="_blank"> by sape94</a></p>
</div>
</div>
"""
st.write(ft, unsafe_allow_html=True)
Chris, thanks for sharing the code. When I replace the streamlit image with mine (local) in myargs list, I get an invalid picture that is never rendered properly.
Can you please suggest changes to your code so that this is fixed? I am fairly new on Javascript.