ankanghosh commited on
Commit
96461c0
·
verified ·
1 Parent(s): 2ca64a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -6
app.py CHANGED
@@ -121,11 +121,12 @@ div.stInfo {
121
  min-width: 120px;
122
  margin: 0 5px;
123
  }
124
- /* Acknowledgment section styling */
125
  .acknowledgment-container {
126
- background-color: #fff0f0;
127
  border: 1px solid #e1e4f2;
128
  border-radius: 8px;
 
129
  padding: 15px;
130
  margin: 20px 0;
131
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
@@ -175,8 +176,13 @@ elif st.session_state.init_time is not None:
175
  init_message.empty()
176
  st.session_state.init_time = None
177
 
178
- # Heartfelt acknowledgment section with toggle
179
- st.button("Gratitude and Acknowledgments", on_click=toggle_acknowledgment)
 
 
 
 
 
180
 
181
  if st.session_state.show_acknowledgment:
182
  st.markdown('<div class="acknowledgment-container">', unsafe_allow_html=True)
@@ -320,11 +326,12 @@ For detailed information about the sources used in this application, including s
320
  please visit the "Sources" page in the navigation menu.
321
  """)
322
 
323
- # Citation note at the bottom
324
  st.markdown('<div class="citation-note">', unsafe_allow_html=True)
325
  st.markdown("""
326
  The answers presented in this application are re-presented summaries of relevant passages from the listed citations.
327
  For the original works in their complete and authentic form, users are respectfully encouraged to purchase
328
- the original print or digital works from their respective publishers.
 
329
  """)
330
  st.markdown('</div>', unsafe_allow_html=True)
 
121
  min-width: 120px;
122
  margin: 0 5px;
123
  }
124
+ /* Acknowledgment section styling - improved with gradient */
125
  .acknowledgment-container {
126
+ background: linear-gradient(to right, #fff0f0 0%, #ffffff 100%);
127
  border: 1px solid #e1e4f2;
128
  border-radius: 8px;
129
+ border-left: 4px solid #c0392b;
130
  padding: 15px;
131
  margin: 20px 0;
132
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
 
176
  init_message.empty()
177
  st.session_state.init_time = None
178
 
179
+ # Heartfelt acknowledgment section with toggle - improved button text
180
+ if st.session_state.show_acknowledgment:
181
+ if st.button("Hide Gratitude and Acknowledgments", on_click=toggle_acknowledgment):
182
+ pass
183
+ else:
184
+ if st.button("Show Gratitude and Acknowledgments", on_click=toggle_acknowledgment):
185
+ pass
186
 
187
  if st.session_state.show_acknowledgment:
188
  st.markdown('<div class="acknowledgment-container">', unsafe_allow_html=True)
 
326
  please visit the "Sources" page in the navigation menu.
327
  """)
328
 
329
+ # Citation note at the bottom - improved with support message
330
  st.markdown('<div class="citation-note">', unsafe_allow_html=True)
331
  st.markdown("""
332
  The answers presented in this application are re-presented summaries of relevant passages from the listed citations.
333
  For the original works in their complete and authentic form, users are respectfully encouraged to purchase
334
+ the original print or digital works from their respective publishers. Your purchase helps support these publishers
335
+ who have brought such important spiritual works to the world.
336
  """)
337
  st.markdown('</div>', unsafe_allow_html=True)