Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Netflix Clone</title> | |
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> | |
<style> | |
body { | |
background-color: #141414; | |
color: #fff; | |
} | |
.fade-in { | |
animation: fadeIn 1s forwards; | |
opacity: 0; | |
} | |
@keyframes fadeIn { | |
from { opacity: 0; } | |
to { opacity: 1; } | |
} | |
</style> | |
</head> | |
<body class="font-sans"> | |
<!-- Header --> | |
<header class="bg-black bg-opacity-80 fixed top-0 left-0 right-0 z-10"> | |
<div class="container mx-auto py-4 px-6 flex justify-between items-center"> | |
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Logonetflix.png" alt="Netflix Logo" class="w-32"> | |
<nav> | |
<ul class="flex space-x-6"> | |
<li><a href="#" class="text-white hover:text-gray-300">Home</a></li> | |
<li><a href="#" class="text-white hover:text-gray-300">TV Shows</a></li> | |
<li><a href="#" class="text-white hover:text-gray-300">Movies</a></li> | |
<li><a href="#" class="text-white hover:text-gray-300">My List</a></li> | |
</ul> | |
</nav> | |
</div> | |
</header> | |
<!-- Hero Section --> | |
<section class="bg-gradient-to-b from-black to-transparent h-screen flex items-center justify-center mt-20"> | |
<div class="container mx-auto px-6 text-center fade-in"> | |
<h1 class="text-5xl font-bold mb-4">Unlimited movies, TV shows, and more.</h1> | |
<p class="text-2xl mb-8">Watch anywhere. Cancel anytime.</p> | |
<input type="email" placeholder="Email Address" class="px-4 py-2 rounded-md text-black w-full md:w-1/2 inline-block"> | |
<button class="bg-red-600 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-md ml-2">Get Started</button> | |
</div> | |
</section> | |
<!-- Movie Listings --> | |
<section class="bg-black py-12"> | |
<div class="container mx-auto px-6"> | |
<h2 class="text-3xl font-bold mb-6">Popular on Netflix</h2> | |
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4"> | |
<!-- Movie 1 --> | |
<div class="fade-in"> | |
<img src="https://picsum.photos/200/300" alt="Movie 1" class="w-full h-auto"> | |
</div> | |
<!-- Movie 2 --> | |
<div class="fade-in"> | |
<img src="https://picsum.photos/201/300" alt="Movie 2" class="w-full h-auto"> | |
</div> | |
<!-- Movie 3 --> | |
<div class="fade-in"> | |
<img src="https://picsum.photos/202/300" alt="Movie 3" class="w-full h-auto"> | |
</div> | |
<!-- Movie 4 --> | |
<div class="fade-in"> | |
<img src="https://picsum.photos/203/300" alt="Movie 4" class="w-full h-auto"> | |
</div> | |
<!-- Movie 5 --> | |
<div class="fade-in"> | |
<img src="https://picsum.photos/204/300" alt="Movie 5" class="w-full h-auto"> | |
</div> | |
<!-- Movie 6 --> | |
<div class="fade-in"> | |
<img src="https://picsum.photos/205/300" alt="Movie 6" class="w-full h-auto"> | |
</div> | |
</div> | |
</div> | |
</section> | |
<!-- Footer --> | |
<footer class="bg-black py-8"> | |
<div class="container mx-auto px-6 text-center"> | |
<p class="text-gray-400">© 2023 Netflix Clone</p> | |
</div> | |
</footer> | |
<script> | |
// Simple fade-in animation | |
const elements = document.querySelectorAll('.fade-in'); | |
elements.forEach((element, index) => { | |
setTimeout(() => { | |
element.style.opacity = 1; | |
}, index * 200); // Stagger the animation | |
}); | |
</script> | |
</body> | |
</html> | |