mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2025-04-26 15:16:19 +02:00
songbook generator
This commit is contained in:
parent
c084ca2d89
commit
6535d4d7dd
5 changed files with 158 additions and 4 deletions
38
res/templates/songbook.html
Normal file
38
res/templates/songbook.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include "head.html" with path="." only %}
|
||||
<link rel="stylesheet" type="text/css" href="song.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="index.css"/>
|
||||
<script async src="song.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{% include "header.html" with path="." %}
|
||||
<main>
|
||||
<h2>Índice</h2>
|
||||
<ol class="songs">
|
||||
{% for song in songs %}
|
||||
<a href="#{{ song.number }}"><li>
|
||||
<span class="number">{{ song.number }}.</span>
|
||||
{{ song.name }}
|
||||
</li></a>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% for song in songs %}
|
||||
<div class="song" id="wholeSongDiv">
|
||||
<h2 id="{{ song.number }}">{{ song.number }}. {{ song.name }}</h2>
|
||||
<div id="songLyrics">
|
||||
{% for verse in song.verses %}
|
||||
<div class="{{ verse.kind }}">
|
||||
{% for line in verse.lines %}
|
||||
{{ line }}<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue