reda20111gh's picture
TMDB offers a powerful API service that is free for personal use. Please ensure you attribute TMDB for any images or data you use. You can find the logos for attribution here.
a7479c8 verified
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CineVerse - Your Movie Universe</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="components/navbar.js"></script>
<script src="components/movie-card.js"></script>
<script src="components/footer.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#6d28d9',
secondary: '#f59e0b',
}
}
}
}
</script>
</head>
<body class="bg-gray-100 dark:bg-gray-900 transition-colors duration-300">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<!-- Hero Section -->
<section class="mb-12">
<div class="bg-gradient-to-r from-primary to-secondary rounded-2xl p-8 text-white">
<h1 class="text-4xl md:text-5xl font-bold mb-4">Discover Your Next Favorite Movie</h1>
<p class="text-xl mb-6">Explore thousands of films from all genres and eras</p>
<div class="relative max-w-2xl">
<input type="text" placeholder="Search movies, actors, genres..."
class="w-full py-3 px-4 rounded-full text-gray-800 focus:outline-none">
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-primary hover:bg-primary-dark p-2 rounded-full">
<i data-feather="search"></i>
</button>
</div>
</div>
</section>
<!-- Featured Movies -->
<section class="mb-12">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800 dark:text-white">Featured Movies</h2>
<a href="#" class="text-primary hover:underline">View All</a>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<movie-card
title="Inception"
year="2010"
rating="8.8"
genre="Sci-Fi"
image="http://static.photos/technology/640x360/1">
</movie-card>
<movie-card
title="The Shawshank Redemption"
year="1994"
rating="9.3"
genre="Drama"
image="http://static.photos/vintage/640x360/2">
</movie-card>
<movie-card
title="Parasite"
year="2019"
rating="8.6"
genre="Thriller"
image="http://static.photos/indoor/640x360/3">
</movie-card>
<movie-card
title="Pulp Fiction"
year="1994"
rating="8.9"
genre="Crime"
image="http://static.photos/vintage/640x360/4">
</movie-card>
</div>
</section>
<!-- Categories -->
<section class="mb-12">
<h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-6">Browse by Category</h2>
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4">
<a href="#" class="category-card bg-primary hover:bg-primary-dark text-white">Action</a>
<a href="#" class="category-card bg-secondary hover:bg-secondary-dark text-white">Comedy</a>
<a href="#" class="category-card bg-green-500 hover:bg-green-600 text-white">Drama</a>
<a href="#" class="category-card bg-red-500 hover:bg-red-600 text-white">Horror</a>
<a href="#" class="category-card bg-blue-500 hover:bg-blue-600 text-white">Sci-Fi</a>
<a href="#" class="category-card bg-purple-500 hover:bg-purple-600 text-white">Fantasy</a>
</div>
</section>
<!-- Trending Now -->
<section>
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800 dark:text-white">Trending Now</h2>
<a href="#" class="text-primary hover:underline">View All</a>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<movie-card
title="Dune"
year="2021"
rating="8.0"
genre="Sci-Fi"
image="http://static.photos/technology/640x360/5">
</movie-card>
<movie-card
title="The Batman"
year="2022"
rating="7.9"
genre="Action"
image="http://static.photos/black/640x360/6">
</movie-card>
<movie-card
title="Everything Everywhere All at Once"
year="2022"
rating="8.7"
genre="Adventure"
image="http://static.photos/abstract/640x360/7">
</movie-card>
<movie-card
title="Top Gun: Maverick"
year="2022"
rating="8.3"
genre="Action"
image="http://static.photos/aerial/640x360/8">
</movie-card>
</div>
</section>
</main>
<custom-footer></custom-footer>
<script>
feather.replace();
// Dark mode toggle
document.addEventListener('DOMContentLoaded', () => {
// Add loading state
const movieCards = document.querySelectorAll('movie-card');
movieCards.forEach(card => {
card.setAttribute('loading', 'true');
});
});
const darkModeToggle = document.getElementById('darkModeToggle');
if (darkModeToggle) {
darkModeToggle.addEventListener('click', () => {
document.documentElement.classList.toggle('dark');
localStorage.setItem('darkMode', document.documentElement.classList.contains('dark'));
});
}
// Check for saved dark mode preference
if (localStorage.getItem('darkMode') === 'true') {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>