Spaces:
Running
Running
Update src/terms_of_use.py
#29
by
KhaqanNasir
- opened
- 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 |
-
<
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
</div>
|
17 |
</div>
|
18 |
""", unsafe_allow_html=True)
|
19 |
|
20 |
-
|
21 |
st.markdown("""
|
22 |
-
<div
|
23 |
-
<
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
<
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|