Wajahat698 commited on
Commit
511cef9
·
verified ·
1 Parent(s): 8668a19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +133 -3
app.py CHANGED
@@ -502,10 +502,8 @@ def download_link(content, filename):
502
 
503
  def side():
504
  with st.sidebar:
505
- st.image("Trust Logic_Wheel_RGB_Standard.png")
506
- st.header("Let's create something great.")
507
 
508
- with st.sidebar.expander("Explore", expanded=False):
509
  st.markdown(
510
  "Our minds assess trust through Six Buckets of Trust® and determine their importance and order in a given situation. We then evaluate why we can or can’t trust someone in these Buckets. Trustifier.ai®, trained on 20 years of TrustLogic® application, helps you identify reasons why your audience can trust you in each Bucket and create trust-optimised solutions. It’s copy AI with substance."
511
  )
@@ -540,7 +538,139 @@ def side():
540
  """, unsafe_allow_html=True
541
  )
542
  st.markdown("For detailed descriptions, visit [Academy](https://www.trustifier.ai/account/academy)")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
543
 
 
 
 
 
544
  st.header("Upload Data source")
545
 
546
  with st.form(key="upload_form"):
 
502
 
503
  def side():
504
  with st.sidebar:
 
 
505
 
506
+ with st.sidebar.expander("TrustLogic®", expanded=False):
507
  st.markdown(
508
  "Our minds assess trust through Six Buckets of Trust® and determine their importance and order in a given situation. We then evaluate why we can or can’t trust someone in these Buckets. Trustifier.ai®, trained on 20 years of TrustLogic® application, helps you identify reasons why your audience can trust you in each Bucket and create trust-optimised solutions. It’s copy AI with substance."
509
  )
 
538
  """, unsafe_allow_html=True
539
  )
540
  st.markdown("For detailed descriptions, visit [Academy](https://www.trustifier.ai/account/academy)")
541
+ st.image("Trust Logic_Wheel_RGB_Standard.png
542
+ st.sidebar.markdown('<hr style="border: 2px solid rgb(255, 153, 0); width: 80%; margin: 20px auto;">', unsafe_allow_html=True)
543
+
544
+ with st.sidebar.expander("Trust Buckets® and Trust Builders®", expanded=False):
545
+ st.markdown(
546
+ "Our minds assess trust through Six Buckets of Trust® and determine their importance and order in a given situation. We then evaluate why we can or can’t trust someone in these Buckets. Trustifier.ai®, trained on 20 years of TrustLogic® application, helps you identify reasons why your audience can trust you in each Bucket and create trust-optimised solutions. It’s copy AI with substance."
547
+ )
548
+ st.markdown(
549
+ """
550
+ <style>
551
+ .stability { color: rgb(7, 55, 99); font-size: 24px; font-weight: bold; }
552
+ .development { color: rgb(241, 194, 50); font-size: 24px; font-weight: bold; }
553
+ .relationship { color: rgb(204, 0, 0); font-size: 24px; font-weight: bold; }
554
+ .benefit { color: rgb(56, 118, 29); font-size: 24px; font-weight: bold; }
555
+ .vision { color: rgb(255, 153, 0); font-size: 24px; font-weight: bold; }
556
+ .competence { color: rgb(111, 168, 220); font-size: 24px; font-weight: bold; }
557
+ </style>
558
+
559
+ <h3 class="stability">Stability Trust:</h3>
560
+ <p>Why can I trust you to have built a strong and stable foundation?</p>
561
+
562
+ <h3 class="development">Development Trust:</h3>
563
+ <p>Why can I trust you to develop well in the future?</p>
564
+
565
+ <h3 class="relationship">Relationship Trust:</h3>
566
+ <p>What appealing relationship qualities can I trust you for?</p>
567
+
568
+ <h3 class="benefit">Benefit Trust:</h3>
569
+ <p>What benefits can I trust you for?</p>
570
+
571
+ <h3 class="vision">Vision Trust:</h3>
572
+ <p>What Vision and Values can I trust you for?</p>
573
+
574
+ <h3 class="competence">Competence Trust:</h3>
575
+ <p>What competencies can I trust you for?</p>
576
+ """, unsafe_allow_html=True
577
+ )
578
+ st.markdown("For detailed descriptions, visit [Academy](https://www.trustifier.ai/account/academy)")
579
+ image_files = [
580
+ ("Bucket_STABILITY.png", "Stability"),
581
+ ("Bucket_DEVELOPMENT.png", "Development"),
582
+ ("Bucket_RELATIONSHIP.png", "Relationship"),
583
+ ("Bucket_BENEFIT.png", "Benefit"),
584
+ ("Bucket_VISION.png", "Vision"),
585
+ ("Bucket_COMPETENCE.png", "Competence"),]
586
+ st.markdown(
587
+ """
588
+ <style>
589
+ :root {
590
+ --bg-color-light: white;
591
+ --bg-color-dark: black;
592
+ }
593
+
594
+ .image-container {
595
+ display: flex;
596
+ justify-content: center;
597
+ align-items: flex-start;
598
+ gap: 20px;
599
+ margin-top: 20px;
600
+ }
601
+
602
+ .image-wrapper {
603
+ position: relative;
604
+ text-align: center;
605
+ }
606
+
607
+ .image-wrapper img {
608
+ width: 100px;
609
+ height: auto;
610
+ background-color: var(--bg-color-light); /* Default light mode */
611
+ padding: 10px;
612
+ border-radius: 8px;
613
+ transition: transform 0.3s ease, background-color 0.3s ease;
614
+ }
615
+
616
+ [data-theme="dark"] .image-wrapper img {
617
+ background-color: var(--bg-color-dark); /* Adapt to dark mode */
618
+ }
619
+
620
+ .image-wrapper img:hover {
621
+ transform: scale(1.1); /* Zoom effect on hover */
622
+ cursor: pointer;
623
+ }
624
+
625
+ .hover-text {
626
+ position: absolute;
627
+ top: 50%;
628
+ left: 50%;
629
+ transform: translate(-50%, -50%);
630
+ color: rgba(0, 0, 0, 0); /* Invisible by default */
631
+ font-weight: bold;
632
+ font-size: 14px;
633
+ transition: color 0.3s ease;
634
+ }
635
+
636
+ [data-theme="dark"] .hover-text {
637
+ color: rgba(255, 255, 255, 0); /* Invisible in dark mode by default */
638
+ }
639
+
640
+ .image-wrapper:hover .hover-text {
641
+ color: rgba(0, 0, 0, 1); /* Visible on hover */
642
+ }
643
+
644
+ [data-theme="dark"] .image-wrapper:hover .hover-text {
645
+ color: rgba(255, 255, 255, 1); /* Visible in dark mode on hover */
646
+ }
647
+ </style>
648
+ """,
649
+ unsafe_allow_html=True,
650
+ )
651
+
652
+ # Dynamically generate the HTML for images and hover text
653
+ image_html = '<div class="image-container">'
654
+ for image_path, label in image_files:
655
+ image_html += f"""
656
+ <div class="image-wrapper">
657
+ <img src="data:image/png;base64,{open(image_path, 'rb').read().hex()}" alt="{label}">
658
+ <div class="hover-text">{label}</div>
659
+ </div>
660
+ """
661
+ image_html += '</div>'
662
+
663
+ # Render the HTML in Streamlit
664
+ st.markdown(image_html, unsafe_allow_html=True)
665
+ st.sidebar.markdown('<hr style="border: 2px solid rgb(255, 153, 0); width: 80%; margin: 20px auto;">', unsafe_allow_html=True)
666
+
667
+
668
+
669
 
670
+
671
+
672
+
673
+
674
  st.header("Upload Data source")
675
 
676
  with st.form(key="upload_form"):