73 lines
3.0 KiB
HTML
73 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Track Viewer - Spotizerr</title>
|
|
<!-- Add the new base.css first -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/main/base.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/queue/queue.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/main/icons.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/track/track.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="app-container">
|
|
<div id="track-header" class="content-header hidden">
|
|
<!-- Album Image -->
|
|
<img id="track-album-image" class="header-image" alt="Album cover" onerror="this.src='/static/images/placeholder.jpg'">
|
|
|
|
<!-- Track Info -->
|
|
<div id="track-info" class="header-info">
|
|
<h1 id="track-name" class="header-title"></h1>
|
|
<p id="track-artist" class="header-subtitle"></p>
|
|
<p id="track-album" class="header-subtitle"></p>
|
|
|
|
<div class="track-details">
|
|
<span id="track-duration" class="track-detail-item"></span>
|
|
<span id="track-explicit" class="track-detail-item"></span>
|
|
</div>
|
|
|
|
<!-- Download Button moved here for better mobile layout -->
|
|
<div class="header-actions">
|
|
<button id="downloadTrackBtn" class="download-btn btn-primary">
|
|
<img src="{{ url_for('static', filename='images/download.svg') }}" alt="Download">
|
|
Download Track
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Loading and Error states -->
|
|
<div id="loading" class="loading">
|
|
<div class="loading-indicator">Loading...</div>
|
|
</div>
|
|
<div id="error" class="error hidden">Error loading track</div>
|
|
</div>
|
|
|
|
<!-- Fixed floating buttons for home and queue -->
|
|
<a href="/history" class="btn-icon history-nav-btn floating-icon home-btn" aria-label="Download History" title="Go to Download History">
|
|
<img src="{{ url_for('static', filename='images/history.svg') }}" alt="History" onerror="handleImageError(this)"/>
|
|
</a>
|
|
<button id="homeButton" class="btn-icon home-btn floating-icon settings-icon" aria-label="Return to home">
|
|
<img src="{{ url_for('static', filename='images/home.svg') }}" alt="Home">
|
|
</button>
|
|
|
|
<a href="/watchlist" class="btn-icon watchlist-icon floating-icon" aria-label="Watchlist" title="Go to Watchlist">
|
|
<img src="{{ url_for('static', filename='images/binoculars.svg') }}" alt="Watchlist" onerror="handleImageError(this)"/>
|
|
</a>
|
|
|
|
<button
|
|
id="queueIcon"
|
|
class="btn-icon queue-icon floating-icon"
|
|
aria-label="Download queue"
|
|
aria-controls="downloadQueue"
|
|
aria-expanded="false"
|
|
>
|
|
<img src="{{ url_for('static', filename='images/queue.svg') }}" alt="Queue Icon">
|
|
</button>
|
|
|
|
<!-- The download queue container will be inserted by queue.js -->
|
|
<script type="module" src="{{ url_for('static', filename='js/track.js') }}"></script>
|
|
</body>
|
|
</html>
|