Anne31415 commited on
Commit
c7ab214
·
1 Parent(s): 6b3cf69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -6
app.py CHANGED
@@ -99,18 +99,42 @@ def main():
99
  """
100
  st.markdown(hide_streamlit_style, unsafe_allow_html=True)
101
 
102
- # Use columns to layout the title and image
103
- col1, col2 = st.columns([0.8, 0.2]) # Adjust the ratio according to your needs
104
 
105
  with col1:
 
106
  st.markdown("""
107
- <h1 style="float: left; margin:0; padding:0; display: inline;">
108
- Welcome to BinDocs ChatBot!
109
- </h1>
 
 
 
 
 
 
 
110
  """, unsafe_allow_html=True)
111
 
112
  with col2:
113
- st.image('BinDoc Logo (Quadratisch).png', width=150, use_column_width=False) # Adjust the width as needed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
 
116
 
 
99
  """
100
  st.markdown(hide_streamlit_style, unsafe_allow_html=True)
101
 
102
+ # Create a two-column layout with a custom ratio
103
+ col1, col2 = st.columns([0.8, 0.2])
104
 
105
  with col1:
106
+ # Use custom CSS to align the text vertically
107
  st.markdown("""
108
+ <style>
109
+ .title {
110
+ display: flex;
111
+ align-items: center; /* This will vertically center the title in the column */
112
+ height: 100%;
113
+ }
114
+ </style>
115
+ <div class="title">
116
+ <h1>Welcome to BinDocs ChatBot!</h1>
117
+ </div>
118
  """, unsafe_allow_html=True)
119
 
120
  with col2:
121
+ # Align the image to the center of the column
122
+ st.markdown("""
123
+ <style>
124
+ .logo {
125
+ display: flex;
126
+ align-items: center; /* This will vertically center the logo in the column */
127
+ height: 100%;
128
+ }
129
+ img {
130
+ vertical-align: middle; /* Align the image vertically */
131
+ }
132
+ </style>
133
+ <div class="logo">
134
+ <img src="BinDoc Logo (Quadratisch).png" alt="BinDocs Logo" width="100%"> /* Adjust the path and size as needed */
135
+ </div>
136
+ """, unsafe_allow_html=True)
137
+
138
 
139
 
140