Hi!
I had created my portfolio using Streamlit last year. It is nothing fancy but I was looking to build something quickly and getting it deployed.
https://streamlit-portfolio.herokuapp.com/
Any feedback or room for improvement is appreciated
Hi!
I had created my portfolio using Streamlit last year. It is nothing fancy but I was looking to build something quickly and getting it deployed.
https://streamlit-portfolio.herokuapp.com/
Any feedback or room for improvement is appreciated
Hi there Rahul. This is a really great looking portfolio! I’m really new to Streamlit so I was wondering how you achieved adding different fonts and font colours?
Hi! Thanks! I just used standard inline CSS.
st.markdown( ''' <h2 style = "color: blue"> Hello World! </h2> ''', unsafe_allow_html= True)
For the fonts, I used the standard CSS fonts but I think you can also include google fonts by including link tags at the beginning of your program.
st.markdown(''' <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Akaya+Telivigala&display=swap" rel="stylesheet">''', unsafe_allow_html = True)
st.markdown(''' <div style=" 1. font-family: 'Akaya Telivigala', cursive;" ''', unsafe_allow_html = True)
Although I have not used the above, I believe it should work. I also recommend using triple quotes ‘’’ ‘’’ instead of double/single quotes when writing markdown. Do not forget to set unsafe_allow_html tag to True when you want to render HTML/CSS, it is set to False by default.
Thanks so much Rahul, that’s exactly what I needed!!!
hi!
i just saw your portfolio . it’s really impressive.
i am making a “About myself” section in of my streamlit project and i want to put a picture of myself in a block.
can you please help me how to do this?
Hi! Thanks!
I am not sure I understand what you mean by block, do you mean inside a div container?
Streamlit has a method to display images
streamlit.image(image = , width =)
From the docs:
image ( numpy.ndarray , [ numpy.ndarray ] , BytesIO , str , or [ str ] )
width ( int or None )
I don’t think there is a way to align the images/ add margin but you could use
HTML for it.
streamlit.markdown(''' HTML CODE''', unsafe_allow_html = True)
Thank you Rahul for the immediate response. Yeah I meant about giving an image inside a div block. Will try your idea.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.