a sidebar with a company logo and name
To upload files, please first save the app
import streamlit as st
st.sidebar.title("")
st.sidebar.button("Button")
def add_logo():
st.markdown(
"""
<style>
[data-testid="stSidebar"] {
background-image: url(http://placekitten.com/200/200);
background-repeat: no-repeat;
padding-top: 120px;
background-position: 20px 20px;
}
[data-testid="stSidebar"]::before {
content: "My Company Name";
margin-left: 20px;
margin-top: 20px;
font-size: 30px;
position: relative;
top: 100px;
}
</style>
""",
unsafe_allow_html=True,
)
st.title("Show the sidebar to see the logo")
add_logo()
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?