Spaces:
Running
Running
Update index.html
Browse files- index.html +107 -37
index.html
CHANGED
|
@@ -3,58 +3,128 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>Video
|
| 7 |
-
<
|
| 8 |
-
<link
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
</head>
|
| 10 |
<body>
|
| 11 |
-
<div class="container">
|
| 12 |
-
<
|
| 13 |
-
|
| 14 |
-
<div class="
|
| 15 |
-
<
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
</div>
|
| 18 |
</header>
|
| 19 |
|
| 20 |
-
<
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
<div class="
|
| 26 |
-
<
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
</div>
|
| 29 |
</div>
|
| 30 |
-
</section>
|
| 31 |
|
| 32 |
-
|
| 33 |
-
<div class="
|
| 34 |
-
<
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
</div>
|
| 42 |
-
<div class="
|
| 43 |
-
<
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
<i class="fas fa-expand"></i>
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
</div>
|
| 49 |
</div>
|
| 50 |
-
</
|
| 51 |
-
</
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
<
|
| 54 |
-
|
|
|
|
| 55 |
</footer>
|
| 56 |
</div>
|
| 57 |
|
| 58 |
-
<
|
|
|
|
|
|
|
|
|
|
| 59 |
</body>
|
| 60 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>HF Video Library</title>
|
| 7 |
+
<!-- Material Icons -->
|
| 8 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
|
| 9 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/material-design-icons/4.0.0/font/MaterialIcons-Regular.ttf" rel="stylesheet">
|
| 10 |
+
<!-- Material Components Web -->
|
| 11 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/material-components-web/14.0.0/material-components-web.min.css" rel="stylesheet">
|
| 12 |
+
<!-- Plyr.js for enhanced video player -->
|
| 13 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/plyr/3.7.8/plyr.css">
|
| 14 |
+
<!-- Custom styles -->
|
| 15 |
+
<link rel="stylesheet" href="style.css">
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
+
<div class="app-container">
|
| 19 |
+
<!-- App Header -->
|
| 20 |
+
<header class="app-header">
|
| 21 |
+
<div class="header-content">
|
| 22 |
+
<div class="logo-container">
|
| 23 |
+
<i class="fas fa-film logo-icon"></i>
|
| 24 |
+
<h1 class="app-title">HF Video Library</h1>
|
| 25 |
+
</div>
|
| 26 |
+
<div class="search-wrapper">
|
| 27 |
+
<div class="search-container">
|
| 28 |
+
<i class="fas fa-search search-icon"></i>
|
| 29 |
+
<input type="text" id="searchInput" placeholder="Search videos..." class="search-input">
|
| 30 |
+
<button id="clearSearch" class="clear-search-btn">
|
| 31 |
+
<i class="fas fa-times"></i>
|
| 32 |
+
</button>
|
| 33 |
+
</div>
|
| 34 |
+
</div>
|
| 35 |
</div>
|
| 36 |
</header>
|
| 37 |
|
| 38 |
+
<!-- Main Content -->
|
| 39 |
+
<main class="app-main">
|
| 40 |
+
<!-- Video Grid Section -->
|
| 41 |
+
<div class="video-grid-container">
|
| 42 |
+
<div class="controls-bar">
|
| 43 |
+
<div class="result-counter" id="resultCounter">
|
| 44 |
+
Showing <span id="visibleCount">0</span> of <span id="totalCount">0</span> videos
|
| 45 |
+
</div>
|
| 46 |
+
<div class="view-toggle">
|
| 47 |
+
<button id="gridViewBtn" class="view-btn active" title="Grid View">
|
| 48 |
+
<i class="fas fa-th"></i>
|
| 49 |
+
</button>
|
| 50 |
+
<button id="listViewBtn" class="view-btn" title="List View">
|
| 51 |
+
<i class="fas fa-list"></i>
|
| 52 |
+
</button>
|
| 53 |
</div>
|
| 54 |
</div>
|
|
|
|
| 55 |
|
| 56 |
+
<!-- Loading Indicator -->
|
| 57 |
+
<div id="loadingIndicator" class="loading-container">
|
| 58 |
+
<div class="loading-spinner"></div>
|
| 59 |
+
<p>Loading videos...</p>
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<!-- Error Message -->
|
| 63 |
+
<div id="errorMessage" class="error-container" style="display: none;">
|
| 64 |
+
<i class="fas fa-exclamation-circle"></i>
|
| 65 |
+
<p>Failed to load videos. Please try again later.</p>
|
| 66 |
+
<button id="retryBtn" class="retry-btn">Retry</button>
|
| 67 |
+
</div>
|
| 68 |
+
|
| 69 |
+
<!-- Video Grid -->
|
| 70 |
+
<div id="videoGrid" class="video-grid"></div>
|
| 71 |
+
|
| 72 |
+
<!-- Pagination -->
|
| 73 |
+
<div class="pagination-container">
|
| 74 |
+
<div id="pagination" class="pagination"></div>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
</main>
|
| 78 |
+
|
| 79 |
+
<!-- Video Player Modal -->
|
| 80 |
+
<div id="videoModal" class="modal">
|
| 81 |
+
<div class="modal-content">
|
| 82 |
+
<div class="modal-header">
|
| 83 |
+
<h2 id="modalVideoTitle">Video Title</h2>
|
| 84 |
+
<button id="closeModal" class="close-button">
|
| 85 |
+
<i class="fas fa-times"></i>
|
| 86 |
+
</button>
|
| 87 |
</div>
|
| 88 |
+
<div class="modal-body">
|
| 89 |
+
<div class="player-container">
|
| 90 |
+
<video id="videoPlayer" playsinline controls>
|
| 91 |
+
<p>Your browser doesn't support HTML5 video.</p>
|
| 92 |
+
</video>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="player-help">
|
| 95 |
+
<div class="help-item">
|
| 96 |
+
<i class="fas fa-keyboard"></i>
|
| 97 |
+
<span>Space: Play/Pause</span>
|
| 98 |
+
</div>
|
| 99 |
+
<div class="help-item">
|
| 100 |
+
<i class="fas fa-arrows-alt-h"></i>
|
| 101 |
+
<span>←/→: Seek</span>
|
| 102 |
+
</div>
|
| 103 |
+
<div class="help-item">
|
| 104 |
<i class="fas fa-expand"></i>
|
| 105 |
+
<span>F: Fullscreen</span>
|
| 106 |
+
</div>
|
| 107 |
+
<div class="help-item">
|
| 108 |
+
<i class="fas fa-volume-mute"></i>
|
| 109 |
+
<span>M: Mute</span>
|
| 110 |
+
</div>
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<!-- Toast Messages -->
|
| 117 |
+
<div id="toastContainer" class="toast-container"></div>
|
| 118 |
|
| 119 |
+
<!-- Footer -->
|
| 120 |
+
<footer class="app-footer">
|
| 121 |
+
<p>HF Video Library © 2025</p>
|
| 122 |
</footer>
|
| 123 |
</div>
|
| 124 |
|
| 125 |
+
<!-- Scripts -->
|
| 126 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/material-components-web/14.0.0/material-components-web.min.js"></script>
|
| 127 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/plyr/3.7.8/plyr.min.js"></script>
|
| 128 |
+
<script src="script.js"></script>
|
| 129 |
</body>
|
| 130 |
</html>
|