lanna_lalala;- commited on
Commit
ed5ff2c
·
1 Parent(s): 425719f

lesson css try

Browse files
Files changed (1) hide show
  1. phase/Student_view/lesson.py +23 -19
phase/Student_view/lesson.py CHANGED
@@ -589,32 +589,36 @@ def _render_lesson():
589
 
590
  # Key Takeaways
591
  if t_text:
592
- st.markdown(t_text.strip(), unsafe_allow_html=True)
593
- else:
594
- st.info("Content coming soon.")
595
-
596
- if t_text:
597
- takeaways = _extract_takeaways(t_text)
598
- if takeaways:
599
- st.markdown("""
600
- <div class="sidebar-card">
601
- <div class="takeaways-section" style="min-height: 150px;">
602
- <div class="takeaways-header">
603
- <span style="color: #10b981;">●</span>
604
- <span>Key Takeaways</span>
605
- </div>
606
- """, unsafe_allow_html=True)
607
 
608
- for takeaway in takeaways:
609
- st.markdown(f"""
610
  <div class="takeaway-item">
611
  <span class="takeaway-check">✓</span>
612
  <span>{takeaway}</span>
613
  </div>
614
- """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
615
 
616
  # Close both divs
617
- st.markdown("</div></div>", unsafe_allow_html=True)
618
 
619
 
620
  # Navigation Buttons OUTSIDE lesson card
 
589
 
590
  # Key Takeaways
591
  if t_text:
592
+ takeaways = _extract_takeaways(t_text)
593
+ if takeaways:
594
+ takeaways_html = """
595
+ <div class="sidebar-card">
596
+ <div class="takeaways-section" style="min-height: 150px;">
597
+ <div class="takeaways-header">
598
+ <span style="color: #10b981;">●</span>
599
+ <span>Key Takeaways</span>
600
+ </div>
601
+ """
 
 
 
 
 
602
 
603
+ for takeaway in takeaways:
604
+ takeaways_html += f"""
605
  <div class="takeaway-item">
606
  <span class="takeaway-check">✓</span>
607
  <span>{takeaway}</span>
608
  </div>
609
+ """
610
+
611
+ takeaways_html += """
612
+ </div>
613
+ </div>
614
+ """
615
+
616
+ st.markdown(takeaways_html, unsafe_allow_html=True)
617
+
618
+
619
 
620
  # Close both divs
621
+ st.markdown("</div></div>", unsafe_allow_html=True)
622
 
623
 
624
  # Navigation Buttons OUTSIDE lesson card