Spaces:
Running
Running
File size: 23,489 Bytes
d92a6e7 a5b5be9 |
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 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TruthPulse Scanner | AI-Powered Fact Checking</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
background-color: #f8fafc;
}
.verdict-true {
box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.3);
animation: pulseGreen 1.5s infinite;
}
.verdict-false {
box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.3);
animation: pulseRed 1.5s infinite;
}
.verdict-uncertain {
box-shadow: 0 0 0 4px rgba(253, 230, 138, 0.3);
animation: pulseYellow 1.5s infinite;
}
.verdict-unsupported {
box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.3);
animation: pulseGray 1.5s infinite;
}
@keyframes pulseGreen {
0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes pulseRed {
0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(248, 113, 113, 0); }
100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}
@keyframes pulseYellow {
0% { box-shadow: 0 0 0 0 rgba(253, 230, 138, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(253, 230, 138, 0); }
100% { box-shadow: 0 0 0 0 rgba(253, 230, 138, 0); }
}
@keyframes pulseGray {
0% { box-shadow: 0 0 0 0 rgba(156, 163, 175, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(156, 163, 175, 0); }
100% { box-shadow: 0 0 0 0 rgba(156, 163, 175, 0); }
}
.scan-animation {
animation: scan 2s linear infinite;
}
@keyframes scan {
0% { transform: translateY(-100%); opacity: 0; }
10% { opacity: 1; }
90% { opacity: 1; }
100% { transform: translateY(100%); opacity: 0; }
}
</style>
</head>
<body class="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-50">
<!-- Vanta.js Background -->
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<div class="relative z-10 min-h-screen flex flex-col">
<!-- Header -->
<header class="py-6 px-4 sm:px-6 lg:px-8 bg-white/80 backdrop-blur-md border-b border-gray-200">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="search" class="text-indigo-600 w-6 h-6"></i>
<h1 class="text-2xl font-bold text-gray-800">TruthPulse <span class="text-indigo-600">Scanner</span></h1>
</div>
<nav>
<ul class="flex space-x-6">
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">How It Works</a></li>
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">About</a></li>
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">FAQ</a></li>
</ul>
</nav>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow container mx-auto px-4 sm:px-6 lg:px-8 py-12 flex flex-col items-center">
<div class="max-w-3xl w-full bg-white/90 backdrop-blur-sm rounded-xl shadow-xl p-8">
<h2 class="text-3xl font-bold text-center text-gray-800 mb-2">Verify Any Claim in Seconds</h2>
<p class="text-gray-600 text-center mb-8">Paste a link or text below to check its accuracy</p>
<div class="relative">
<div class="flex space-x-4 mb-4">
<button class="flex-1 py-3 px-4 bg-indigo-600 text-white rounded-lg font-medium hover:bg-indigo-700 transition flex items-center justify-center">
<i data-feather="link" class="mr-2"></i> Paste URL
</button>
<button class="flex-1 py-3 px-4 bg-indigo-100 text-indigo-700 rounded-lg font-medium hover:bg-indigo-200 transition flex items-center justify-center">
<i data-feather="edit" class="mr-2"></i> Enter Text
</button>
</div>
<textarea class="w-full h-40 p-4 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 resize-none" placeholder="Paste the text or URL you want to verify here..."></textarea>
<div class="mt-4 flex justify-between items-center">
<div class="flex items-center space-x-2 text-gray-500">
<i data-feather="shield"></i>
<span class="text-sm">Your data is never stored</span>
</div>
<button id="verify-btn" class="py-3 px-6 bg-indigo-600 text-white rounded-lg font-medium hover:bg-indigo-700 transition flex items-center">
<i data-feather="search" class="mr-2"></i> Verify Now
</button>
</div>
</div>
</div>
<!-- Result Placeholder (Hidden by default) -->
<div id="result-container" class="hidden max-w-3xl w-full mt-8">
<div id="loading-state" class="bg-white rounded-xl shadow-lg p-8 text-center">
<div class="relative h-32 w-32 mx-auto mb-6">
<div class="absolute inset-0 rounded-full border-4 border-indigo-200"></div>
<div class="absolute inset-4 rounded-full border-4 border-indigo-300 animate-spin"></div>
<div class="absolute inset-8 rounded-full border-4 border-indigo-400"></div>
<div class="absolute inset-0 flex items-center justify-center">
<div class="h-16 w-16 bg-indigo-100 rounded-full flex items-center justify-center">
<i data-feather="search" class="text-indigo-600 w-8 h-8 animate-pulse"></i>
</div>
</div>
<div class="absolute left-0 right-0 top-1/2 h-1 bg-indigo-100 overflow-hidden">
<div class="scan-animation h-full w-full bg-gradient-to-b from-indigo-400 to-transparent"></div>
</div>
</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Analyzing Your Claim</h3>
<p class="text-gray-600">Our AI is scanning multiple sources to determine accuracy...</p>
</div>
<div id="verdict-card" class="hidden bg-white rounded-xl shadow-lg overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-start mb-4">
<div>
<h3 class="text-xl font-bold">Claim Analysis</h3>
<p class="text-gray-600" id="verdict-date">Verified just now</p>
</div>
<div id="verdict-badge" class="px-4 py-2 rounded-full font-semibold flex items-center">
<!-- Dynamic content -->
</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg mb-6">
<p id="claim-text" class="text-gray-800"></p>
</div>
<div id="verdict-content" class="mb-6">
<!-- Dynamic content -->
</div>
<div class="border-t border-gray-200 pt-6">
<h4 class="font-semibold mb-3">Sources & Evidence</h4>
<div id="sources-list" class="space-y-3">
<!-- Dynamic content -->
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="py-8 px-4 sm:px-6 lg:px-8 bg-white/80 backdrop-blur-md border-t border-gray-200">
<div class="container mx-auto">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center space-x-2 mb-4 md:mb-0">
<i data-feather="search" class="text-indigo-600 w-5 h-5"></i>
<span class="text-lg font-semibold text-gray-800">TruthPulse Scanner</span>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Privacy Policy</a>
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Terms of Service</a>
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Contact</a>
</div>
</div>
<p class="text-center text-gray-500 text-sm mt-6">© 2023 TruthPulse Scanner. All rights reserved.</p>
</div>
</footer>
</div>
<script>
</script>
</body>
</html>
|