Update src/terms_of_use.py

#30
by KhaqanNasir - opened
Files changed (1) hide show
  1. src/terms_of_use.py +114 -32
src/terms_of_use.py CHANGED
@@ -1,44 +1,126 @@
1
  import streamlit as st
2
 
3
  def main():
 
4
  st.markdown("""
5
- <div class="hero-section">
6
- <div style="display: flex; align-items: center; gap: 2rem;">
7
- <div style="flex: 1;">
8
- <h1 style="font-size: 2.5rem; color: #333333;">Terms of Use</h1>
9
- <p style="font-size: 1.2rem; color: #666666;">
10
- Guidelines for using the TrueCheck platform responsibly.
11
- </p>
12
- </div>
13
- <div style="flex: 1;">
14
- <img src="https://img.freepik.com/free-vector/terms-conditions-concept-illustration_114360-1353.jpg" style="width: 100%; border-radius: 12px;" alt="Terms of Use">
15
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  </div>
17
  </div>
18
  """, unsafe_allow_html=True)
19
 
20
- st.markdown("### Terms of Use")
21
  st.markdown("""
22
- <div style="background-color: #F4F7FA; padding: 1rem; border-radius: 8px;">
23
- <h3 style="color: #333333;">1. Acceptance of Terms</h3>
24
- <p style="color: #666666;">
25
- By accessing TrueCheck, you agree to be bound by these Terms of Use. If you do not agree, please do not use the platform.
26
- </p>
27
-
28
- <h3 style="color: #333333;">2. Use of Service</h3>
29
- <p style="color: #666666;">
30
- TrueCheck is provided for personal, non-commercial use to analyze news articles. You may not use the service for illegal purposes.
31
- </p>
32
-
33
- <h3 style="color: #333333;">3. Limitation of Liability</h3>
34
- <p style="color: #666666;">
35
- TrueCheck is provided "as is" without warranties. We are not liable for any damages arising from the use of this service.
36
- </p>
37
-
38
- <h3 style="color: #333333;">4. Changes to Terms</h3>
39
- <p style="color: #666666;">
40
- We may update these terms periodically. Continued use of the platform constitutes acceptance of the updated terms.
41
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  </div>
43
  """, unsafe_allow_html=True)
44
 
 
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