Update app.py
Browse files
app.py
CHANGED
|
@@ -180,8 +180,8 @@ def render_chat_messages():
|
|
| 180 |
st.markdown(content)
|
| 181 |
|
| 182 |
def main():
|
| 183 |
-
st.markdown("""
|
| 184 |
-
|
| 185 |
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;700&display=swap');
|
| 186 |
.hindi-text {
|
| 187 |
font-family: 'Noto Sans Devanagari', sans-serif;
|
|
@@ -214,24 +214,22 @@ def main():
|
|
| 214 |
transform: scale(1.03); /* Reduced from 1.05 */
|
| 215 |
}
|
| 216 |
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
}
|
| 231 |
.top-left-button:hover {
|
| 232 |
-
|
| 233 |
-
transform: translateY(-1px);
|
| 234 |
-
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
|
| 235 |
}
|
| 236 |
|
| 237 |
/* Fullscreen styles */
|
|
@@ -256,7 +254,6 @@ def main():
|
|
| 256 |
/* Header background */
|
| 257 |
[data-testid="stHeader"] {
|
| 258 |
background: #1e1e30;
|
| 259 |
-
z-index: 1001;
|
| 260 |
}
|
| 261 |
|
| 262 |
/* Apply background color to the whole Streamlit app */
|
|
@@ -288,7 +285,9 @@ def main():
|
|
| 288 |
<a href="https://iskconmangaluru.com/wp-content/uploads/2021/04/English-Bhagavad-gita-His-Divine-Grace-AC-Bhaktivedanta-Swami-Prabhupada.pdf" target="_blank" class="top-left-button">
|
| 289 |
Source Bhagavad Gita PDF
|
| 290 |
</a>
|
| 291 |
-
|
|
|
|
|
|
|
| 292 |
|
| 293 |
st.title("Ask Krishna! 🦚")
|
| 294 |
st.markdown('<p class="hindi-text" style="color:#666666; font-size:20px;">शांति स्वीकृति से शुरू होती है</p>',
|
|
|
|
| 180 |
st.markdown(content)
|
| 181 |
|
| 182 |
def main():
|
| 183 |
+
st.markdown( """
|
| 184 |
+
<style>
|
| 185 |
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;700&display=swap');
|
| 186 |
.hindi-text {
|
| 187 |
font-family: 'Noto Sans Devanagari', sans-serif;
|
|
|
|
| 214 |
transform: scale(1.03); /* Reduced from 1.05 */
|
| 215 |
}
|
| 216 |
|
| 217 |
+
.top-left-button {
|
| 218 |
+
position: auto;
|
| 219 |
+
top: 50px;
|
| 220 |
+
left: 20px;
|
| 221 |
+
z-index: 100;
|
| 222 |
+
padding: 10px 20px;
|
| 223 |
+
background-color: #e0162e;
|
| 224 |
+
color: white !important;
|
| 225 |
+
text-decoration: none !important;
|
| 226 |
+
border-radius: 50px;
|
| 227 |
+
margin-top: 10px;
|
| 228 |
+
font-size: 16px;
|
| 229 |
+
text-align: center;
|
| 230 |
}
|
| 231 |
.top-left-button:hover {
|
| 232 |
+
background-color: #f7525a;
|
|
|
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
/* Fullscreen styles */
|
|
|
|
| 254 |
/* Header background */
|
| 255 |
[data-testid="stHeader"] {
|
| 256 |
background: #1e1e30;
|
|
|
|
| 257 |
}
|
| 258 |
|
| 259 |
/* Apply background color to the whole Streamlit app */
|
|
|
|
| 285 |
<a href="https://iskconmangaluru.com/wp-content/uploads/2021/04/English-Bhagavad-gita-His-Divine-Grace-AC-Bhaktivedanta-Swami-Prabhupada.pdf" target="_blank" class="top-left-button">
|
| 286 |
Source Bhagavad Gita PDF
|
| 287 |
</a>
|
| 288 |
+
""",
|
| 289 |
+
unsafe_allow_html=True
|
| 290 |
+
)
|
| 291 |
|
| 292 |
st.title("Ask Krishna! 🦚")
|
| 293 |
st.markdown('<p class="hindi-text" style="color:#666666; font-size:20px;">शांति स्वीकृति से शुरू होती है</p>',
|