This commit is contained in:
2024-06-16 17:39:26 +02:00
parent 15d9fe89b9
commit 9436fd05cc
22 changed files with 928 additions and 276 deletions

View File

@@ -1,31 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title><?= $album->albumName ?> - Details</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css">
</head>
<body>
<section class="section">
<div class="container">
<h1 class="title has-text-white"><?= $album->albumName ?></h1>
<div class="columns">
<div class="column is-one-third">
<figure class="image is-square">
<img src="data:image/jpeg;base64,<?= base64_encode($album->jpeg) ?>" alt="<?= $album->albumName ?> Cover">
</figure>
</div>
<div class="column">
<p><strong>Artist:</strong> <?= $album->artistName ?></p>
<p><strong>Genre:</strong> <?= $album->genreName ?></p>
<p><strong>Year:</strong> <?= $album->year ?></p>
</div>
</div>
<h2 class="title is-4 has-text-white">Songs</h2>
<ul>
<?php foreach ($songs as $song): ?>
<li><?= anchor("music/view/{$song->trackId}", $song->trackName) ?></li>
<h1 class="title"><?= $artist->artistName ?></h1>
<h2 class="title is-4">Albums</h2>
<?php if ($albums): ?>
<?php foreach ($albums as $album): ?>
<div class="box">
<div class="columns">
<div class="column is-one-third">
<figure class="image">
<img src="data:image/jpeg;base64,<?= base64_encode($album->jpeg) ?>" alt="<?= $album->albumName ?> Cover">
</figure>
</div>
<div class="column">
<h3 class="title is-5"><?= $album->albumName ?></h3>
<p><strong>Genre:</strong> <?= $album->genreName ?></p>
<p><strong>Year:</strong> <?= $album->year ?></p>
<h4 class="title is-6">Songs</h4>
<ul>
<?php foreach ($album->songs as $song): ?>
<li><?= anchor("music/view/{$song->trackId}", $song->songName) ?></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<?php endforeach; ?>
</ul>
<?php else: ?>
<p>No albums found for this artist.</p>
<?php endif; ?>
</div>
</section>
</body>