-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
112 lines (100 loc) · 4.35 KB
/
index.html
File metadata and controls
112 lines (100 loc) · 4.35 KB
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
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BeatFlow — Assignment 4</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="app-shell">
<!-- ── TOP NAV ── -->
<nav class="top-nav">
<div class="nav-logo">
<span class="logo-icon">🎵</span>
<span class="logo-text">BeatFlow</span>
<span class="logo-tag">Internal Tools</span>
</div>
<div class="nav-alert">
⚠️ Company-wide restructuring in progress — All teams on notice
</div>
<div class="nav-user">👤 You</div>
</nav>
<!-- ── MAIN LAYOUT ── -->
<div class="main-layout">
<!-- ════ SIDEBAR ════ -->
<aside class="sidebar">
<div class="sidebar-section">
<div class="sidebar-title">Your Library</div>
<div class="track-list" id="trackList">
<!-- Populated by JavaScript -->
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-title">Stats</div>
<div class="stat-row">
<span class="stat-label">Tracks Loaded</span>
<span class="stat-val" id="trackCount">0</span>
</div>
<div class="stat-row">
<span class="stat-label">Now Playing</span>
<span class="stat-val" id="nowPlayingName">—</span>
</div>
<div class="stat-row">
<span class="stat-label">Genre</span>
<span class="stat-val" id="nowPlayingGenre">—</span>
</div>
</div>
<!-- PART 3: Playlist section (populated by JS) -->
<div class="sidebar-section">
<div class="sidebar-title">Playlists</div>
<div id="playlistList">
<div class="empty-msg">No playlists yet.</div>
</div>
<button class="small-btn" id="createPlaylistBtn">+ New Playlist</button>
</div>
</aside>
<!-- ════ MAIN AREA ════ -->
<main class="main-area">
<!-- Player Card -->
<div class="player-card" id="playerCard">
<div class="player-art" id="playerArt">
<span class="art-placeholder">🎵</span>
</div>
<div class="player-info">
<div class="player-track-name" id="playerTrackName">Select a track</div>
<div class="player-artist" id="playerArtist">— —</div>
<div class="player-genre-badge" id="playerGenre"></div>
</div>
<div class="player-controls">
<button class="ctrl-btn" id="prevBtn">⏮</button>
<button class="ctrl-btn play-btn" id="playBtn">▶</button>
<button class="ctrl-btn" id="nextBtn">⏭</button>
</div>
<div class="volume-row">
<span>🔈</span>
<input type="range" id="volumeSlider" min="0" max="1" step="0.01" value="0.7" class="volume-slider">
<span>🔊</span>
<span class="vol-pct" id="volPct">70%</span>
</div>
<!-- Hidden audio element -->
<audio id="audioPlayer"></audio>
</div>
<!-- Status / Log Panel -->
<div class="log-panel">
<div class="log-header">
<span>📋 Activity Log</span>
<button class="clear-btn" id="clearLogBtn">Clear</button>
</div>
<div class="log-entries" id="logEntries">
<div class="log-placeholder">Events will appear here as you interact with the player.</div>
</div>
</div>
</main>
</div><!-- /main-layout -->
</div><!-- /app-shell -->
<script src="app.js"></script>
</body>
</html>