bparrino commited on
Commit
30ec6cb
·
verified ·
1 Parent(s): 58e9c81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -16
app.py CHANGED
@@ -107,6 +107,11 @@ st.markdown("""
107
  margin: 20px 0;
108
  text-align: center;
109
  color: white;
 
 
 
 
 
110
  }
111
  .consultation-cta h4 {
112
  color: white;
@@ -170,7 +175,7 @@ TRAINING_FORMATS = {
170
  "engagement": "High",
171
  "scalability": "High",
172
  "interaction": "Low",
173
- "sample_link": "https://elearningindustry.com/what-is-video-based-learning",
174
  "roi_metrics": "85% knowledge retention, 60% faster skill acquisition"
175
  },
176
  "powerpoint_presentations": {
@@ -550,7 +555,7 @@ with col2:
550
 
551
  # Add sample link if available
552
  if "sample_link" in format_data:
553
- st.markdown(f'<a href="{format_data["sample_link"]}" target="_blank" class="sample-link">View Sample</a>', unsafe_allow_html=True)
554
  st.markdown("<br>", unsafe_allow_html=True)
555
 
556
  # Show ROI metrics
@@ -581,7 +586,7 @@ with col2:
581
  st.markdown(f'{format_data["description"]}')
582
 
583
  if "sample_link" in format_data:
584
- st.markdown(f'<a href="{format_data["sample_link"]}" target="_blank" class="sample-link">View Sample</a>', unsafe_allow_html=True)
585
 
586
  if "roi_metrics" in format_data:
587
  st.markdown(f'<div style="font-size: 0.85rem; color: #666; margin-top: 5px;"><strong>Expected Results:</strong> {format_data["roi_metrics"]}</div>', unsafe_allow_html=True)
@@ -606,10 +611,13 @@ with col2:
606
  st.success("Excellent choice! Our learning design experts will be in touch within 24 hours.")
607
 
608
  with col_b2:
609
- # Schedule consultation button
610
- if st.button("Schedule Free Consultation with the Experts at Motivation Technologies!", use_container_width=True):
611
- st.info("Opening consultation page...")
612
- st.markdown('<script>window.open("https://www.motechhq.com/connect/", "_blank");</script>', unsafe_allow_html=True)
 
 
 
613
 
614
  # New analysis button (full width, secondary action)
615
  st.markdown('<div style="margin-top: 10px;">', unsafe_allow_html=True)
@@ -621,24 +629,22 @@ with col2:
621
  st.markdown('</div>', unsafe_allow_html=True)
622
 
623
  else:
624
- # Placeholder content when no recommendations yet
 
625
  st.markdown('<div class="placeholder-area">', unsafe_allow_html=True)
626
- st.markdown('<h3>Your Recommendations Will Appear Here</h3>')
627
  st.markdown('<p>Complete the form and click "Get My Recommendations" to see your personalized training format suggestions.</p>')
628
  st.markdown('</div>', unsafe_allow_html=True)
 
629
 
630
- # Consultation CTA in placeholder area
631
  st.markdown('<div class="section-spacer"></div>', unsafe_allow_html=True)
632
  st.markdown("""
633
- <div class="consultation-cta">
634
  <h4>Want Expert Guidance?</h4>
635
- <p style="margin-bottom: 15px;">Get personalized recommendations from our learning design experts</p>
636
  </div>
637
  """, unsafe_allow_html=True)
638
-
639
- if st.button("Schedule Free Consultation with the Experts at Motivation Technologies!", use_container_width=True, key="consultation_placeholder"):
640
- st.info("Opening consultation page...")
641
- st.markdown('<script>window.open("https://www.motechhq.com/connect/", "_blank");</script>', unsafe_allow_html=True)
642
 
643
  # Footer
644
  st.markdown('<div class="footnote">', unsafe_allow_html=True)
 
107
  margin: 20px 0;
108
  text-align: center;
109
  color: white;
110
+ cursor: pointer;
111
+ transition: background-color 0.3s ease;
112
+ }
113
+ .consultation-cta:hover {
114
+ background-color: #45a049;
115
  }
116
  .consultation-cta h4 {
117
  color: white;
 
175
  "engagement": "High",
176
  "scalability": "High",
177
  "interaction": "Low",
178
+ "sample_link": "https://youtu.be/HPUWGE9B_UQ?si=a4vr6BL43eMCR9Th",
179
  "roi_metrics": "85% knowledge retention, 60% faster skill acquisition"
180
  },
181
  "powerpoint_presentations": {
 
555
 
556
  # Add sample link if available
557
  if "sample_link" in format_data:
558
+ st.markdown(f'<a href="{format_data["sample_link"]}" target="_blank" class="sample-link">🔗 View Sample</a>', unsafe_allow_html=True)
559
  st.markdown("<br>", unsafe_allow_html=True)
560
 
561
  # Show ROI metrics
 
586
  st.markdown(f'{format_data["description"]}')
587
 
588
  if "sample_link" in format_data:
589
+ st.markdown(f'<a href="{format_data["sample_link"]}" target="_blank" class="sample-link">🔗 View Sample</a>', unsafe_allow_html=True)
590
 
591
  if "roi_metrics" in format_data:
592
  st.markdown(f'<div style="font-size: 0.85rem; color: #666; margin-top: 5px;"><strong>Expected Results:</strong> {format_data["roi_metrics"]}</div>', unsafe_allow_html=True)
 
611
  st.success("Excellent choice! Our learning design experts will be in touch within 24 hours.")
612
 
613
  with col_b2:
614
+ # Clickable consultation CTA
615
+ st.markdown("""
616
+ <div class="consultation-cta" onclick="window.open('https://www.motechhq.com/connect/', '_blank');">
617
+ <h4>Want Expert Guidance?</h4>
618
+ <p style="margin-bottom: 0;">Schedule a free consultation with the learning design experts at Motivation Technologies today!</p>
619
+ </div>
620
+ """, unsafe_allow_html=True)
621
 
622
  # New analysis button (full width, secondary action)
623
  st.markdown('<div style="margin-top: 10px;">', unsafe_allow_html=True)
 
629
  st.markdown('</div>', unsafe_allow_html=True)
630
 
631
  else:
632
+ # Show placeholder inside results container
633
+ st.markdown('<div class="results-container">', unsafe_allow_html=True)
634
  st.markdown('<div class="placeholder-area">', unsafe_allow_html=True)
635
+ st.markdown('<h3>🎯 Your Recommendations Will Appear Here</h3>')
636
  st.markdown('<p>Complete the form and click "Get My Recommendations" to see your personalized training format suggestions.</p>')
637
  st.markdown('</div>', unsafe_allow_html=True)
638
+ st.markdown('</div>', unsafe_allow_html=True)
639
 
640
+ # Consultation CTA outside the results container
641
  st.markdown('<div class="section-spacer"></div>', unsafe_allow_html=True)
642
  st.markdown("""
643
+ <div class="consultation-cta" onclick="window.open('https://www.motechhq.com/connect/', '_blank');">
644
  <h4>Want Expert Guidance?</h4>
645
+ <p style="margin-bottom: 0;">Schedule a free consultation with the learning design experts at Motivation Technologies today!</p>
646
  </div>
647
  """, unsafe_allow_html=True)
 
 
 
 
648
 
649
  # Footer
650
  st.markdown('<div class="footnote">', unsafe_allow_html=True)