Spaces:
Sleeping
Sleeping
File size: 17,263 Bytes
728527b | 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 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeepFake Detection</title>
<link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
scroll-padding-top: 80px;
}
.navbar {
background: rgba(26, 26, 26, 0.95);
padding: 1rem 2rem;
height: 70px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
position: fixed;
width: 100%;
left: 0;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
}
.navbar-brand {
color: #64ffda;
font-size: 1.6rem;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
}
/* Hamburger Button (Hidden on PC) */
.hamburger {
display: none;
background: none;
border: none;
color: #64ffda;
font-size: 2rem;
cursor: pointer;
padding: 0;
}
.navbar-nav {
display: flex;
gap: 1rem;
align-items: center;
transition: all 0.3s ease;
}
.nav-link {
color: #fff;
text-decoration: none;
padding: 0.6rem 1.2rem;
border-radius: 6px;
transition: all 0.3s ease;
position: relative;
font-weight: 500;
}
.nav-link:hover {
background: #2a2a2a;
}
.nav-link.highlight {
background: #64ffda;
color: #1a1a1a;
}
.nav-link.highlight:hover {
background: #4cd6b3;
}
.hero {
text-align: center;
padding: 5rem 2rem;
margin-top: -1rem;
background: linear-gradient(135deg, #111d40 0%, #0a0d30 100%);
color: white;
position: relative;
overflow: hidden;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 1.5rem;
color: #64ffda;
text-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
animation: fadeInUp 0.8s ease-out;
}
.hero p {
font-size: 1.2rem;
color: #8892b0;
max-width: 800px;
margin: 0 auto 2rem;
}
.hero-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.cta-button {
background: #64ffda;
color: #1a1a1a;
padding: 1rem 2rem;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
}
.cta-button:hover {
background: #4cd6b3;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}
.cta-button.secondary {
background: transparent;
color: #64ffda;
border: 2px solid #64ffda;
}
.cta-button.secondary:hover {
background: #64ffda;
color: #1a1a1a;
}
.features {
padding: 6rem 2rem;
background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
position: relative;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.features h2 {
text-align: center;
color: #64ffda;
margin-bottom: 3rem;
font-size: 2.5rem;
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 0 2px 10px rgba(100, 255, 218, 0.2);
position: relative;
}
.features h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: #64ffda;
border-radius: 2px;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.feature-card {
background: rgba(42, 42, 42, 0.8);
padding: 2.5rem;
border-radius: 12px;
text-align: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid rgba(100, 255, 218, 0.1);
backdrop-filter: blur(10px);
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.6s ease-out forwards;
}
.feature-card:hover {
transform: translateY(-5px);
border-color: rgba(100, 255, 218, 0.3);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.feature-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.feature-card h3 {
color: #64ffda;
margin-bottom: 1.2rem;
font-size: 1.5rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.feature-card p {
color: #8892b0;
line-height: 1.6;
margin-bottom: 1.5rem;
}
.feature-link {
display: inline-block;
background: rgba(100, 255, 218, 0.1);
color: #64ffda;
padding: 0.75rem 1.5rem;
border-radius: 6px;
text-decoration: none;
border: 1px solid rgba(100, 255, 218, 0.2);
transition: all 0.3s ease;
}
.feature-link:hover {
background: rgba(100, 255, 218, 0.2);
transform: translateY(-2px);
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
body {
margin: 0;
padding-top: 70px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: #1a1a1a;
min-height: 100vh;
}
.about,
.contact {
padding: 6rem 2rem;
position: relative;
color: white;
text-align: center;
}
.about {
background: linear-gradient(45deg, #111d40 0%, #131a61 100%);
}
.contact {
background: linear-gradient(135deg, #111d40 0%, #0a0d30 100%);
}
.about h2,
.contact h2 {
color: #64ffda;
margin-bottom: 2.5rem;
font-size: 2.8rem;
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 0 2px 10px rgba(100, 255, 218, 0.2);
position: relative;
display: inline-block;
}
.about h2::after,
.contact h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: #64ffda;
border-radius: 2px;
}
.about p,
.contact p {
color: #8892b0;
max-width: 800px;
margin: 0 auto 2rem;
line-height: 1.6;
}
.contact-form {
max-width: 600px;
margin: 0 auto;
text-align: left;
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 1rem;
margin-bottom: 1.2rem;
border: 1px solid rgba(100, 255, 218, 0.2);
border-radius: 8px;
color: white;
transition: all 0.3s ease;
backdrop-filter: blur(5px);
background: rgba(26, 26, 26, 0.5);
}
.contact-form input:focus,
.contact-form textarea:focus {
outline: none;
border-color: #64ffda;
box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}
.contact-form button {
background: #64ffda;
color: #1a1a1a;
border: none;
padding: 1rem 2.5rem;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
}
.contact-form button:hover {
background: #4cd6b3;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}
footer {
background: #1a1a1a;
color: #8892b0;
padding: 3rem 2rem;
text-align: center;
border-top: 1px solid rgba(42, 42, 42, 0.8);
position: relative;
}
footer a {
color: #64ffda;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* --- MOBILE HAMBURGER MENU & FIXES --- */
@media (max-width: 768px) {
body {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
}
.navbar {
padding: 1rem 1.5rem;
}
.hamburger {
display: block; /* Show hamburger button */
}
.navbar-nav {
display: flex;
flex-direction: column;
position: absolute;
top: 70px; /* Push below the navbar */
left: 0;
width: 100%;
background: rgba(17, 29, 64, 0.98); /* Dark solid background */
padding: 0;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
/* Hidden state */
max-height: 0;
overflow: hidden;
opacity: 0;
}
.navbar-nav.active {
/* Visible state */
max-height: 500px;
padding: 1rem 0;
opacity: 1;
}
.nav-link {
width: 100%;
text-align: center;
padding: 1.2rem;
border-radius: 0;
}
.hero h1 {
font-size: clamp(2rem, 8vw, 3rem);
}
.features-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<nav class="navbar">
<a href="{{ url_for('homepage') }}" class="navbar-brand">TrueVision</a>
<button class="hamburger" id="hamburger-btn" aria-label="Toggle menu">
☰
</button>
<div class="navbar-nav" id="nav-links">
<a href="#about" class="nav-link">About</a>
<a href="#contact" class="nav-link">Contact</a>
{% if current_user.is_authenticated %}
<a href="{{ url_for('detect') }}" class="nav-link">Detect Video</a>
<a href="{{ url_for('image_detect') }}" class="nav-link">Detect Image</a>
<a href="{{ url_for('history') }}" class="nav-link">History</a>
<a href="{{ url_for('logout') }}" class="nav-link">Logout</a>
{% else %}
<a href="{{ url_for('login') }}" class="nav-link">Login</a>
<a href="{{ url_for('signup') }}" class="nav-link highlight">Sign Up</a>
{% endif %}
</div>
</nav>
<section class="hero">
<h1>DeepFake Detection</h1>
<p>Advanced AI-powered video analysis to detect manipulated content with high accuracy</p>
<div class="hero-buttons">
{% if current_user.is_authenticated %}
<a href="{{ url_for('detect') }}" class="cta-button">Upload Video</a>
<a href="{{ url_for('image_detect') }}" class="cta-button secondary">Detect Image</a>
{% else %}
<a href="{{ url_for('signup') }}" class="cta-button">Get Started</a>
{% endif %}
</div>
</section>
<section class="features" id="features">
<div class="container">
<h2>Our Features</h2>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">📁</div>
<h3>Video Upload</h3>
<p>Upload your video files directly for analysis. Supports MP4, AVI, and MOV formats up to 100MB.</p>
{% if current_user.is_authenticated %}
<a href="{{ url_for('detect') }}" class="feature-link">Try Upload</a>
{% else %}
<a href="{{ url_for('signup') }}" class="feature-link">Sign Up</a>
{% endif %}
</div>
<div class="feature-card">
<div class="feature-icon">🖼️</div>
<h3>Image Analysis</h3>
<p>Analyze static images to detect potential AI-generated or manipulated content using advanced deep learning algorithms.</p>
{% if current_user.is_authenticated %}
<a href="{{ url_for('image_detect') }}" class="feature-link">Try Image</a>
{% else %}
<a href="{{ url_for('signup') }}" class="feature-link">Sign Up</a>
{% endif %}
</div>
<div class="feature-card">
<div class="feature-icon">🤖</div>
<h3>AI-Powered</h3>
<p>Advanced deep learning models trained on extensive datasets for accurate DeepFake detection.</p>
</div>
<div class="feature-card">
<div class="feature-icon">⚡</div>
<h3>Fast Results</h3>
<p>Get results in seconds with our optimized processing pipeline and real-time analysis.</p>
</div>
</div>
</div>
</section>
<section id="about" class="about">
<h2>About Our Technology</h2>
<p>Our DeepFake Detection system utilizes state-of-the-art deep learning algorithms to analyze videos and
identify potential manipulations. We combine advanced facial recognition with temporal analysis to detect
inconsistencies that are typical in deepfake videos.</p>
<p>Built with privacy and security in mind, our system processes videos locally and provides detailed analysis
with confidence scores and visual explanations. We're committed to helping combat the spread of manipulated
media by making detection technology accessible to everyone.</p>
</section>
<section id="contact" class="contact">
<h2>Contact Us</h2>
<p>Have questions or feedback? We'd love to hear from you. Get in touch with our team using the form below.</p>
<div class="contact-form">
<form>
<input type="text" placeholder="Your Name" required>
<input type="email" placeholder="Your Email" required>
<textarea rows="4" placeholder="Your Message" required></textarea>
<button type="submit">Send Message</button>
</form>
</div>
</section>
<footer>
<p>© 2025 TrueVision. All rights reserved.</p>
<p>
<a href="{{ url_for('privacy') }}">Privacy Policy</a> |
<a href="{{ url_for('terms') }}">Terms of Service</a>
</p>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
const hamburgerBtn = document.getElementById('hamburger-btn');
const navLinks = document.getElementById('nav-links');
// Toggle menu on hamburger click
hamburgerBtn.addEventListener('click', () => {
navLinks.classList.toggle('active');
});
// Close menu when a link is clicked (useful for mobile navigation)
document.querySelectorAll('.nav-link').forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('active');
});
});
});
</script>
</body>
</html> |