music draft

This commit is contained in:
jetstream0
2023-11-02 09:14:23 +00:00
parent e85193dcb4
commit 63cac1f0c5
5 changed files with 69 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
<div>
<a href="/">Front page</a>
<ul>
<!-- called chapters, but both anime and manga will use this -->
<!-- called chapters, but anime, manga, music will all use this -->
[[ for:chapters:chapter ]]
[[ component:chapter-listing ]]
[[ endfor ]]

32
templates/music.html Normal file
View File

@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>listening to [[ listing.name ]]</title>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.music {
margin: 25px;
}
</style>
</head>
<body>
[[ component:return ]]
<div id="main">
<div class="music">
<h2 style="display: inline-block;">[[ listing.name ]] [[ chapter ]]</h2>
<br>
<audio controls>
<source src="/music_assets/[[ listing.name ]]/[[ chapter ]].mp3" type="audio/mpeg">
</audio>
[[ component:nav ]] <!-- id: nav -->
</div>
</div>
</body>
</html>