KhaqanNasir commited on
Commit
b579b5d
Β·
verified Β·
1 Parent(s): b6ea80d

Update src/terms_of_use.py

Browse files
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 Terms of Use 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
+ # Terms of Use Content
86
  st.markdown("""
87
+ <div class="container">
88
+ <div class="section">
89
+ <h2 class="section-title">πŸ“‹ Terms of Use</h2>
90
+ <p class="section-text">
91
+ Welcome to TruthCheck. By using our platform, you agree to the following terms and conditions.
92
+ </p>
93
+ </div>
94
+ <div class="section">
95
+ <h3 class="section-title">βš–οΈ Acceptance of Terms</h3>
96
+ <p class="section-text">
97
+ By accessing or using TruthCheck, you agree to be bound by these Terms of Use. If you do not agree, please do not use our services.
98
+ </p>
99
+ </div>
100
+ <div class="section">
101
+ <h3 class="section-title">πŸ” Use of Service</h3>
102
+ <p class="section-text">
103
+ TruthCheck provides an AI-powered tool for detecting fake news. You may use the service for personal, non-commercial purposes. You agree not to misuse the platform or attempt to interfere with its functionality.
104
+ </p>
105
+ </div>
106
+ <div class="section">
107
+ <h3 class="section-title">πŸ“œ Intellectual Property</h3>
108
+ <p class="section-text">
109
+ All content, including text, graphics, and code, is the property of TruthCheck or its licensors. Unauthorized use or reproduction is prohibited.
110
+ </p>
111
+ </div>
112
+ <div class="section">
113
+ <h3 class="section-title">🚫 Limitation of Liability</h3>
114
+ <p class="section-text">
115
+ TruthCheck is provided "as is" without warranties. We are not liable for any damages arising from the use of our service, including inaccuracies in fake news detection.
116
+ </p>
117
+ </div>
118
+ <div class="section">
119
+ <h3 class="section-title">πŸ”„ Modifications</h3>
120
+ <p class="section-text">
121
+ We may update these Terms of Use at any time. Continued use of TruthCheck after changes constitutes acceptance of the new terms.
122
+ </p>
123
+ </div>
124
  </div>
125
  """, unsafe_allow_html=True)
126