-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
101 lines (83 loc) · 5.43 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Rakuten Family Kids & Sports IPTV</title>
<!-- SEO Meta Tags -->
<meta name="description" content="Stream Rakuten Family Kids and Sports IPTV live with an advanced, high-performance video player. Supports all devices and formats.">
<meta name="keywords" content="IPTV, Rakuten, Family, Kids, Sports, HLS, Streaming, HTML5, Live TV">
<meta name="robots" content="index, follow">
<!-- Open Graph Tags -->
<meta property="og:title" content="Rakuten Family Kids & Sports IPTV">
<meta property="og:description" content="Watch Rakuten Family Kids and Sports IPTV live with advanced streaming technology.">
<meta property="og:image" content="assets/images/og-banner.jpg">
<meta property="og:url" content="https://rakuten-family.vercel.app/">
<meta property="og:type" content="website">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Rakuten Family Kids & Sports IPTV">
<meta name="twitter:description" content="Enjoy Rakuten Family Kids and Sports IPTV with an optimized HLS player.">
<meta name="twitter:image" content="assets/images/og-banner.jpg">
<!-- Favicon -->
<link rel="icon" href="assets/images/favicon.ico" type="image/x-icon">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Alpine.js -->
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- HLS.js (for HLS stream support on non-Safari browsers) -->
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
</head>
<body class="bg-gray-100 font-sans" x-data="videoPlayerApp" x-init="init">
<header class="bg-red-600 text-white py-4">
<div class="container mx-auto px-4 flex justify-between items-center">
<img src="assets/images/logo.png" alt="Rakuten Logo" class="w-16 h-16 rounded-full float-animation">
<h1 class="text-2xl font-bold animate__animated animate__fadeIn">Rakuten TV</h1>
<button @click="showChannelList = !showChannelList" class="bg-white text-red-600 px-4 py-2 rounded-full hover:bg-red-100 transition duration-300 animate__animated animate__pulse">
<i class="fas fa-list-ul mr-2"></i>
</button>
</div>
</header>
<main class="container mx-auto px-4 py-8">
<div x-show="isLoading" class="text-center py-8">
<i class="fas fa-spinner fa-spin fa-3x text-red-600"></i>
</div>
<div x-show="!isLoading && !error" class="player-wrapper bg-black rounded-lg shadow-lg overflow-hidden transition-all duration-300 ease-in-out" :class="{ 'minimized': isMinimized }">
<video id="videoPlayer" class="w-full h-full" controls></video>
</div>
<div x-show="showChannelList" x-cloak @click.away="showChannelList = false" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate__animated animate__fadeIn">
<div class="bg-white rounded-lg p-6 w-full max-w-4xl max-h-[80vh] overflow-y-auto">
<h2 class="text-2xl font-bold mb-4">Channel List</h2>
<div class="mb-4 flex space-x-2">
<button @click="activeCategory = 'all'" :class="{ 'bg-red-500 text-white': activeCategory === 'all', 'bg-gray-200': activeCategory !== 'all' }" class="px-4 py-2 rounded-full transition duration-300">All</button>
<button @click="activeCategory = 'kids'" :class="{ 'bg-red-500 text-white': activeCategory === 'kids', 'bg-gray-200': activeCategory !== 'kids' }" class="px-4 py-2 rounded-full transition duration-300">Kids</button>
<button @click="activeCategory = 'sports'" :class="{ 'bg-red-500 text-white': activeCategory === 'sports', 'bg-gray-200': activeCategory !== 'sports' }" class="px-4 py-2 rounded-full transition duration-300">Sports</button>
</div>
<ul class="space-y-4">
<template x-for="channel in filteredChannels()" :key="channel.id">
<li @click="changeChannel(channel)" class="bg-gray-100 hover:bg-red-100 p-4 rounded-lg cursor-pointer flex items-center space-x-4 transition duration-300">
<img :src="getChannelLogo(channel)" alt="Channel Logo" class="w-12 h-12 rounded-lg object-cover">
<div>
<h3 class="text-lg font-semibold" x-text="channel.name"></h3>
<p class="text-gray-600" x-text="channel.category"></p>
</div>
</li>
</template>
</ul>
</div>
</div>
</main>
<footer class="bg-gray-800 text-white py-4 text-center mt-8">
<p>© 2024 Rakuten Family. All rights reserved.</p>
</footer>
<!-- Custom JS -->
<script src="assets/js/script.js"></script>
</body>
</html>