Update app.py
Browse files
app.py
CHANGED
|
@@ -136,7 +136,28 @@ def auth():
|
|
| 136 |
|
| 137 |
def main():
|
| 138 |
st.set_page_config(page_title="Headache Diary App", page_icon="🧠", layout="wide")
|
| 139 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
auth()
|
| 142 |
|
|
|
|
| 136 |
|
| 137 |
def main():
|
| 138 |
st.set_page_config(page_title="Headache Diary App", page_icon="🧠", layout="wide")
|
| 139 |
+
header = st.container()
|
| 140 |
+
|
| 141 |
+
# Use columns to place the title and image side by side
|
| 142 |
+
col1, col2 = header.columns([1, 1])
|
| 143 |
+
|
| 144 |
+
with col1:
|
| 145 |
+
st.title("Yashogamya's Headache Diary App")
|
| 146 |
+
|
| 147 |
+
with col2:
|
| 148 |
+
st.image("yashogamya.png", width=200) # Adjust width as needed
|
| 149 |
+
|
| 150 |
+
# Custom CSS to align the image vertically with the title
|
| 151 |
+
st.markdown("""
|
| 152 |
+
<style>
|
| 153 |
+
[data-testid="stImage"] {
|
| 154 |
+
display: flex;
|
| 155 |
+
justify-content: center;
|
| 156 |
+
align-items: center;
|
| 157 |
+
height: 100%;
|
| 158 |
+
}
|
| 159 |
+
</style>
|
| 160 |
+
""", unsafe_allow_html=True)
|
| 161 |
|
| 162 |
auth()
|
| 163 |
|