arnaudmiribel / streamlit-extras

Discover, try, install and share Streamlit re-usable bits we call "extras"!
https://extras.streamlit.app
Apache License 2.0
737 stars 125 forks source link

edit add_logo function #205

Closed davins90 closed 2 months ago

davins90 commented 9 months ago

This pull request introduces enhancements to the add_logo function, enabling users to:

  1. Add a title and subtitle to the logo on the navigation page of a multipage app, providing a more informative and customized sidebar.
  2. Specify the color of the title and subtitle, allowing for better visual integration with the app's theme.
  3. Determine the position of the title and subtitle relative to the logo, with the option to display them either above or below the logo. This additional flexibility caters to different design preferences and requirements.

It's my first pull request, so sorry for any error in case :)

netlify[bot] commented 9 months ago

Deploy Preview for phenomenal-crepe-0effec ready!

Name Link
Latest commit 7e76c1ab6bd1c477c0260ceb5efdbd3eb3c92d39
Latest deploy log https://app.netlify.com/sites/phenomenal-crepe-0effec/deploys/65779908a191fc0008a18f6f
Deploy Preview https://deploy-preview-205--phenomenal-crepe-0effec.netlify.app/extras/app_logo
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

arnaudmiribel commented 2 months ago

Hey @davins90, thanks for your PR! I'm in favour of pointing people towards the new native st.navigation and st.logo features of Streamlit! With them, you'll be able to have a nice logo, and add whatever markdown below you want for title/subtitle.