NSamson1 commited on
Commit
788d8a7
Β·
verified Β·
1 Parent(s): 65df655

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +8 -14
src/streamlit_app.py CHANGED
@@ -16,7 +16,7 @@ st.set_page_config(
16
  initial_sidebar_state="expanded"
17
  )
18
 
19
- # COMPLETELY CLEAN CSS - NO ANIMATIONS, NO SHAKING, NO MOVEMENT
20
  st.markdown("""
21
  <style>
22
  @import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');
@@ -97,7 +97,7 @@ st.markdown("""
97
  font-family: 'Comic Neue', cursive;
98
  }
99
 
100
- .completion-celebration {
101
  text-align: center;
102
  padding: 40px;
103
  background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
@@ -113,14 +113,10 @@ st.markdown("""
113
  text-align: center;
114
  margin: 10px 0;
115
  }
116
-
117
- /* REMOVED ALL ANIMATION KEYFRAMES */
118
- /* REMOVED ALL TRANSFORM PROPERTIES */
119
- /* REMOVED ALL ANIMATION PROPERTIES */
120
  </style>
121
  """, unsafe_allow_html=True)
122
 
123
- # NO JAVASCRIPT FOR ANIMATIONS - completely removed
124
  st.markdown("""
125
  <script>
126
  // Simple auto progression - NO ANIMATIONS
@@ -335,9 +331,8 @@ with col1:
335
  if st.button("🎯 Submit Answer", key=f"submit_{st.session_state.question_index}", use_container_width=True):
336
  st.session_state.last_activity = time.time()
337
  if str(user_ans).strip().lower() == str(question['answer']).strip().lower():
338
- # SIMPLE CELEBRATION - just Streamlit balloons and message
339
- st.success("πŸŽ‰βœ¨ CORRECT! Amazing work! βœ¨πŸŽ‰")
340
- st.balloons() # Only Streamlit balloons - no CSS animations
341
 
342
  success_messages = [
343
  "🌟 You're a math superstar!",
@@ -395,9 +390,9 @@ with col1:
395
  elif subset_df.empty:
396
  st.warning("⚠️ No questions available in this category. Try another one!")
397
  else:
398
- # COMPLETION MESSAGE - NO ANIMATIONS
399
  st.markdown("""
400
- <div class="completion-celebration">
401
  <div style="font-size: 60px; margin-bottom: 20px;">
402
  πŸ†
403
  </div>
@@ -410,8 +405,7 @@ with col1:
410
  </div>
411
  """, unsafe_allow_html=True)
412
 
413
- # Only show balloons for completion
414
- st.balloons()
415
 
416
  # Auto-progress logic
417
  if st.session_state.auto_progress:
 
16
  initial_sidebar_state="expanded"
17
  )
18
 
19
+ # COMPLETELY CLEAN CSS - NO ANIMATIONS, NO CELEBRATIONS, NO MOVEMENT
20
  st.markdown("""
21
  <style>
22
  @import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');
 
97
  font-family: 'Comic Neue', cursive;
98
  }
99
 
100
+ .completion-message {
101
  text-align: center;
102
  padding: 40px;
103
  background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
 
113
  text-align: center;
114
  margin: 10px 0;
115
  }
 
 
 
 
116
  </style>
117
  """, unsafe_allow_html=True)
118
 
119
+ # NO JAVASCRIPT AT ALL - completely removed
120
  st.markdown("""
121
  <script>
122
  // Simple auto progression - NO ANIMATIONS
 
331
  if st.button("🎯 Submit Answer", key=f"submit_{st.session_state.question_index}", use_container_width=True):
332
  st.session_state.last_activity = time.time()
333
  if str(user_ans).strip().lower() == str(question['answer']).strip().lower():
334
+ # SIMPLE SUCCESS MESSAGE - NO ANIMATIONS, NO BALLOONS
335
+ st.success("βœ… CORRECT! Great job!")
 
336
 
337
  success_messages = [
338
  "🌟 You're a math superstar!",
 
390
  elif subset_df.empty:
391
  st.warning("⚠️ No questions available in this category. Try another one!")
392
  else:
393
+ # COMPLETION MESSAGE - NO ANIMATIONS, NO BALLOONS
394
  st.markdown("""
395
+ <div class="completion-message">
396
  <div style="font-size: 60px; margin-bottom: 20px;">
397
  πŸ†
398
  </div>
 
405
  </div>
406
  """, unsafe_allow_html=True)
407
 
408
+ # NO BALLOONS - completely removed
 
409
 
410
  # Auto-progress logic
411
  if st.session_state.auto_progress: