danielle2003 commited on
Commit
faff61f
·
verified ·
1 Parent(s): 33f411f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -106
app.py CHANGED
@@ -444,7 +444,7 @@ st.markdown(f"""
444
  height: 100%;
445
  background: var(--gradient-primary);
446
  opacity: 0.1;
447
- animation: gradientShift 15s ease infinite;
448
  z-index: -1;
449
  }}
450
  .hero-container {{
@@ -567,7 +567,7 @@ st.markdown(f"""
567
 
568
  .page.active {{
569
  display: block; /* Shown by Streamlit */
570
- margin-top: -250px !important;
571
  }}
572
 
573
  .page-header {{
@@ -756,52 +756,7 @@ st.markdown(f"""
756
  margin-top:-520px;
757
  max-height:400px !important;
758
  }}
759
- /* Footer */
760
- .app-footer {{ /* Renamed to avoid clash with Streamlit's default footer */
761
- background: var(--dark);
762
- padding: 3rem 0 2rem;
763
- margin-top: 5rem;
764
- border-top: 1px solid var(--glass-border);
765
- text-align: center; /* Added for footer bottom alignment */
766
- }}
767
- .footer-content {{
768
- max-width: 1200px;
769
- margin: 0 auto;
770
- padding: 0 2rem;
771
- display: grid;
772
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
773
- gap: 3rem;
774
- }}
775
- .footer-section h3 {{
776
- font-size: 1.2rem;
777
- font-weight: 700;
778
- margin-bottom: 1rem;
779
- background: var(--gradient-accent);
780
- -webkit-background-clip: text;
781
- -webkit-text-fill-color: transparent;
782
- background-clip: text;
783
- }}
784
- .footer-section ul {{
785
- list-style: none;
786
- }}
787
- .footer-section ul li {{
788
- margin-bottom: 0.5rem;
789
- }}
790
- .footer-section ul li a {{
791
- color: var(--gray-light);
792
- text-decoration: none;
793
- transition: color 0.3s ease;
794
- }}
795
- .footer-section ul li a:hover {{
796
- color: var(--white);
797
- }}
798
- .footer-bottom {{
799
- text-align: center;
800
- margin-top: 2rem;
801
- padding-top: 2rem;
802
- border-top: 1px solid var(--glass-border);
803
- color: var(--gray-light);
804
- }}
805
  /* Loading Animation */
806
  .loading {{
807
  display: none; /* Controlled by Streamlit's session state */
@@ -982,63 +937,7 @@ st.markdown(f"""
982
  © 2023 CreditIQ. All rights reserved.
983
  </div>
984
  </footer>
985
- <script>
986
- // Client-side JavaScript for smooth page transitions and mobile menu
987
- function showPage(pageId) {{
988
- const pages = document.querySelectorAll('.page');
989
- pages.forEach(page => page.classList.remove('active'));
990
- const targetPage = document.getElementById(pageId);
991
- if (targetPage) {{
992
- targetPage.classList.add('active');
993
- // Scroll to top of the page
994
- window.scrollTo({{ top: 0, behavior: 'smooth' }});
995
- }}
996
- // Update active link in navigation
997
- const navLinks = document.querySelectorAll('.nav-link');
998
- navLinks.forEach(link => {{
999
- if (link.dataset.page === pageId) {{
1000
- link.classList.add('active');
1001
- }} else {{
1002
- link.classList.remove('active');
1003
- }}
1004
- }});
1005
- // Close mobile menu if open
1006
- const navMenu = document.getElementById('navMenu');
1007
- navMenu.classList.remove('active');
1008
- }}
1009
- // Initialize active page on load
1010
- document.addEventListener('DOMContentLoaded', () => {{
1011
- showPage('home'); // Default to home page
1012
- }});
1013
- // Mobile menu toggle
1014
- document.getElementById('mobileMenuBtn').addEventListener('click', () => {{
1015
- document.getElementById('navMenu').classList.toggle('active');
1016
- }});
1017
-
1018
- // Navbar scroll effect
1019
- window.addEventListener('scroll', () => {{
1020
- const navbar = document.getElementById('navbar');
1021
- if (window.scrollY > 50) {{
1022
- navbar.classList.add('scrolled');
1023
- }} else {{
1024
- navbar.classList.remove('scrolled');
1025
- }}
1026
- }});
1027
-
1028
- // Parallax effect for floating shapes
1029
- document.addEventListener('mousemove', (e) => {{
1030
- const shapes = document.querySelectorAll('.shape');
1031
- const mouseX = e.clientX / window.innerWidth;
1032
- const mouseY = e.clientY / window.innerHeight;
1033
-
1034
- shapes.forEach((shape, index) => {{
1035
- const speed = (index + 1) * 0.02;
1036
- const x = (mouseX - 0.5) * speed * 100;
1037
- const y = (mouseY - 0.5) * speed * 100;
1038
- shape.style.transform = `translate(${{x}}px, ${{y}}px)`;
1039
- }});
1040
- }});
1041
- </script>
1042
  </body>
1043
  </html>
1044
  """, unsafe_allow_html=True)
@@ -1234,7 +1133,6 @@ st.markdown("""
1234
  background: var(--glass-bg); backdrop-filter: blur(20px);
1235
  border: 1px solid var(--glass-border); border-radius: 32px;
1236
  padding: 3rem; box-shadow: var(--shadow-strong);
1237
- margin-top:-150px !important;
1238
  width:60%;
1239
  align-self: center;
1240
  color:blue;
 
444
  height: 100%;
445
  background: var(--gradient-primary);
446
  opacity: 0.1;
447
+ /*animation: gradientShift 15s ease infinite;*/
448
  z-index: -1;
449
  }}
450
  .hero-container {{
 
567
 
568
  .page.active {{
569
  display: block; /* Shown by Streamlit */
570
+ margin-top: -80px !important;
571
  }}
572
 
573
  .page-header {{
 
756
  margin-top:-520px;
757
  max-height:400px !important;
758
  }}
759
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
760
  /* Loading Animation */
761
  .loading {{
762
  display: none; /* Controlled by Streamlit's session state */
 
937
  &copy; 2023 CreditIQ. All rights reserved.
938
  </div>
939
  </footer>
940
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
941
  </body>
942
  </html>
943
  """, unsafe_allow_html=True)
 
1133
  background: var(--glass-bg); backdrop-filter: blur(20px);
1134
  border: 1px solid var(--glass-border); border-radius: 32px;
1135
  padding: 3rem; box-shadow: var(--shadow-strong);
 
1136
  width:60%;
1137
  align-self: center;
1138
  color:blue;