1
0
Fork 0
forked from are0h/tapes
tapes/brain/views/front.php
Ro b72650ed2f Intial Project Commit
first commit to get all the project files in there
2025-03-05 16:14:37 -06:00

39 lines
No EOL
1.1 KiB
PHP

<?php
use brain\controllers\TapesAPI;
$tapes = new TapesAPI();
$covers = $tapes->getList(true);
include "parts/top.php";
?>
<header>
<img class="the-logo" src="assets/images/global/logo-primary.png" />
<div class="audio-progress"></div>
</header>
<div id="tape-controls" class="control-closed">
<img id="control-back" class="tape-control-button" src='assets/images/global/btn_back.png' />
<label class="control-text">NOTHING PLAYING</label>
<img id="control-next" class="tape-control-button" src='assets/images/global/btn_forward.png' />
</div>
<main>
<article class="tape-select front">
<?php foreach ($covers as $cover) {
$title = $cover["title"]; ?>
<img id="<?php echo urlencode($title); ?>" class="covers" src="
<?php echo "/assets/audio/tapes/" . $title . "/cover.jpg"; ?>" />
<?php
//end for each loop
} ?>
</article>
<article class="tape-tracklist back-right">
<img id="tape-cover" src='' />
<h1 id="tape-title"></h1>
<section id="playlist"></section>
</article>
</main>
<?php include "parts/bottom.php"; ?>