Wajahat698 commited on
Commit
11b405b
·
verified ·
1 Parent(s): e447a05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +90 -3
app.py CHANGED
@@ -551,7 +551,7 @@ def delete_document(user_id, doc_id):
551
  def side():
552
  with st.sidebar:
553
 
554
- with st.sidebar.expander("TrustLogic®", expanded=False):
555
  st.image("Trust Logic_Wheel_RGB_Standard.png")
556
 
557
  st.markdown(
@@ -579,7 +579,7 @@ def side():
579
 
580
  st.sidebar.markdown('<hr style="border: 2px solid rgb(255, 153, 0); width: 80%; margin: 20px auto;">', unsafe_allow_html=True)
581
 
582
- with st.sidebar.expander("Trust Buckets® and Trust Builders®", expanded=False):
583
  image_files = [
584
  ("Bucket_STABILITY.png"),
585
  ("Bucket_DEVELOPMENT.png"),
@@ -658,23 +658,110 @@ def side():
658
 
659
  <h3 class="development">Development Trust:</h3>
660
  <p>Why can I trust you to develop well in the future?</p>
661
-
 
 
 
662
  <h3 class="relationship">Relationship Trust:</h3>
663
  <p>What appealing relationship qualities can I trust you for?</p>
 
 
 
 
664
 
665
  <h3 class="benefit">Benefit Trust:</h3>
666
  <p>What benefits can I trust you for?</p>
 
 
 
 
 
 
667
 
668
  <h3 class="vision">Vision Trust:</h3>
669
  <p>What Vision and Values can I trust you for?</p>
 
 
 
 
 
 
 
670
 
671
  <h3 class="competence">Competence Trust:</h3>
672
  <p>What competencies can I trust you for?</p>
 
 
 
 
 
 
 
 
673
  """, unsafe_allow_html=True
674
  )
675
  st.markdown("For detailed descriptions, visit [Academy](https://www.trustifier.ai/account/academy)")
676
 
 
 
 
 
 
 
 
 
677
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
678
 
679
  st.header("TrustVault®")
680
  st.sidebar.markdown("""
 
551
  def side():
552
  with st.sidebar:
553
 
554
+ with st.sidebar.expander("**TrustLogic®**, expanded=False):
555
  st.image("Trust Logic_Wheel_RGB_Standard.png")
556
 
557
  st.markdown(
 
579
 
580
  st.sidebar.markdown('<hr style="border: 2px solid rgb(255, 153, 0); width: 80%; margin: 20px auto;">', unsafe_allow_html=True)
581
 
582
+ with st.sidebar.expander("**Trust Buckets® and Trust Builders®**", expanded=False):
583
  image_files = [
584
  ("Bucket_STABILITY.png"),
585
  ("Bucket_DEVELOPMENT.png"),
 
658
 
659
  <h3 class="development">Development Trust:</h3>
660
  <p>Why can I trust you to develop well in the future?</p>
661
+ <h5>Examples</h5>
662
+ <p>World Vision's Every Last One campaign was a $1 billion plan to equip and empower 60 million of the world's most vulnerable people, initiated in 2023. This initiative supports the development of underprivileged communities. </p>
663
+ <p>World Vision's clean water initiatives provide access to safe drinking water for 5 million people each year. This enhances health and community development.</p>
664
+
665
  <h3 class="relationship">Relationship Trust:</h3>
666
  <p>What appealing relationship qualities can I trust you for?</p>
667
+ <h5>Examples</h5>
668
+ <p>Maria, a community leader in Honduras, shares how World Vision's support has transformed her village, illustrating the positive relationships built through their programs. This testimonial highlights community impact. </p>
669
+ <p>In 2023, World Vision involved 3,500 community members in decision-making processes, empowering them to drive local initiatives. This empowerment enhances community participation and ownership</p>
670
+
671
 
672
  <h3 class="benefit">Benefit Trust:</h3>
673
  <p>What benefits can I trust you for?</p>
674
+ <p>In 2023, 89% of World Vision's total operating expenses were directed towards programs benefiting children, families, and communities in need. This prioritizes direct impact for vulnerable populations. </p>
675
+ <p>The organization invested $150 million in sustainable agriculture programs across 35 countries, impacting over 2 million farmers. This improves food security for vulnerable communities</p>
676
+
677
+
678
+
679
+
680
 
681
  <h3 class="vision">Vision Trust:</h3>
682
  <p>What Vision and Values can I trust you for?</p>
683
+
684
+ <p>World Vision's "Future Generations Initiative 2023-2025" aims to equip 1 million youth with skills for sustainable livelihoods. This prepares young people for future challenges </p>
685
+ <p>With the "Child Well-being Vision 2023," World Vision is committed to improving the quality of life for 50 million children through integrated services. This ensures holistic development for children </p>
686
+
687
+
688
+
689
+
690
 
691
  <h3 class="competence">Competence Trust:</h3>
692
  <p>What competencies can I trust you for?</p>
693
+
694
+ <p>In 2023, we successfully implemented 150 projects across 45 countries, directly impacting over 5 million lives. This showcases our ability to execute large-scale initiatives effectively</p>
695
+ <p>We received the 2023 UN Global Health Excellence Award for our innovative health programs in Africa. This recognition affirms our leadership in health interventions</p>
696
+
697
+
698
+
699
+
700
+
701
  """, unsafe_allow_html=True
702
  )
703
  st.markdown("For detailed descriptions, visit [Academy](https://www.trustifier.ai/account/academy)")
704
 
705
+ image_files = [
706
+ ("Bucket_STABILITY.png"),
707
+ ("Bucket_DEVELOPMENT.png"),
708
+ ("Bucket_RELATIONSHIP.png"),
709
+ ("Bucket_BENEFIT.png"),
710
+ ("Bucket_VISION.png"),
711
+ ("Bucket_COMPETENCE.png"),
712
+ ]
713
 
714
+ # CSS for layout and hover effect in Streamlit
715
+ st.markdown(
716
+ """
717
+ <style>
718
+ .image-container {
719
+ display: flex;
720
+ justify-content: center;
721
+ gap: 20px;
722
+ }
723
+ .image-wrapper {
724
+ text-align: center;
725
+ position: relative;
726
+ }
727
+ .image-wrapper img {
728
+ width: 100px;
729
+ transition: transform 0.3s;
730
+ }
731
+ .image-wrapper img:hover {
732
+ transform: scale(1.1);
733
+ }
734
+ .hover-text {
735
+ position: absolute;
736
+ top: 110%;
737
+ left: 50%;
738
+ transform: translateX(-50%);
739
+ opacity: 0;
740
+ transition: opacity 0.3s;
741
+ font-size: 14px;
742
+ font-weight: bold;
743
+ }
744
+ .image-wrapper:hover .hover-text {
745
+ opacity: 1;
746
+ }
747
+ </style>
748
+ """,
749
+ unsafe_allow_html=True,
750
+ )
751
+
752
+ # Create a horizontal layout using Streamlit's columns
753
+ cols = st.columns(len(image_files))
754
+
755
+ # Display each image in its respective column
756
+ for idx, (img_path) in enumerate(image_files):
757
+ with cols[idx]:
758
+ # Open the image (assuming it's pre-resized)
759
+ img = Image.open(img_path)
760
+
761
+ # Display the image with caption and hover effect using use_container_width=True
762
+ st.image(img,use_container_width=True)
763
+
764
+ st.sidebar.markdown('<hr style="border: 2px solid rgb(255, 153, 0); width: 80%; margin: 20px auto;">', unsafe_allow_html=True)
765
 
766
  st.header("TrustVault®")
767
  st.sidebar.markdown("""