mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
186 lines
6.6 KiB
HTML
186 lines
6.6 KiB
HTML
<!-- components/video-modal.html -->
|
|
<div id="playerModal" class="player-modal hidden">
|
|
<div class="modal-container player-modal__container">
|
|
<div class="modal-content player-modal__content">
|
|
<!-- Navigation bar - sliding at top -->
|
|
<div
|
|
id="modalNav"
|
|
class="sticky top-0 z-60 bg-gradient-to-b from-black/80 to-transparent transition-transform duration-150"
|
|
>
|
|
<div class="flex items-center px-6 py-4">
|
|
<button
|
|
id="closeModal"
|
|
class="back-button flex items-center justify-center w-10 h-10 rounded-full bg-black/50 hover:bg-black/70 transition-all duration-200 backdrop-blur focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-black focus:ring-blue-500"
|
|
>
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="24"
|
|
height="24"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
stroke-width="2"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
class="w-6 h-6 text-gray-300"
|
|
>
|
|
<path d="M15 18l-6-6 6-6" />
|
|
</svg>
|
|
</button>
|
|
<div class="modal-actions">
|
|
<button id="copyMagnetBtn" class="icon-button">
|
|
<img
|
|
src="assets/svg/copy-magnet.svg"
|
|
alt="Copy Magnet"
|
|
class="icon-image"
|
|
/>
|
|
</button>
|
|
<button
|
|
id="modalZapBtn"
|
|
type="button"
|
|
class="icon-button"
|
|
aria-label="Send a zap"
|
|
>
|
|
<img
|
|
src="assets/svg/lightning-bolt.svg"
|
|
alt="Zap"
|
|
class="icon-image"
|
|
/>
|
|
</button>
|
|
<button id="shareBtn" class="icon-button">
|
|
<img
|
|
src="assets/svg/share-video.svg"
|
|
alt="Share Video"
|
|
class="icon-image"
|
|
/>
|
|
</button>
|
|
<div
|
|
class="modal-actions__overflow"
|
|
data-more-menu-wrapper="true"
|
|
>
|
|
<button
|
|
id="modalMoreBtn"
|
|
type="button"
|
|
class="icon-button"
|
|
aria-haspopup="true"
|
|
aria-expanded="false"
|
|
aria-label="More"
|
|
data-more-dropdown="modal"
|
|
>
|
|
<img src="assets/svg/ellipsis.svg" alt="More" class="w-5 h-5" />
|
|
</button>
|
|
<div
|
|
id="moreDropdown-modal"
|
|
class="hidden absolute right-0 top-14 w-44 rounded-md shadow-lg bg-gray-800 ring-1 ring-black ring-opacity-5 z-50"
|
|
role="menu"
|
|
data-more-menu="true"
|
|
>
|
|
<div class="py-1">
|
|
<button
|
|
class="block w-full text-left px-4 py-2 text-sm text-gray-100 hover:bg-gray-700"
|
|
data-action="open-channel"
|
|
data-context="modal"
|
|
>
|
|
Open channel
|
|
</button>
|
|
<button
|
|
class="block w-full text-left px-4 py-2 text-sm text-gray-100 hover:bg-gray-700"
|
|
data-action="copy-link"
|
|
data-context="modal"
|
|
>
|
|
Copy link
|
|
</button>
|
|
<button
|
|
class="block w-full text-left px-4 py-2 text-sm text-red-400 hover:bg-red-700 hover:text-white"
|
|
data-action="blacklist-author"
|
|
data-context="modal"
|
|
data-blacklist-menu="true"
|
|
>
|
|
Blacklist creator
|
|
</button>
|
|
<button
|
|
class="block w-full text-left px-4 py-2 text-sm text-red-400 hover:bg-red-700 hover:text-white"
|
|
data-action="block-author"
|
|
data-context="modal"
|
|
>
|
|
Block creator
|
|
</button>
|
|
<button
|
|
class="block w-full text-left px-4 py-2 text-sm text-gray-100 hover:bg-gray-700"
|
|
data-action="report"
|
|
data-context="modal"
|
|
>
|
|
Report
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="video-container player-modal__video">
|
|
<video id="modalVideo" class="w-full aspect-video" controls></video>
|
|
</div>
|
|
|
|
<div class="video-info player-modal__info">
|
|
<!-- Title and icons row -->
|
|
<div class="flex items-center justify-between mb-2">
|
|
<h2 id="videoTitle" class="text-2xl font-bold text-white"></h2>
|
|
</div>
|
|
|
|
<!-- Video Timestamp -->
|
|
<div
|
|
class="flex items-center justify-between text-sm text-gray-400 mb-4"
|
|
>
|
|
<span id="videoTimestamp">just now</span>
|
|
<div id="modalStatus" class="text-gray-300">
|
|
Initializing... Just give it a sec.
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Creator info -->
|
|
<div class="flex items-center mb-4 p-4 bg-gray-800/50 rounded-lg">
|
|
<div class="w-12 h-12 rounded-full bg-gray-700 overflow-hidden">
|
|
<img
|
|
id="creatorAvatar"
|
|
src=""
|
|
alt="Creator"
|
|
class="w-full h-full object-cover"
|
|
/>
|
|
</div>
|
|
<div class="ml-4">
|
|
<h3 id="creatorName" class="font-medium text-lg text-white">
|
|
Creator Name
|
|
</h3>
|
|
<p id="creatorNpub" class="text-sm text-gray-400">npub...</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Video Description -->
|
|
<div class="bg-gray-800/50 rounded-lg p-4 mb-4">
|
|
<p id="videoDescription" class="text-gray-300 whitespace-pre-wrap">
|
|
No description available.
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Torrent stats -->
|
|
<div class="bg-gray-800/50 rounded-lg p-4">
|
|
<div class="w-full bg-gray-700 rounded-full h-2 mb-2">
|
|
<div
|
|
class="bg-blue-500 h-2 rounded-full"
|
|
id="modalProgress"
|
|
style="width: 0%"
|
|
></div>
|
|
</div>
|
|
<div class="flex justify-between text-sm text-gray-400">
|
|
<span id="modalPeers">Peers: 0</span>
|
|
<span id="modalSpeed">Speed: 0 KB/s</span>
|
|
<span id="modalDownloaded">Downloaded: 0 MB / 0 MB</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|