chenemii commited on
Commit
ea6e90a
·
1 Parent(s): a8f3657

Clean up header design and add logo placeholder

Browse files

- Remove subtitle under Par-ity Project title for cleaner look
- Remove zigzag green striped lines from all step headers
- Add logo placeholder in top right corner (120x60px)
- Simplify step headers to clean typography without decorations
- Update CSS to remove unused step-header styling
- Create space for actual logo replacement in production

Files changed (1) hide show
  1. app/streamlit_app.py +19 -34
app/streamlit_app.py CHANGED
@@ -89,7 +89,7 @@ print("=== End RAG Import Debug ===")
89
  print("")
90
 
91
  # Set page config
92
- st.set_page_config(page_title="Par-ity Project: Golf Swing Analysis 🏌️‍♀️",
93
  page_icon="🏌️‍♀️",
94
  layout="wide",
95
  initial_sidebar_state="collapsed")
@@ -601,29 +601,9 @@ def main():
601
  margin-bottom: 10px;
602
  }
603
 
604
- .step-header {
605
- color: #0B3B0B;
606
- font-family: 'Georgia', serif;
607
- font-weight: bold;
608
- margin: 20px 0;
609
- position: relative;
610
- }
611
 
612
- .step-header::after {
613
- content: "";
614
- display: block;
615
- height: 10px;
616
- background: repeating-linear-gradient(
617
- 135deg,
618
- #1D6F42 0px,
619
- #1D6F42 5px,
620
- #A9DFBF 5px,
621
- #A9DFBF 10px
622
- );
623
- margin: 8px auto 0;
624
- width: 200px;
625
- border-radius: 5px;
626
- }
627
 
628
 
629
 
@@ -645,13 +625,18 @@ def main():
645
  </style>
646
  """, unsafe_allow_html=True)
647
 
648
- # Main title with logo placeholder
649
  st.markdown("""
650
- <div class="main-header">
651
- <h1>⛳ Par-ity Project: Golf Swing Analysis</h1>
652
- <p style="color: #4CAF50; font-size: 18px; margin-top: -10px;">
653
- Founded to address the gender gap in golf participation and access to quality coaching resources
654
- </p>
 
 
 
 
 
655
  </div>
656
  """, unsafe_allow_html=True)
657
 
@@ -808,7 +793,7 @@ def main():
808
 
809
  def render_step_1():
810
  """Step 1: Upload Video"""
811
- st.markdown('<div class="step-header"><h2>Step 1: Upload Your Video</h2></div>', unsafe_allow_html=True)
812
 
813
  st.markdown("**Choose your input method:**")
814
 
@@ -858,7 +843,7 @@ def render_step_1():
858
 
859
  def render_step_2():
860
  """Step 2: Analyzing Video and Pose"""
861
- st.markdown('<div class="step-header"><h2>Step 2: Analyzing Video and Pose</h2></div>', unsafe_allow_html=True)
862
 
863
  st.markdown("🔄 **Processing your swing video...**")
864
  st.markdown("Please wait while we analyze your golf swing.")
@@ -918,7 +903,7 @@ def render_step_2():
918
 
919
  def render_step_3():
920
  """Step 3: Choose Your Options"""
921
- st.markdown('<div class="step-header"><h2>Step 3: Choose Your Next Step</h2></div>', unsafe_allow_html=True)
922
 
923
  if st.session_state.video_analyzed:
924
  data = st.session_state.analysis_data
@@ -973,7 +958,7 @@ def render_step_3():
973
 
974
  def render_step_4():
975
  """Step 4: AI-Powered Improvements"""
976
- st.markdown('<div class="step-header"><h2>Step 4: AI-Powered Improvements</h2></div>', unsafe_allow_html=True)
977
 
978
  if st.session_state.video_analyzed:
979
  data = st.session_state.analysis_data
@@ -1011,7 +996,7 @@ def render_step_4():
1011
 
1012
  def render_step_5():
1013
  """Step 5: Ask the Golf Expert"""
1014
- st.markdown('<div class="step-header"><h2>Step 5: Ask the Golf Expert</h2></div>', unsafe_allow_html=True)
1015
 
1016
  st.markdown("💬 **Ready to answer your swing questions!**")
1017
 
 
89
  print("")
90
 
91
  # Set page config
92
+ st.set_page_config(page_title="Par-ity Project🏌️‍♀️",
93
  page_icon="🏌️‍♀️",
94
  layout="wide",
95
  initial_sidebar_state="collapsed")
 
601
  margin-bottom: 10px;
602
  }
603
 
604
+
 
 
 
 
 
 
605
 
606
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
607
 
608
 
609
 
 
625
  </style>
626
  """, unsafe_allow_html=True)
627
 
628
+ # Main title with logo
629
  st.markdown("""
630
+ <div style="position: relative;">
631
+ <div style="position: absolute; top: 10px; right: 20px; z-index: 100;">
632
+ <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
633
+ style="width: 120px; height: 60px; background: #f0f0f0; border: 2px dashed #ccc; border-radius: 8px; padding: 10px;"
634
+ alt="Your Logo Here">
635
+ <div style="text-align: center; font-size: 12px; color: #666; margin-top: 5px;">Logo Placeholder</div>
636
+ </div>
637
+ <div class="main-header">
638
+ <h1>⛳ Par-ity Project: Golf Swing Analysis</h1>
639
+ </div>
640
  </div>
641
  """, unsafe_allow_html=True)
642
 
 
793
 
794
  def render_step_1():
795
  """Step 1: Upload Video"""
796
+ st.markdown('<h2 style="color: #0B3B0B; font-family: Georgia, serif;">Step 1: Upload Your Video</h2>', unsafe_allow_html=True)
797
 
798
  st.markdown("**Choose your input method:**")
799
 
 
843
 
844
  def render_step_2():
845
  """Step 2: Analyzing Video and Pose"""
846
+ st.markdown('<h2 style="color: #0B3B0B; font-family: Georgia, serif;">Step 2: Analyzing Video and Pose</h2>', unsafe_allow_html=True)
847
 
848
  st.markdown("🔄 **Processing your swing video...**")
849
  st.markdown("Please wait while we analyze your golf swing.")
 
903
 
904
  def render_step_3():
905
  """Step 3: Choose Your Options"""
906
+ st.markdown('<h2 style="color: #0B3B0B; font-family: Georgia, serif;">Step 3: Choose Your Next Step</h2>', unsafe_allow_html=True)
907
 
908
  if st.session_state.video_analyzed:
909
  data = st.session_state.analysis_data
 
958
 
959
  def render_step_4():
960
  """Step 4: AI-Powered Improvements"""
961
+ st.markdown('<h2 style="color: #0B3B0B; font-family: Georgia, serif;">Step 4: AI-Powered Improvements</h2>', unsafe_allow_html=True)
962
 
963
  if st.session_state.video_analyzed:
964
  data = st.session_state.analysis_data
 
996
 
997
  def render_step_5():
998
  """Step 5: Ask the Golf Expert"""
999
+ st.markdown('<h2 style="color: #0B3B0B; font-family: Georgia, serif;">Step 5: Ask the Golf Expert</h2>', unsafe_allow_html=True)
1000
 
1001
  st.markdown("💬 **Ready to answer your swing questions!**")
1002