lidarr-spotify-frontend/public/index.html

69 lines
2.4 KiB
HTML

<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lidarr Spotify Downloader</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="/styles.css" />
</head>
<body>
<main class="layout">
<header class="hero">
<h1>Spotify zu Lidarr</h1>
<p>Album aus Spotify suchen, Tracks auswaehlen und direkt an Lidarr schicken.</p>
</header>
<section class="panel settings">
<h2>Einstellungen</h2>
<label class="toggle">
<input type="checkbox" id="cleanupToggle" />
<span>Ueberfluessige Dateien nach Download loeschen</span>
</label>
<div style="margin-top: 0.8rem;">
<button id="updateLibraryBtn" type="button">Lidarr Bibliothek updaten</button>
<button id="updateFrontendBtn" type="button">Frontend updaten</button>
</div>
<p class="hint">
Wenn nur einzelne Songs gewaehlt sind, versucht die App unnoetige Track-Dateien in Lidarr zu entfernen.
</p>
</section>
<section class="panel search">
<h2>Spotify suchen</h2>
<div class="search-row">
<select id="searchType">
<option value="album">Alben</option>
<option value="track">Tracks</option>
<option value="artist">Interpreten</option>
</select>
<input id="query" placeholder="Album oder Artist eingeben" />
<button id="searchBtn">Suchen</button>
</div>
</section>
<section class="panel" id="statusPanel">
<strong>Status:</strong>
<span id="status">Bereit.</span>
</section>
<section id="results" class="results"></section>
</main>
<dialog id="albumDialog">
<form method="dialog" class="dialog-content">
<h3 id="dialogTitle"></h3>
<p id="dialogArtist"></p>
<div id="trackList" class="track-list"></div>
<div class="dialog-actions">
<button value="cancel">Abbrechen</button>
<button id="sendBtn" value="default">An Lidarr senden</button>
</div>
</form>
</dialog>
<script src="/app.js"></script>
</body>
</html>