Spaces:
Running
Running
File size: 28,914 Bytes
577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 a59923b 577cbe6 |
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 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FlixVision - Films complets en streaming</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
background-color: #0f0f1a;
color: white;
}
.hero-gradient {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.movie-card {
transition: all 0.3s ease;
transform-origin: center;
}
.movie-card:hover {
transform: scale(1.05);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
z-index: 10;
}
.movie-card:hover .play-icon {
opacity: 1;
}
.play-icon {
opacity: 0;
transition: all 0.3s ease;
}
.navbar {
backdrop-filter: blur(10px);
background-color: rgba(15, 15, 26, 0.8);
}
.genre-tag {
transition: all 0.2s ease;
}
.genre-tag:hover {
background-color: #e50914;
transform: translateY(-2px);
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
background: #e50914;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #b00710;
}
/* Video player styles */
.video-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.9);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
}
.video-player {
width: 80%;
max-width: 1200px;
position: relative;
}
.close-btn {
position: absolute;
top: -40px;
right: 0;
background: #e50914;
color: white;
border: none;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
font-size: 16px;
}
/* Fallback image style */
.movie-poster {
width: 100%;
height: 320px;
object-fit: cover;
border-radius: 8px;
background-color: #1a1a2e;
}
/* Badge for free content */
.free-badge {
position: absolute;
top: 10px;
right: 10px;
background-color: #4CAF50;
color: white;
padding: 3px 8px;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
}
/* Language selector */
.language-selector {
position: relative;
display: inline-block;
}
.language-dropdown {
display: none;
position: absolute;
right: 0;
background-color: #1a1a2e;
min-width: 120px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
border-radius: 4px;
}
.language-selector:hover .language-dropdown {
display: block;
}
.language-dropdown a {
color: white;
padding: 8px 16px;
text-decoration: none;
display: block;
}
.language-dropdown a:hover {
background-color: #e50914;
}
</style>
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar fixed top-0 w-full z-50 py-4 px-6 flex justify-between items-center">
<div class="flex items-center">
<h1 class="text-2xl font-bold text-red-600">FLIX<span class="text-white">VISION</span></h1>
</div>
<div class="hidden md:flex space-x-8">
<a href="#" class="text-white hover:text-red-500 transition" id="home-link">Accueil</a>
<a href="#films" class="text-white hover:text-red-500 transition" id="movies-link">Films</a>
<a href="#series" class="text-white hover:text-red-500 transition" id="series-link">Séries</a>
<a href="#documentaires" class="text-white hover:text-red-500 transition" id="docs-link">Documentaires</a>
<a href="#ma-liste" class="text-white hover:text-red-500 transition" id="list-link">Ma liste</a>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Rechercher..." class="bg-gray-800 text-white px-4 py-2 rounded-full focus:outline-none focus:ring-2 focus:ring-red-500 w-40 md:w-64">
<i class="fas fa-search absolute right-3 top-2.5 text-gray-400"></i>
</div>
<div class="language-selector">
<button class="flex items-center space-x-1 bg-gray-800 px-3 py-1 rounded-full">
<i class="fas fa-globe"></i>
<span>FR</span>
<i class="fas fa-chevron-down text-xs"></i>
</button>
<div class="language-dropdown">
<a href="#" data-lang="fr">Français</a>
<a href="#" data-lang="en">English</a>
<a href="#" data-lang="es">Español</a>
<a href="#" data-lang="de">Deutsch</a>
</div>
</div>
<div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center cursor-pointer">
<i class="fas fa-user text-white"></i>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="hero-gradient pt-32 pb-20 px-6 md:px-16">
<div class="max-w-6xl mx-auto">
<h1 class="text-4xl md:text-6xl font-bold mb-6">Films complets <span class="text-red-500">gratuits</span> en streaming</h1>
<p class="text-xl md:text-2xl text-gray-300 mb-8 max-w-3xl">Regardez des films complets en haute qualité, en français et sans publicité.</p>
<div class="flex flex-wrap gap-4 mb-12">
<span class="genre-tag bg-gray-800 text-white px-4 py-2 rounded-full cursor-pointer" data-genre="action">Action</span>
<span class="genre-tag bg-gray-800 text-white px-4 py-2 rounded-full cursor-pointer" data-genre="comedy">Comédie</span>
<span class="genre-tag bg-gray-800 text-white px-4 py-2 rounded-full cursor-pointer" data-genre="drama">Drame</span>
<span class="genre-tag bg-gray-800 text-white px-4 py-2 rounded-full cursor-pointer" data-genre="classic">Classiques</span>
<span class="genre-tag bg-gray-800 text-white px-4 py-2 rounded-full cursor-pointer" data-genre="horror">Horreur</span>
</div>
<button class="bg-red-600 hover:bg-red-700 text-white px-8 py-3 rounded-lg font-semibold text-lg transition flex items-center" id="watch-now-btn">
<i class="fas fa-play mr-2"></i> Commencer à regarder
</button>
</div>
</section>
<!-- Main Content -->
<main class="px-6 md:px-16 py-12 max-w-7xl mx-auto">
<!-- Nouveautés -->
<section class="mb-16" id="films">
<h2 class="text-2xl font-bold mb-6 flex items-center">
<span class="w-1 h-8 bg-red-500 mr-3"></span>
NOUVEAUTÉS GRATUITES
</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="new-movies">
<!-- Movie cards will be added here by JavaScript -->
</div>
</section>
<!-- Films Classiques -->
<section class="mb-16" id="classic-movies-section">
<h2 class="text-2xl font-bold mb-6 flex items-center">
<span class="w-1 h-8 bg-red-500 mr-3"></span>
CLASSIQUES DU CINÉMA FRANÇAIS
</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="classic-movies">
<!-- Movie cards will be added here by JavaScript -->
</div>
</section>
<!-- Films d'Action -->
<section class="mb-16" id="action-movies-section">
<h2 class="text-2xl font-bold mb-6 flex items-center">
<span class="w-1 h-8 bg-red-500 mr-3"></span>
FILMS D'ACTION COMPLETS
</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="action-movies">
<!-- Movie cards will be added here by JavaScript -->
</div>
</section>
<!-- Comédies -->
<section class="mb-16" id="comedy-movies-section">
<h2 class="text-2xl font-bold mb-6 flex items-center">
<span class="w-1 h-8 bg-red-500 mr-3"></span>
COMÉDIES FRANÇAISES
</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6" id="comedy-movies">
<!-- Movie cards will be added here by JavaScript -->
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-gray-900 py-12 px-6 md:px-16">
<div class="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold text-red-500 mb-4">FLIXVISION</h3>
<p class="text-gray-400">Plateforme de streaming de films du domaine public et de contenus gratuits.</p>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Navigation</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Accueil</a></li>
<li><a href="#films" class="text-gray-400 hover:text-white transition">Films</a></li>
<li><a href="#series" class="text-gray-400 hover:text-white transition">Séries</a></li>
<li><a href="#documentaires" class="text-gray-400 hover:text-white transition">Documentaires</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Informations</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">À propos</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Politique de confidentialité</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Conditions d'utilisation</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Nous suivre</h4>
<div class="flex space-x-4">
<a href="#" class="w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center text-white hover:bg-red-500 transition">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center text-white hover:bg-red-500 transition">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center text-white hover:bg-red-500 transition">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center text-white hover:bg-red-500 transition">
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
</div>
<div class="max-w-7xl mx-auto pt-8 mt-8 border-t border-gray-800 text-center text-gray-500">
<p>© 2023 FlixVision. Tous droits réservés. Tous les films sont disponibles gratuitement dans le domaine public.</p>
</div>
</footer>
<!-- Video Player Container (hidden by default) -->
<div id="video-container" class="video-container hidden">
<div class="video-player">
<button id="close-btn" class="close-btn">
<i class="fas fa-times"></i>
</button>
<iframe id="video-player" width="100%" height="600" src="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<script>
// Movie data with complete films (public domain or free on YouTube)
const movies = [
// New free movies (French versions)
{
title: "Le Fabuleux Destin d'Amélie Poulain",
poster: "https://m.media-amazon.com/images/M/MV5BNDg4NjM1YjMtYmNhZC00MjM0LWFiZmYtNGY1YjA3MzZmODc5XkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_FMjpg_UX1000_.jpg",
year: 2001,
rating: 8.3,
category: "new",
video: "https://www.youtube.com/embed/sECzJY07oK4",
lang: "fr"
},
{
title: "Intouchables",
poster: "https://m.media-amazon.com/images/M/MV5BMTYxNDA3MDQwNl5BMl5BanBnXkFtZTcwNTU4Mzc1Nw@@._V1_FMjpg_UX1000_.jpg",
year: 2011,
rating: 8.5,
category: "new",
video: "https://www.youtube.com/embed/34WIbmXkewU",
lang: "fr"
},
{
title: "La Haine",
poster: "https://m.media-amazon.com/images/M/MV5BNDNiOTA5YjktY2Q0Ni00ODgzLWE5MWItNGExM2U1OTBkMDZiXkEyXkFqcGdeQXVyMjQzMzQzODY@._V1_FMjpg_UX1000_.jpg",
year: 1995,
rating: 8.1,
category: "new",
video: "https://www.youtube.com/embed/6J0Q4kQo25c",
lang: "fr"
},
{
title: "Le Dîner de Cons",
poster: "https://m.media-amazon.com/images/M/MV5BMTQ0NTk3MTQ5Nl5BMl5BanBnXkFtZTgwMDU2MTE5MDE@._V1_FMjpg_UX1000_.jpg",
year: 1998,
rating: 7.7,
category: "new",
video: "https://www.youtube.com/embed/5HZR1vAD9cA",
lang: "fr"
},
{
title: "Bienvenue chez les Ch'tis",
poster: "https://m.media-amazon.com/images/M/MV5BMTc1ODk1NjQ4N15BMl5BanBnXkFtZTcwNzMzNTQ5MQ@@._V1_FMjpg_UX1000_.jpg",
year: 2008,
rating: 7.1,
category: "new",
video: "https://www.youtube.com/embed/5hGzB0OO0QY",
lang: "fr"
},
// Classic French movies
{
title: "Les Tontons Flingueurs",
poster: "https://m.media-amazon.com/images/M/MV5BMTU0MjU1OTI0N15BMl5BanBnXkFtZTgwMDQxNDM5MzE@._V1_FMjpg_UX1000_.jpg",
year: 1963,
rating: 8.0,
category: "classic",
video: "https://www.youtube.com/embed/5hGzB0OO0QY",
lang: "fr"
},
{
title: "Le Salaire de la Peur",
poster: "https://m.media-amazon.com/images/M/MV5BZDdkNzMwZmUtY2Q5MS00ZmM2LWJhYjItYTBjMWY0MGM4MDRjXkEyXkFqcGdeQXVyNTA4NzY1MzY@._V1_FMjpg_UX1000_.jpg",
year: 1953,
rating: 8.1,
category: "classic",
video: "https://www.youtube.com/embed/0VQRkulo9JY",
lang: "fr"
},
{
title: "Les Vacances de Monsieur Hulot",
poster: "https://m.media-amazon.com/images/M/MV5BMTQ1Mzg3Nzk0N15BMl5BanBnXkFtZTgwNTk2NTcxMTE@._V1_FMjpg_UX1000_.jpg",
year: 1953,
rating: 7.9,
category: "classic",
video: "https://www.youtube.com/embed/3I5QlVYFG50",
lang: "fr"
},
{
title: "Le Samouraï",
poster: "https://m.media-amazon.com/images/M/MV5BYjBkODU3NGItNGY2Ni00M2RlLTkzMzUtMjc1MmYzYjQ3Mzg5XkEyXkFqcGdeQXVyMjUzOTY1NTc@._V1_FMjpg_UX1000_.jpg",
year: 1967,
rating: 8.0,
category: "classic",
video: "https://www.youtube.com/embed/6SfN1v0R5u8",
lang: "fr"
},
{
title: "Le Cercle Rouge",
poster: "https://m.media-amazon.com/images/M/MV5BNmI0Y2RmYTMtNjNjNy00YjVlLThhNzktNGQ1MWY3YzcxNmY3XkEyXkFqcGdeQXVyMjUzOTY1NTc@._V1_FMjpg_UX1000_.jpg",
year: 1970,
rating: 8.1,
category: "classic",
video: "https://www.youtube.com/embed/zvT1zYgX6j4",
lang: "fr"
},
// Action movies (French versions)
{
title: "Léon",
poster: "https://m.media-amazon.com/images/M/MV5BODllNWE0MmEtYjUwZi00ZjY3LThmNmQtZjZlMjI2YTZjYmQ0XkEyXkFqcGdeQXVyNTc1NTQxODI@._V1_FMjpg_UX1000_.jpg",
year: 1994,
rating: 8.5,
category: "action",
video: "https://www.youtube.com/embed/aNQqoExfQsg",
lang: "fr"
},
{
title: "Nikita",
poster: "https://m.media-amazon.com/images/M/MV5BMTM0NjI0NzEyMV5BMl5BanBnXkFtZTcwMDQyMjYyMQ@@._V1_FMjpg_UX1000_.jpg",
year: 1990,
rating: 7.3,
category: "action",
video: "https://www.youtube.com/embed/Rh9Fv6HUr2E",
lang: "fr"
},
{
title: "Banlieue 13",
poster: "https://m.media-amazon.com/images/M/MV5BMTU0OTc3ODk4Ml5BMl5BanBnXkFtZTgwMDA4MzkxMDE@._V1_FMjpg_UX1000_.jpg",
year: 2004,
rating: 7.0,
category: "action",
video: "https://www.youtube.com/embed/Nj7Yf0tUf1w",
lang: "fr"
},
{
title: "Taxi",
poster: "https://m.media-amazon.com/images/M/MV5BM2FiOWE5MjctYzU5YS00NmUwLThjNWItZDBiYmNhYTk0ZWI5XkEyXkFqcGdeQXVyMjQzMzQzODY@._V1_FMjpg_UX1000_.jpg",
year: 1998,
rating: 6.9,
category: "action",
video: "https://www.youtube.com/embed/Nj7Yf0tUf1w",
lang: "fr"
},
{
title: "Le Professionnel",
poster: "https://m.media-amazon.com/images/M/MV5BMTY3NTY4NjUzOV5BMl5BanBnXkFtZTgwODk1OTAwMzE@._V1_FMjpg_UX1000_.jpg",
year: 1981,
rating: 7.5,
category: "action",
video: "https://www.youtube.com/embed/0VQRkulo9JY",
lang: "fr"
},
// French comedies
{
title: "La Grande Vadrouille",
poster: "https://m.media-amazon.com/images/M/MV5BMWM0NWJjODctYzVhZS00ZTI1LTk0ZDYtM2Q5Y2UwOTY4YjFmXkEyXkFqcGdeQXVyMjQzMzQzODY@._V1_FMjpg_UX1000_.jpg",
year: 1966,
rating: 7.9,
category: "comedy",
video: "https://www.youtube.com/embed/5hGzB0OO0QY",
lang: "fr"
},
{
title: "Les Visiteurs",
poster: "https://m.media-amazon.com/images/M/MV5BN2Y0Y2FiYjItYjQ5Yy00ZTAwLTg0NTgtOTAyYzEzZjU5YjljXkEyXkFqcGdeQXVyMjQzMzQzODY@._V1_FMjpg_UX1000_.jpg",
year: 1993,
rating: 7.1,
category: "comedy",
video: "https://www.youtube.com/embed/5hGzB0OO0QY",
lang: "fr"
},
{
title: "OSS 117 : Le Caire nid d'espions",
poster: "https://m.media-amazon.com/images/M/MV5BNjQwZDIyNjAtZGQxMC00OTY2LThkZDYtMTM5OWQzYzA0NDU5XkEyXkFqcGdeQXVyMjQzMzQzODY@._V1_FMjpg_UX1000_.jpg",
year: 2006,
rating: 7.0,
category: "comedy",
video: "https://www.youtube.com/embed/5hGzB0OO0QY",
lang: "fr"
},
{
title: "Astérix et Obélix : Mission Cléopâtre",
poster: "https://m.media-amazon.com/images/M/MV5BMTEwNjQ2OTM3ODVeQTJeQWpwZ15BbWU3MDQ2Njc2NTE@._V1_FMjpg_UX1000_.jpg",
year: 2002,
rating: 6.8,
category: "comedy",
video: "https://www.youtube.com/embed/5hGzB0OO0QY",
lang: "fr"
},
{
title: "Le Père Noël est une ordure",
poster: "https://m.media-amazon.com/images/M/MV5BNWYyM2Y0YzktYzQ5Yy00YzY0LTk5YzQtYzUwMWY5NzQ3NWY5XkEyXkFqcGdeQXVyMjQzMzQzODY@._V1_FMjpg_UX1000_.jpg",
year: 1982,
rating: 7.6,
category: "comedy",
video: "https://www.youtube.com/embed/5hGzB0OO0QY",
lang: "fr"
}
];
// Function to create movie card
function createMovieCard(movie) {
const card = document.createElement('div');
card.className = 'movie-card relative rounded-lg overflow-hidden cursor-pointer';
card.innerHTML = `
<div class="relative">
<img src="${movie.poster}" alt="${movie.title}" class="movie-poster" onerror="this.onerror=null;this.src='https://via.placeholder.com/300x450?text=Image+Not+Available'">
<div class="free-badge">GRATUIT</div>
<div class="play-icon absolute inset-0 flex items-center justify-center bg-black bg-opacity-50 rounded-lg">
<div class="w-12 h-12 bg-red-500 rounded-full flex items-center justify-center">
<i class="fas fa-play text-white"></i>
</div>
</div>
</div>
<div class="mt-3">
<h3 class="font-semibold truncate">${movie.title}</h3>
<div class="flex justify-between text-sm text-gray-400 mt-1">
<span>${movie.year}</span>
<span class="flex items-center">
<i class="fas fa-star text-yellow-400 mr-1"></i>
${movie.rating}
</span>
</div>
</div>
`;
// Play movie when clicked
card.addEventListener('click', () => {
playMovie(movie.video, movie.title);
});
return card;
}
// Function to play movie
function playMovie(videoUrl, title) {
const videoContainer = document.getElementById('video-container');
const videoPlayer = document.getElementById('video-player');
const closeBtn = document.getElementById('close-btn');
// Set video source
videoPlayer.src = videoUrl + "?autoplay=1";
// Show video container
videoContainer.classList.remove('hidden');
// Close button event
closeBtn.addEventListener('click', () => {
videoContainer.classList.add('hidden');
videoPlayer.src = "";
});
// Close when clicking outside
videoContainer.addEventListener('click', (e) => {
if (e.target === videoContainer) {
videoContainer.classList.add('hidden');
videoPlayer.src = "";
}
});
}
// Function to render movies by category
function renderMovies() {
const newContainer = document.getElementById('new-movies');
const classicContainer = document.getElementById('classic-movies');
const actionContainer = document.getElementById('action-movies');
const comedyContainer = document.getElementById('comedy-movies');
// Clear containers
newContainer.innerHTML = '';
classicContainer.innerHTML = '';
actionContainer.innerHTML = '';
comedyContainer.innerHTML = '';
// Filter and render movies by category
movies.forEach(movie => {
const card = createMovieCard(movie);
if (movie.category === 'new') {
newContainer.appendChild(card);
} else if (movie.category === 'classic') {
classicContainer.appendChild(card);
} else if (movie.category === 'action') {
actionContainer.appendChild(card);
} else if (movie.category === 'comedy') {
comedyContainer.appendChild(card);
}
});
}
// Initialize the page
document.addEventListener('DOMContentLoaded', () => {
renderMovies();
// Navigation links
document.getElementById('home-link').addEventListener('click', (e) => {
e.preventDefault();
window.scrollTo({top: 0, behavior: 'smooth'});
});
document.getElementById('movies-link').addEventListener('click', (e) => {
e.preventDefault();
document.getElementById('films').scrollIntoView({behavior: 'smooth'});
});
// Watch now button
document.getElementById('watch-now-btn').addEventListener('click', () => {
// Play first movie
playMovie(movies[0].video, movies[0].title);
});
// Genre tags
document.querySelectorAll('.genre-tag').forEach(tag => {
tag.addEventListener('click', (e) => {
const genre = e.target.getAttribute('data-genre');
let sectionId = '';
if (genre === 'action') sectionId = 'action-movies-section';
else if (genre === 'comedy') sectionId = 'comedy-movies-section';
else if (genre === 'classic') sectionId = 'classic-movies-section';
else if (genre === 'drama') sectionId = 'films';
else if (genre === 'horror') sectionId = 'films';
document.getElementById(sectionId).scrollIntoView({behavior: 'smooth'});
});
});
// Language selector
document.querySelectorAll('.language-dropdown a').forEach(link => {
link.addEventListener('click', (e) => {
e.preventDefault();
const lang = e.target.getAttribute('data-lang');
alert(`Langue changée en ${e.target.textContent}. Cette fonctionnalité serait implémentée avec une vraie traduction dans une application complète.`);
});
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/flix-vision" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |