Update src/terms_of_use.py

#37
by KhaqanNasir - opened
Files changed (1) hide show
  1. src/terms_of_use.py +146 -71
src/terms_of_use.py CHANGED
@@ -1,128 +1,203 @@
1
  import streamlit as st
2
 
3
  def main():
4
- # Custom CSS for Privacy Policy page
5
  st.markdown("""
6
  <style>
7
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
 
 
 
 
 
8
 
9
  .stApp {
10
- font-family: 'Poppins', sans-serif;
11
- background: #f8fafc;
12
  min-height: 100vh;
13
- color: #1a202c;
 
 
14
  }
15
 
16
- #MainMenu {visibility: visible;}
17
  footer {visibility: hidden;}
18
  .stDeployButton {display: none;}
19
  header {visibility: hidden;}
20
  .stApp > header {visibility: hidden;}
21
 
22
- .container {
23
- max-width: 1200px;
 
 
24
  margin: 0 auto;
25
- padding: 1.5rem;
26
  }
27
 
28
- .header {
29
- padding: 1.5rem 0;
30
  text-align: center;
 
 
31
  }
32
 
33
  .header-title {
34
- font-size: 2.5rem;
35
  font-weight: 700;
36
- color: #1a202c;
37
- display: inline-flex;
38
- align-items: center;
39
- gap: 0.5rem;
 
 
 
 
 
 
40
  }
41
 
 
42
  .section {
43
- margin-bottom: 2rem;
 
 
 
 
44
  }
45
 
46
  .section-title {
47
- font-size: 2rem;
48
  font-weight: 600;
49
- color: #1a202c;
50
- margin-bottom: 0.5rem;
51
  display: flex;
52
  align-items: center;
53
  gap: 0.5rem;
54
  }
55
 
56
  .section-text {
57
- font-size: 1.1rem;
58
- color: #4a5568;
59
- line-height: 1.5;
60
  max-width: 800px;
61
  margin: 0 auto;
62
  }
63
 
64
- .stSidebar {
65
- background: #ffffff;
66
- border-right: 1px solid #e5e7eb;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  }
68
 
69
- .stSidebar .sidebar-content {
70
- padding: 1rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
  </style>
73
  """, unsafe_allow_html=True)
74
 
 
 
75
 
76
- # Header
77
  st.markdown("""
78
- <div class="header">
79
- <div class="container">
80
- <h1 class="header-title">πŸ›‘οΈ TruthCheck</h1>
81
- </div>
82
  </div>
83
  """, unsafe_allow_html=True)
84
 
85
- # Privacy Policy Content
86
  st.markdown("""
87
- <div class="container">
88
- <div class="section">
89
- <h2 class="section-title">πŸ”’ Privacy Policy</h2>
90
- <p class="section-text">
91
- At TruthCheck, we are committed to protecting your privacy. This Privacy Policy outlines how we collect, use, and safeguard your data.
92
- </p>
93
- </div>
94
- <div class="section">
95
- <h3 class="section-title">πŸ“Š Data Collection</h3>
96
- <p class="section-text">
97
- We collect data you provide, such as news articles submitted for analysis and optional contact form submissions. We may also collect usage data to improve our services.
98
- </p>
99
- </div>
100
- <div class="section">
101
- <h3 class="section-title">πŸ” Data Usage</h3>
102
- <p class="section-text">
103
- Your data is used solely to provide fake news detection services and respond to inquiries. We do not sell or share your personal information with third parties.
104
- </p>
105
- </div>
106
- <div class="section">
107
- <h3 class="section-title">πŸ›‘οΈ Data Security</h3>
108
- <p class="section-text">
109
- We implement industry-standard security measures to protect your data from unauthorized access or disclosure.
110
- </p>
111
- </div>
112
- <div class="section">
113
- <h3 class="section-title">πŸͺ Cookies</h3>
114
- <p class="section-text">
115
- TruthCheck may use cookies to enhance user experience. You can disable cookies in your browser settings, but this may affect functionality.
116
- </p>
117
- </div>
118
- <div class="section">
119
- <h3 class="section-title">πŸ“© Contact Us</h3>
120
- <p class="section-text">
121
- If you have questions about our Privacy Policy, please contact us at [email protected].
122
- </p>
123
- </div>
 
 
 
 
124
  </div>
125
  """, unsafe_allow_html=True)
126
 
 
 
 
 
 
 
 
 
 
127
  if __name__ == "__main__":
128
  main()
 
1
  import streamlit as st
2
 
3
  def main():
4
+ # Updated CSS for Terms of Use page
5
  st.markdown("""
6
  <style>
7
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
8
+
9
+ * {
10
+ font-family: 'Poppins', sans-serif !important;
11
+ box-sizing: border-box;
12
+ }
13
 
14
  .stApp {
15
+ background: #ffffff;
 
16
  min-height: 100vh;
17
+ color: #1f2a44;
18
+ margin: 0 !important;
19
+ padding: 0 !important;
20
  }
21
 
22
+ #MainMenu {visibility: hidden;}
23
  footer {visibility: hidden;}
24
  .stDeployButton {display: none;}
25
  header {visibility: hidden;}
26
  .stApp > header {visibility: hidden;}
27
 
28
+ /* Main Container */
29
+ .main-container {
30
+ max-width: 100%;
31
+ width: 100%;
32
  margin: 0 auto;
33
+ padding: 1rem 2rem;
34
  }
35
 
36
+ /* Header Section */
37
+ .header-section {
38
  text-align: center;
39
+ margin-bottom: 2.5rem;
40
+ padding: 1.5rem 0;
41
  }
42
 
43
  .header-title {
44
+ font-size: 2.25rem;
45
  font-weight: 700;
46
+ color: #1f2a44;
47
+ margin: 0;
48
+ }
49
+
50
+ .header-subtitle {
51
+ font-size: 1rem;
52
+ color: #6b7280;
53
+ font-weight: 400;
54
+ max-width: 600px;
55
+ margin: 0.5rem auto 0;
56
  }
57
 
58
+ /* Section Styling */
59
  .section {
60
+ margin-bottom: 2.5rem;
61
+ max-width: 1200px;
62
+ margin-left: auto;
63
+ margin-right: auto;
64
+ padding: 0 1rem;
65
  }
66
 
67
  .section-title {
68
+ font-size: 1.5rem;
69
  font-weight: 600;
70
+ color: #1f2a44;
71
+ margin-bottom: 1rem;
72
  display: flex;
73
  align-items: center;
74
  gap: 0.5rem;
75
  }
76
 
77
  .section-text {
78
+ font-size: 0.95rem;
79
+ color: #6b7280;
80
+ line-height: 1.6;
81
  max-width: 800px;
82
  margin: 0 auto;
83
  }
84
 
85
+ /* Footer */
86
+ .footer {
87
+ border-top: 1px solid #e5e7eb;
88
+ padding: 1.5rem 0;
89
+ text-align: center;
90
+ max-width: 1200px;
91
+ margin: 2rem auto 0;
92
+ }
93
+
94
+ /* Responsive Design */
95
+ @media (max-width: 1024px) {
96
+ .main-container {
97
+ padding: 1rem;
98
+ }
99
+ .section {
100
+ padding: 0 0.5rem;
101
+ }
102
  }
103
 
104
+ @media (max-width: 768px) {
105
+ .header-title {
106
+ font-size: 1.75rem;
107
+ }
108
+ .header-subtitle {
109
+ font-size: 0.9rem;
110
+ }
111
+ .section-title {
112
+ font-size: 1.25rem;
113
+ }
114
+ .section-text {
115
+ font-size: 0.9rem;
116
+ }
117
+ }
118
+
119
+ @media (max-width: 480px) {
120
+ .header-title {
121
+ font-size: 1.5rem;
122
+ }
123
+ .header-subtitle {
124
+ font-size: 0.85rem;
125
+ }
126
+ .section-title {
127
+ font-size: 1.1rem;
128
+ }
129
+ .section-text {
130
+ font-size: 0.85rem;
131
+ }
132
  }
133
  </style>
134
  """, unsafe_allow_html=True)
135
 
136
+ # Main Container
137
+ st.markdown('<div class="main-container">', unsafe_allow_html=True)
138
 
139
+ # Header Section
140
  st.markdown("""
141
+ <div class="header-section">
142
+ <h1 class="header-title">πŸ“‹ TruthCheck</h1>
143
+ <p class="header-subtitle">Terms governing the use of our services</p>
 
144
  </div>
145
  """, unsafe_allow_html=True)
146
 
147
+ # Terms of Use Content
148
  st.markdown("""
149
+ <div class="section">
150
+ <h2 class="section-title">πŸ“œ Terms of Use</h2>
151
+ <p class="section-text">
152
+ Welcome to TruthCheck. These Terms of Use govern your access to and use of our platform and services. By using TruthCheck, you agree to comply with these terms. If you do not agree, please refrain from using our services.
153
+ </p>
154
+ </div>
155
+ <div class="section">
156
+ <h3 class="section-title">πŸš€ Use of Services</h3>
157
+ <p class="section-text">
158
+ TruthCheck provides tools for analyzing news articles for authenticity. You may use our services for lawful purposes only. You agree not to misuse the platform, including submitting malicious content or attempting to disrupt our services.
159
+ </p>
160
+ </div>
161
+ <div class="section">
162
+ <h3 class="section-title">πŸ›‘οΈ User Responsibilities</h3>
163
+ <p class="section-text">
164
+ You are responsible for the accuracy of the information you submit, such as news articles or contact details. You must not upload content that violates intellectual property rights, is defamatory, or is otherwise unlawful.
165
+ </p>
166
+ </div>
167
+ <div class="section">
168
+ <h3 class="section-title">πŸ” Intellectual Property</h3>
169
+ <p class="section-text">
170
+ All content, features, and functionality on TruthCheck, including our algorithms and design, are owned by TruthCheck or its licensors. You may not copy, modify, or distribute our content without prior written consent.
171
+ </p>
172
+ </div>
173
+ <div class="section">
174
+ <h3 class="section-title">βš–οΈ Limitation of Liability</h3>
175
+ <p class="section-text">
176
+ TruthCheck provides services on an "as-is" basis. We do not guarantee the accuracy of our analysis and are not liable for any damages resulting from your use of our platform. Use our services at your own risk.
177
+ </p>
178
+ </div>
179
+ <div class="section">
180
+ <h3 class="section-title">πŸ”„ Changes to Terms</h3>
181
+ <p class="section-text">
182
+ We may update these Terms of Use from time to time. Changes will be posted on this page, and continued use of our services after updates constitutes acceptance of the new terms.
183
+ </p>
184
+ </div>
185
+ <div class="section">
186
+ <h3 class="section-title">πŸ“© Contact Us</h3>
187
+ <p class="section-text">
188
+ If you have questions about these Terms of Use, please contact us at <a href="mailto:[email protected]">[email protected]</a> or <a href="mailto:[email protected]">[email protected]</a>.
189
+ </p>
190
  </div>
191
  """, unsafe_allow_html=True)
192
 
193
+ # Footer
194
+ st.markdown("---")
195
+ st.markdown(
196
+ '<p style="text-align: center; font-weight: 600; font-size: 16px;">πŸ’» Developed with ❀️ using Streamlit | Β© 2025</p>',
197
+ unsafe_allow_html=True
198
+ )
199
+
200
+ st.markdown('</div>', unsafe_allow_html=True) # Close main-container
201
+
202
  if __name__ == "__main__":
203
  main()