File size: 10,095 Bytes
b6bd950
 
 
7c18a25
b6bd950
 
7c18a25
 
 
 
 
 
b6bd950
07a6495
7c18a25
07a6495
7c18a25
 
 
07a6495
 
7c18a25
07a6495
 
 
 
 
7c18a25
 
 
 
07a6495
7c18a25
07a6495
 
7c18a25
 
07a6495
7c18a25
 
07a6495
b6bd950
07a6495
7c18a25
07a6495
7c18a25
 
 
 
 
 
 
 
 
 
07a6495
b6bd950
7c18a25
07a6495
7c18a25
 
 
 
 
07a6495
b6bd950
07a6495
7c18a25
07a6495
7c18a25
 
07a6495
 
 
 
b6bd950
07a6495
7c18a25
 
 
07a6495
 
b6bd950
 
7c18a25
 
 
 
 
 
 
 
07a6495
b6bd950
7c18a25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07a6495
 
 
b6bd950
7c18a25
 
b6bd950
7c18a25
07a6495
7c18a25
 
 
07a6495
 
b6bd950
07a6495
 
7c18a25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07a6495
 
 
b6bd950
7c18a25
 
 
 
 
 
 
 
 
b6bd950
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
import streamlit as st

def main():
    # Updated CSS for About page
    st.markdown("""
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

        * {
            font-family: 'Poppins', sans-serif !important;
            box-sizing: border-box;
        }

        .stApp {
            background: #ffffff;
            min-height: 100vh;
            color: #1f2a44;
            margin: 0 !important;
            padding: 0 !important;
        }

        #MainMenu {visibility: hidden;}
        footer {visibility: hidden;}
        .stDeployButton {display: none;}
        header {visibility: hidden;}
        .stApp > header {visibility: hidden;}

        /* Main Container */
        .main-container {
            max-width: 100%;
            width: 100%;
            margin: 0 auto;
            padding: 1rem 2rem;
        }

        /* Header Section */
        .header-section {
            text-align: center;
            margin-bottom: 2.5rem;
            padding: 1.5rem 0;
        }

        .header-title {
            font-size: 2.25rem;
            font-weight: 700;
            color: #1f2a44;
            margin: 0;
        }

        .header-subtitle {
            font-size: 1rem;
            color: #6b7280;
            font-weight: 400;
            max-width: 600px;
            margin: 0.5rem auto 0;
        }

        /* Section Styling */
        .section {
            margin-bottom: 2.5rem;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 1rem;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2a44;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .section-text {
            font-size: 0.95rem;
            color: #6b7280;
            line-height: 1.6;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Team Section */
        .team-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .team-card {
            background: #f9fafb;
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            text-align: center;
            transition: transform 0.2s ease;
        }

        .team-card:hover {
            transform: translateY(-3px);
        }

        .team-card-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1f2a44;
            margin-bottom: 0.5rem;
        }

        .team-card-role {
            font-size: 1rem;
            color: #3b82f6;
            margin-bottom: 1rem;
        }

        .team-card-text {
            font-size: 0.9rem;
            color: #6b7280;
            line-height: 1.4;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .team-card-text a {
            color: #3b82f6;
            text-decoration: none;
        }

        .team-card-text a:hover {
            text-decoration: underline;
        }

        /* Footer */
        .footer {
            border-top: 1px solid #e5e7eb;
            padding: 1.5rem 0;
            text-align: center;
            max-width: 1200px;
            margin: 2rem auto 0;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .main-container {
                padding: 1rem;
            }
            .section {
                padding: 0 0.5rem;
            }
            .team-container {
                padding: 0 0.5rem;
            }
        }

        @media (max-width: 768px) {
            .header-title {
                font-size: 1.75rem;
            }
            .header-subtitle {
                font-size: 0.9rem;
            }
            .section-title {
                font-size: 1.25rem;
            }
            .section-text {
                font-size: 0.9rem;
            }
            .team-card-title {
                font-size: 1.1rem;
            }
            .team-card-role {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .header-title {
                font-size: 1.5rem;
            }
            .header-subtitle {
                font-size: 0.85rem;
            }
            .section-title {
                font-size: 1.1rem;
            }
            .section-text {
                font-size: 0.85rem;
            }
            .team-card-title {
                font-size: 1rem;
            }
            .team-card-role {
                font-size: 0.85rem;
            }
            .team-card-text {
                font-size: 0.8rem;
            }
        }
    </style>
    """, unsafe_allow_html=True)

    # Main Container
    st.markdown('<div class="main-container">', unsafe_allow_html=True)

    # Header Section
    st.markdown("""
    <div class="header-section">
        <h1 class="header-title">📋 TruthCheck - Advanced Fake News Detector</h1>
        <p class="header-subtitle">Empowering you to uncover the truth</p>
    </div>
    """, unsafe_allow_html=True)

    # About Content
    st.markdown("""
    <div class="section">
        <h2 class="section-title">ℹ️ About TruthCheck</h2>
        <p class="section-text">
            TruthCheck is a cutting-edge platform designed to combat misinformation by analyzing news articles for authenticity. Powered by advanced AI, our mission is to empower users—journalists, researchers, and everyday citizens—to make informed decisions in an era of digital information overload.
        </p>
    </div>
    <div class="section">
        <h3 class="section-title">🚀 Our Mission</h3>
        <p class="section-text">
            We strive to promote transparency and trust in information by providing a reliable, user-friendly tool for fake news detection. TruthCheck leverages state-of-the-art AI models to deliver accurate, transparent results, helping users distinguish credible news from misinformation.
        </p>
    </div>
    <div class="section">
        <h3 class="section-title">🧠 Our Technology</h3>
        <p class="section-text">
            TruthCheck combines BERT's natural language understanding with BiLSTM's sequential processing to deliver robust fake news detection. Our hybrid model analyzes text for linguistic patterns, sentiment, and context, providing results with confidence scores and attention visualizations for deeper insights.
        </p>
    </div>
    <div class="section">
        <h3 class="section-title">📋 How to Use TruthCheck</h3>
        <p class="section-text">
            Using TruthCheck is simple and intuitive:
            <ul>
                <li><strong>Submit an Article</strong>: Paste the text of a news article or a URL into our analysis tool.</li>
                <li><strong>Get Results</strong>: Our AI processes the content and provides a credibility score with detailed insights.</li>
                <li><strong>Explore Insights</strong>: Review attention visualizations and contextual analysis to understand the results.</li>
                <li><strong>Contact Us</strong>: Reach out via our contact form for support or feedback.</li>
            </ul>
        </p>
    </div>
    <div class="section">
        <h3 class="section-title">🌍 Why TruthCheck Matters</h3>
        <p class="section-text">
            In a world where misinformation can spread rapidly, TruthCheck serves as a vital tool for verifying information. Whether you're validating news for research, journalism, or personal knowledge, our platform ensures you can trust the content you consume.
        </p>
    </div>
    """, unsafe_allow_html=True)

    # Team Section
    st.markdown("""
    <div class="section">
        <h2 class="section-title">👥 Our Team</h2>
        <div class="team-container">
            <div class="team-card">
                <h3 class="team-card-title">Muhammad Adnan Tariq</h3>
                <p class="team-card-role">AI Specialist</p>
                <p class="team-card-text"><span>📧</span> <strong>Email</strong>: <a href="mailto:[email protected]">[email protected]</a></p>
                <p class="team-card-text"><span>📞</span> <strong>Phone</strong>: +92336-6569117</p>
                <p class="team-card-text"><span>🔗</span> <strong>LinkedIn</strong>: <a href="https://www.linkedin.com/in/adnaantariq/">Linkedin</a></p>
                <p class="team-card-text"><span>🔗</span> <strong>GitHub</strong>: <a href="https://github.com/adnaan-tariq">GitHub</a></p>
            </div>
            <div class="team-card">
                <h3 class="team-card-title">Muhammad Khaqan Nasir</h3>
                <p class="team-card-role">Lead Developer</p>
                <p class="team-card-text"><span>📧</span> <strong>Email</strong>: <a href="mailto:[email protected]">[email protected]</a></p>
                <p class="team-card-text"><span>📞</span> <strong>Phone</strong>: +92309-1111977</p>
                <p class="team-card-text"><span>🔗</span> <strong>LinkedIn</strong>: <a href="https://www.linkedin.com/in/khaqan-nasir/">Linkedin</a></p>
                <p class="team-card-text"><span>🔗</span> <strong>GitHub</strong>: <a href="https://github.com/KhaqanNasir">GitHub</a></p>
            </div>
        </div>
    </div>
    """, unsafe_allow_html=True)

    # Footer
    st.markdown("---")
    st.markdown(
        '<p style="text-align: center; font-weight: 600; font-size: 16px;">💻 Developed with ❤️ using Streamlit | © 2025</p>',
        unsafe_allow_html=True
    )

    st.markdown('</div>', unsafe_allow_html=True)  # Close main-container

if __name__ == "__main__":
    main()