test changement css 4/?
This commit is contained in:
@@ -1,22 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?= $artist->artistName ?> - Details</title>
|
||||
<title><?= $album->albumName ?> - Details</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1><?= $artist->artistName ?></h1>
|
||||
<?php if (!empty($artist->genreName)): ?>
|
||||
<p><strong>Genre:</strong> <?= $artist->genreName ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($artist->jpeg)): ?>
|
||||
<img src="data:image/jpeg;base64,<?= base64_encode($artist->jpeg) ?>" alt="<?= $artist->artistName ?> Photo">
|
||||
<?php endif; ?>
|
||||
|
||||
<h2>Albums</h2>
|
||||
<ul>
|
||||
<?php foreach ($albums as $album): ?>
|
||||
<li><?= anchor("albums/view/{$album->albumId}", $album->albumName) ?> (<?= $album->year ?>)</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<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>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user