test / player.html
Sfwrtuyrdfg's picture
Create a fully responsive, modern movie streaming website using HTML, CSS (or TailwindCSS), and JavaScript (or React/Vue).
1bfe13b verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Watch Movie - NeonFlix</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-dark: #0a0a0f;
--neon-purple: #8a2be2;
--neon-cyan: #00ffff;
--text-light: #ffffff;
--text-muted: #a0a0a0;
--glass-bg: rgba(255, 255, 255, 0.05);
}
body {
font-family: 'Poppins', sans-serif;
background-color: var(--bg-dark);
color: var(--text-light);
}
.neon-glow-purple {
box-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
}
.glass-card {
background: var(--glass-bg);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.player-container {
position: relative;
padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.player-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body class="min-h-screen">
<!-- Sticky Header -->
<header class="sticky top-0 z-50 backdrop-blur-md bg-gray-900/80 border-b border-gray-800 neon-glow-purple">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<a href="index.html">
<i data-feather="film" class="text-purple-500"></i>
</a>
<a href="index.html" class="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-purple-500 to-cyan-500">NeonFlix</a>
</div>
<div class="flex items-center space-x-4">
<a href="movie.html?id=123" class="glass-card py-2 px-4 rounded-full neon-border-purple text-white hover:neon-glow-purple transition-all flex items-center">
<i data-feather="arrow-left" class="mr-2"></i> Back to Details
</a>
</div>
</div>
</header>
<!-- Video Player -->
<main class="container mx-auto px-4 py-8">
<div class="mb-6">
<h1 class="text-2xl md:text-3xl font-bold mb-2">Cyber Revolution</h1>
<p class="text-gray-400">You are watching: Chapter 1 - The Awakening</p>
</div>
<div class="player-container glass-card rounded-xl overflow-hidden mb-6">
<iframe class="player-iframe" src="https://vidsrc.me/embed/123" allowfullscreen></iframe>
</div>
<!-- Player Controls -->
<div class="glass-card p-4 mb-8">
<div class="flex justify-between items-center mb-4">
<h2 class="font-semibold">Chapters</h2>
<div class="flex items-center text-sm text-gray-400">
<i data-feather="clock" class="w-4 h-4 mr-1"></i>
<span>2:15:30 remaining</span>
</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-5 gap-2">
<button class="py-2 px-3 rounded glass-card text-sm hover:bg-purple-900/30 transition-colors">Chapter 1</button>
<button class="py-2 px-3 rounded bg-gray-700 text-sm hover:bg-gray-600 transition-colors">Chapter 2</button>
<button class="py-2 px-3 rounded bg-gray-700 text-sm hover:bg-gray-600 transition-colors">Chapter 3</button>
<button class="py-2 px-3 rounded bg-gray-700 text-sm hover:bg-gray-600 transition-colors">Chapter 4</button>
<button class="py-2 px-3 rounded bg-gray-700 text-sm hover:bg-gray-600 transition-colors">Chapter 5</button>
</div>
</div>
<!-- Movie Info -->
<div class="glass-card p-6">
<h2 class="text-xl font-bold mb-4">About This Movie</h2>
<p class="text-gray-300 mb-4">
In a dystopian future where corporations rule the world and human emotions are commodified,
a rogue hacker discovers a revolutionary AI that could free humanity or destroy it completely.
</p>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div>
<h3 class="font-semibold text-purple-400 mb-1">Director</h3>
<p class="text-sm">Alexandra Chen</p>
</div>
<div>
<h3 class="font-semibold text-purple-400 mb-1">Release Year</h3>
<p class="text-sm">2023</p>
</div>
<div>
<h3 class="font-semibold text-purple-400 mb-1">Duration</h3>
<p class="text-sm">2h 15m</p>
</div>
<div>
<h3 class="font-semibold text-purple-400 mb-1">Rating</h3>
<p class="text-sm">PG-13</p>
</div>
</div>
</div>
</main>
<script>
feather.replace();
// Get movie ID from URL
document.addEventListener('DOMContentLoaded', function() {
const urlParams = new URLSearchParams(window.location.search);
const movieId = urlParams.get('id');
// In a real implementation, this would set the iframe src to vidsrc.me/embed/{movieId}
console.log("Playing movie with ID:", movieId);
});
</script>
</body>
</html>