css menu create + playlist

This commit is contained in:
2024-06-11 16:12:33 +02:00
parent 906c5abf52
commit 253fd100d8
11 changed files with 57 additions and 23 deletions

View File

@@ -1,6 +1,14 @@
<section class="list">
<?php
$i = 0;
foreach($songs as $song){
echo "<div><article>";
echo "<header class='short-text'>";
$i = $i+1;
$minutes = floor($song->duration/60);
$secondes = $song->duration %60;
echo "{$i} - {$song->name} : {$minutes} min {$secondes} sec";
foreach($songPlaylists as $songPlaylist){
echo "<div><article>";
echo "<header class='short-text'>";
@@ -12,6 +20,11 @@ foreach($songPlaylists as $songPlaylist){
echo "</header>";
echo "</article></div>";
}
}
?>
</section>
</section>