|
|
| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>μ‘°μ μν</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'); |
| |
| #movie-player { |
| transition: opacity 0.3s ease; |
| } |
| |
| .aspect-w-16 { |
| position: relative; |
| padding-bottom: 56.25%; |
| } |
| |
| .aspect-h-9 { |
| position: absolute; |
| top: 0; |
| right: 0; |
| bottom: 0; |
| left: 0; |
| } |
| |
| body { |
| font-family: 'Poppins', sans-serif; |
| background-color: #0f172a; |
| color: #f8fafc; |
| } |
| |
| .hero { |
| background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), |
| url('https://image.tmdb.org/t/p/original/wwemzKWzjKYJFfCeiB57q3r4Bcm.png'); |
| background-size: cover; |
| background-position: center; |
| height: 80vh; |
| } |
| |
| .movie-card { |
| transition: transform 0.3s ease; |
| } |
| |
| .movie-card:hover { |
| transform: scale(1.05); |
| } |
| |
| .movie-card:hover .play-icon { |
| opacity: 1; |
| } |
| |
| .play-icon { |
| opacity: 0; |
| transition: opacity 0.3s ease; |
| } |
| |
| .category-btn.active { |
| background-color: #3b82f6; |
| color: white; |
| } |
| </style> |
| </head> |
| <body> |
| |
| <nav class="bg-gray-900 bg-opacity-90 fixed w-full z-10"> |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| <div class="flex items-center justify-between h-16"> |
| <div class="flex items-center"> |
| <div class="flex-shrink-0"> |
| <span class="text-blue-500 font-bold text-2xl">CineStream</span> |
| </div> |
| <div class="hidden md:block"> |
| <div class="ml-10 flex items-baseline space-x-4"> |
| <a href="index.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">ν</a> |
| <a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">μν</a> |
| <a href="tv.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">TV νλ‘κ·Έλ¨</a> |
| <a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">μ΅μ κ°λ΄μ</a> |
| <a href="mylist.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">λ΄ λͺ©λ‘</a> |
| </div> |
| </div> |
| </div> |
| <div class="hidden md:block"> |
| <div class="ml-4 flex items-center md:ml-6"> |
| <div class="relative"> |
| <input type="text" placeholder="Search movies..." class="bg-gray-800 text-white px-4 py-1 rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 w-64"> |
| <button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"> |
| <i class="fas fa-search"></i> |
| </button> |
| </div> |
| <button class="ml-4 bg-blue-600 hover:bg-blue-700 text-white px-4 py-1 rounded-full text-sm"> |
| Sign In |
| </button> |
| </div> |
| </div> |
| <div class="-mr-2 flex md:hidden"> |
| <button type="button" id="mobile-menu-button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none"> |
| <span class="sr-only">Open main menu</span> |
| <i class="fas fa-bars"></i> |
| </button> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="md:hidden hidden" id="mobile-menu"> |
| <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3"> |
| <a href="#" class="text-white block px-3 py-2 rounded-md text-base font-medium">ν </a> |
| <a href="#" class="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">μμ μν</a> |
| <a href="#" class="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">μλμν</a> |
| <a href="#" class="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">λ ¨μκ·Ή</a> |
| <a href="#" class="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">λ§μ΄λ¦¬μ€νΈ</a> |
| <div class="pt-4 pb-3 border-t border-gray-700"> |
| <div class="flex items-center px-5"> |
| <input type="text" placeholder="Search movies..." class="bg-gray-800 text-white px-4 py-1 rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 w-full"> |
| <button class="ml-2 bg-blue-600 hover:bg-blue-700 text-white px-4 py-1 rounded-full text-sm"> |
| <i class="fas fa-search"></i> |
| </button> |
| </div> |
| <div class="mt-3 px-2"> |
| <button class="w-full bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm"> |
| Sign In |
| </button> |
| </div> |
| </div> |
| </div> |
| </div> |
| </nav> |
| |
| |
| <section class="hero flex items-center justify-center text-center pt-16"> |
| <div class="px-4 sm:px-6 lg:px-8 max-w-3xl"> |
| <h1 class="text-4xl md:text-5xl font-bold mb-4">μΈκΈ° TV νλ‘κ·Έλ¨κ³Ό μ리μ¦</h1> |
| <p class="text-lg mb-8">μ΅μ μνΌμλλΆν° μκ²° μ리μ¦κΉμ§ λͺ¨λ μ¬κΈ°μ</p> |
| <div class="flex flex-col sm:flex-row justify-center gap-4"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium flex items-center justify-center"> |
| <i class="fas fa-play mr-2"></i> μΈκΈ° μλ¦¬μ¦ λ³΄κΈ° |
| </button> |
| <button class="bg-gray-800 hover:bg-gray-700 text-white px-6 py-3 rounded-lg font-medium flex items-center justify-center"> |
| <i class="fas fa-info-circle mr-2"></i> μ κ· νλ‘κ·Έλ¨ |
| </button> |
| </div> |
| </div> |
| </section> |
| |
| |
| <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> |
| |
| |
| |
| <div class="mb-12"> |
| <div class="flex justify-between items-center mb-4"> |
| <h2 class="text-2xl font-bold">μΆμ² μν</h2> |
| <a href="#" class="text-blue-500 hover:underline">λͺ¨λ νλ‘κ·Έλ¨ λ³΄κΈ°</a> |
| </div> |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4"> |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/1pdfLvkbY9ohJlCjQH2CZjjYVvJ.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">Spider-Man: No Way Home</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2021</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 8.2 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/1g0dhYtq4irTY1GPXvft6k4YLjm.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">The Batman</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 7.9 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/6DrHO1jr3qVrViUO6s6kFiAGM7.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">Dune</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2021</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 8.0 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/8Y43POKjjKDGI9MH89NW0NAzzp8.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">Top Gun: Maverick</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 8.3 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/8Vt6mWEReuy4Of61Lnj5Xj704m8.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">Lightyear</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 6.1 |
| </span> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="mb-12"> |
| <div class="flex justify-between items-center mb-4"> |
| <h2 class="text-2xl font-bold">μ΅κ·Ό λ ¨μκ·Ή </h2> |
| <a href="#" class="text-blue-500 hover:underline">λͺ¨λ νλ‘κ·Έλ¨ λ³΄κΈ°</a> |
| </div> |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4"> |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/odVv1sqVs0KxBXiA8bhIBlPgalx.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">Morbius</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 6.4 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/6zbKgwgaaCyyBXE4Sun4oWQfQmi.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">The Northman</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 7.3 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/rugyJdeoJm7cSJL1q4jBpTNbxyU.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">Doctor Strange 2</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 7.5 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/74xTEgt7R36Fpooo50r9T25onhq.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">The Batman</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 7.9 |
| </span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="movie-card relative rounded-lg overflow-hidden bg-gray-800"> |
| <img src="https://image.tmdb.org/t/p/w500/1BIoJGKbXjdFDAqUEiA2VHqkK1Z.jpg" alt="Movie Poster" class="w-full h-64 object-cover"> |
| <div class="absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center play-icon"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white rounded-full w-12 h-12 flex items-center justify-center"> |
| <i class="fas fa-play"></i> |
| </button> |
| </div> |
| <div class="p-3"> |
| <h3 class="font-semibold truncate">Uncharted</h3> |
| <div class="flex justify-between items-center text-sm text-gray-400 mt-1"> |
| <span>2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> 7.0 |
| </span> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </main> |
| |
| |
| <div id="movie-player" class="fixed inset-0 bg-black bg-opacity-90 z-50 hidden flex-col items-center justify-center"> |
| <div class="w-full max-w-4xl relative"> |
| <button id="close-player" class="absolute -top-10 right-0 text-white text-2xl hover:text-gray-300"> |
| <i class="fas fa-times"></i> |
| </button> |
| <div class="aspect-w-16 aspect-h-9"> |
| <iframe id="player-iframe" class="w-full h-full" src="" frameborder="0" allowfullscreen></iframe> |
| </div> |
| <div class="bg-gray-900 p-4 text-white"> |
| <h2 id="player-title" class="text-xl font-bold mb-2">μν μ λͺ©</h2> |
| <div class="flex items-center text-sm text-gray-400 mb-4"> |
| <span id="player-year" class="mr-4">2022</span> |
| <span class="flex items-center"> |
| <i class="fas fa-star text-yellow-400 mr-1"></i> |
| <span id="player-rating">8.0</span> |
| </span> |
| </div> |
| <p id="player-description" class="text-gray-300"> |
| μν μ€λͺ
μ΄ μ¬κΈ°μ νμλ©λλ€. μνμ μ€κ±°λ¦¬μ μ£Όμ μ 보λ₯Ό κ°λ΅νκ² μκ°νλ λ΄μ©μ
λλ€. |
| </p> |
| </div> |
| </div> |
| </div> |
|
|
| |
| <footer class="bg-gray-900 text-gray-400 py-12"> |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-8"> |
| <div> |
| <h3 class="text-white font-semibold mb-4">νμ¬</h3> |
| <ul class="space-y-2"> |
| <li><a href="#" class="hover:text-white">νμ¬ μκ°</a></li> |
| <li><a href="#" class="hover:text-white">μ±μ©</a></li> |
| <li><a href="#" class="hover:text-white">λ¬Έμ</a></li> |
| <li><a href="#" class="hover:text-white">보λ μλ£</a></li> |
| </ul> |
| </div> |
| <div> |
| <h3 class="text-white font-semibold mb-4">λμλ§</h3> |
| <ul class="space-y-2"> |
| <li><a href="#" class="hover:text-white">μμ£Ό 묻λ μ§λ¬Έ</a></li> |
| <li><a href="#" class="hover:text-white">κ³μ </a></li> |
| <li><a href="#" class="hover:text-white">κ°μΈμ 보</a></li> |
| <li><a href="#" class="hover:text-white">μ΄μ© μ½κ΄</a></li> |
| </ul> |
| </div> |
| <div> |
| <h3 class="text-white font-semibold mb-4">λλ¬λ³΄κΈ°</h3> |
| <ul class="space-y-2"> |
| <li><a href="#" class="hover:text-white">μ‘°μ μμ
</a></li> |
| <li><a href="#" class="hover:text-white">μ‘°μ λ
Έλλ°©</a></li> |
| <li><a href="#" class="hover:text-white">μ‘°μ μ€μTV</a></li> |
| <li><a href="#" class="hover:text-white">κ΅κ°λ³</a></li> |
| </ul> |
| </div> |
| <div> |
| <h3 class="text-white font-semibold mb-4">Connect</h3> |
| <div class="flex space-x-4"> |
| <a href="#" class="hover:text-white"><i class="fab fa-facebook-f"></i></a> |
| <a href="#" class="hover:text-white"><i class="fab fa-twitter"></i></a> |
| <a href="#" class="hover:text-white"><i class="fab fa-instagram"></i></a> |
| <a href="#" class="hover:text-white"><i class="fab fa-youtube"></i></a> |
| </div> |
| <div class="mt-4"> |
| <p>Download our app</p> |
| <div class="flex space-x-2 mt-2"> |
| <button class="bg-black text-white px-3 py-1 rounded flex items-center"> |
| <i class="fab fa-apple mr-1"></i> μ± μ€ν μ΄ |
| </button> |
| <button class="bg-black text-white px-3 py-1 rounded flex items-center"> |
| <i class="fab fa-google-play mr-1"></i> νλ μ΄ μ€ν μ΄ |
| </button> |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="border-t border-gray-800 mt-8 pt-8 text-sm"> |
| <p>Β© 2022 μ¨λ€μ€νΈλ¦Ό. λͺ¨λ κΆλ¦¬ 보μ .</p> |
| </div> |
| </div> |
| </footer> |
| |
| <script> |
| |
| const movieCards = document.querySelectorAll('.movie-card'); |
| const moviePlayer = document.getElementById('movie-player'); |
| const closePlayer = document.getElementById('close-player'); |
| const playerIframe = document.getElementById('player-iframe'); |
| const playerTitle = document.getElementById('player-title'); |
| const playerYear = document.getElementById('player-year'); |
| const playerRating = document.getElementById('player-rating'); |
| const playerDescription = document.getElementById('player-description'); |
| |
| |
| const movieData = { |
| 'Spider-Man: No Way Home': { |
| year: '2021', |
| rating: '8.2', |
| description: 'μ€νμ΄λ맨μ μ μ²΄κ° λλ¬λλ©΄μ μΆμ΄ μμ ν λ€λ°λ νΌν° ν컀. λ¬Έμ λ₯Ό ν΄κ²°νκΈ° μν΄ λ₯ν° μ€νΈλ μΈμ§λ₯Ό μ°Ύμκ° λμμ μ²νμ§λ§, μ£Όλ¬Έμ΄ μλͺ»λμ΄ λ©ν°λ²μ€κ° μ΄λ¦¬λ©΄μ μνν μ λ€μ΄ λνλλ€.', |
| trailer: 'https://www.youtube.com/embed/JfVOs4VSpmA' |
| }, |
| 'The Batman': { |
| year: '2022', |
| rating: '7.9', |
| description: 'κ³ λ΄ μμ μ΄λ μμ λ°°ννλ λ°°νΈλ§¨. λΆμ ν μ¨μΈ κ°μ νκ³μ λΈλ£¨μ€ μ¨μΈμ κ³ λ΄μ λΆν¨ν 거리λ₯Ό μ μλ‘ μ¬ννλ€. μμκ»λΌ κ°μ μ°μμ΄μΈλ² 리λ€λ¬κ° λνλλ©΄μ λ°°νΈλ§¨μ μλ‘μ΄ μ‘°μ¬λ₯Ό μμνλ€.', |
| trailer: 'https://www.youtube.com/embed/mqqft2x_Aa4' |
| }, |
| |
| }; |
| |
| |
| movieCards.forEach(card => { |
| card.addEventListener('click', function() { |
| const title = this.querySelector('h3').textContent; |
| const data = movieData[title] || { |
| year: this.querySelector('span:first-child').textContent, |
| rating: this.querySelector('span:last-child span').textContent, |
| description: 'μ΄ μνμ λν μ€λͺ
μ μ€λΉ μ€μ
λλ€.', |
| trailer: 'https://www.youtube.com/embed/dQw4w9WgXcQ' |
| }; |
| |
| playerTitle.textContent = title; |
| playerYear.textContent = data.year; |
| playerRating.textContent = data.rating; |
| playerDescription.textContent = data.description; |
| playerIframe.src = data.trailer; |
| |
| moviePlayer.classList.remove('hidden'); |
| document.body.style.overflow = 'hidden'; |
| }); |
| }); |
| |
| |
| closePlayer.addEventListener('click', function() { |
| moviePlayer.classList.add('hidden'); |
| playerIframe.src = ''; |
| document.body.style.overflow = 'auto'; |
| }); |
| |
| |
| moviePlayer.addEventListener('click', function(e) { |
| if (e.target === this) { |
| moviePlayer.classList.add('hidden'); |
| playerIframe.src = ''; |
| document.body.style.overflow = 'auto'; |
| } |
| }); |
| |
| |
| document.getElementById('mobile-menu-button').addEventListener('click', function() { |
| const menu = document.getElementById('mobile-menu'); |
| menu.classList.toggle('hidden'); |
| }); |
| |
| |
| const categoryButtons = document.querySelectorAll('.category-btn'); |
| categoryButtons.forEach(button => { |
| button.addEventListener('click', function() { |
| categoryButtons.forEach(btn => btn.classList.remove('active')); |
| this.classList.add('active'); |
| }); |
| }); |
| |
| |
| document.querySelector('input[type="text"]').addEventListener('keyup', function(e) { |
| if (e.key === 'Enter') { |
| alert('κ²μμ΄: ' + this.value); |
| this.value = ''; |
| } |
| }); |
| </script> |
| </body> |
| </html> |