Add song lookup UI: search a song and view its history + metadata
New song.html shows a song's aggregated metadata and full play history (paginated), reached from the dashboard via a debounced search box or by clicking a track in the "Most played" list. Verified manually in-browser: search, click-through from Most played (including an artist name with a slash), the not-found and no-query-params states, and the pager. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d2f457a84d
commit
88b53df909
5 files changed
+284
-7
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Song · Scrobbler</title>
|
||||
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%231c2330'/%3E%3Ccircle cx='8' cy='8' r='3.5' fill='%23f2a541'/%3E%3C/svg%3E">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<script src="config.js"></script>
|
||||
<script type="module" src="js/song.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header" id="site-header"></header>
|
||||
<main id="main">
|
||||
<h1 class="page-title" id="song-title">Song</h1>
|
||||
<p class="lede" id="song-subtitle"></p>
|
||||
<dl class="song-meta" id="song-meta"></dl>
|
||||
<section aria-labelledby="song-history-title">
|
||||
<h2 id="song-history-title">History</h2>
|
||||
<div id="song-history"></div>
|
||||
<nav class="pager" aria-label="Pages" id="pager"></nav>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user