adnaan05 KhaqanNasir commited on
Commit
b437584
·
verified ·
1 Parent(s): bb31e81

Update app.py (#26)

Browse files

- Update app.py (c5f0daa17d0e26cf0ca916bb515a46029d3d7428)


Co-authored-by: Muhammad Khaqan Nasir <[email protected]>

Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -15,7 +15,7 @@ st.set_page_config(
15
  # Custom CSS for modern styling
16
  st.markdown("""
17
  <style>
18
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
19
 
20
  body {
21
  font-family: 'Poppins', sans-serif;
@@ -122,11 +122,11 @@ sys.path.append(str(src_path))
122
  # Enhanced Sidebar navigation with icons
123
  st.sidebar.markdown("""
124
  <div style="text-align: center; margin-bottom: 2rem;">
125
- <div style="font-size: 2.5rem; margin-bottom: 0.5rem;">🛡️</div>
126
- <h1 style="color: #4B5EAA; font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.2;">
127
  TruthCheck
128
  </h1>
129
- <p style="color: #666; font-size: 0.9rem; margin: 0; font-weight: 300; line-height: 1.3;">
130
  Advanced Fake News Detector
131
  </p>
132
  </div>
@@ -142,7 +142,7 @@ page = st.sidebar.radio(
142
  "ℹ️ About",
143
  "📋 Terms of Use",
144
  "🔒 Privacy Policy",
145
- "👥 Contact"
146
  ],
147
  label_visibility="collapsed",
148
  key="navigation"
@@ -159,9 +159,9 @@ st.sidebar.markdown("""
159
  </div>
160
  """, unsafe_allow_html=True)
161
 
162
- # Add footer info
163
  st.sidebar.markdown("""
164
- <div style="position: fixed; bottom: 1rem; left: 1rem; right: 1rem; text-align: center; padding: 0.5rem; background-color: rgba(255,255,255,0.9); border-radius: 8px; border-top: 1px solid #E0E0E0;">
165
  <p style="font-size: 0.7rem; color: #888; margin: 0;">
166
  © 2025 TruthCheck | AI-Powered
167
  </p>
 
15
  # Custom CSS for modern styling
16
  st.markdown("""
17
  <style>
18
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
19
 
20
  body {
21
  font-family: 'Poppins', sans-serif;
 
122
  # Enhanced Sidebar navigation with icons
123
  st.sidebar.markdown("""
124
  <div style="text-align: center; margin-bottom: 2rem;">
125
+ <div style="font-size: 3rem; margin-bottom: 0.5rem;">🛡️</div>
126
+ <h1 style="color: #4B5EAA; font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2;">
127
  TruthCheck
128
  </h1>
129
+ <p style="color: #666; font-size: 1rem; margin: 0; font-weight: 300; line-height: 1.3;">
130
  Advanced Fake News Detector
131
  </p>
132
  </div>
 
142
  "ℹ️ About",
143
  "📋 Terms of Use",
144
  "🔒 Privacy Policy",
145
+ "📬 Contact"
146
  ],
147
  label_visibility="collapsed",
148
  key="navigation"
 
159
  </div>
160
  """, unsafe_allow_html=True)
161
 
162
+ # Add footer info in sidebar only
163
  st.sidebar.markdown("""
164
+ <div style="text-align: center; padding: 0.5rem; margin-top: 2rem;">
165
  <p style="font-size: 0.7rem; color: #888; margin: 0;">
166
  © 2025 TruthCheck | AI-Powered
167
  </p>