Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/html/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
padding: 1em; /* Adjusted for mobile */
}

h2 {
h1 {
color: #343a40;
border-bottom: 2px solid #dee2e6;
padding-bottom: 0.5em;
Expand All @@ -32,7 +32,7 @@ a:hover {
}

/* --- Songbooks Section --- */
.songbook-container h2 {
.songbook-container h1 {
border-bottom: none; /* We will style it differently for mobile */
}

Expand Down Expand Up @@ -262,7 +262,7 @@ p {
gap: 0.8em;
}

h2 {
h1 {
font-size: 1.2em;
margin-top: 1.2em;
}
Expand Down Expand Up @@ -325,7 +325,7 @@ p {
flex-wrap: nowrap;
}

.songbook-container h2 {
.songbook-container h1 {
border-bottom: 2px solid #dee2e6;
}

Expand Down
8 changes: 4 additions & 4 deletions src/html/index_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_index_html(list_of_songs_meta, target_dir):
# Add keywords
etree.SubElement(head, "meta", attrib={
"name": "keywords",
"content": "śpiewnik harcerski, teksty piosenek, chwyty gitarowe, akordy, piosenki harcerskie, piosenki biesiadne, piosenki turystyczne, śpiewnik pdf, śpiewnik kindle"
"content": "śpiewnik harcerski, teksty piosenek, chwyty gitarowe, akordy, piosenki harcerskie, piosenki biesiadne, piosenki turystyczne, śpiewnik pdf, śpiewnik kindle, epub, własny śpiewnik, kreator śpiewnika, kreator śpiewników"
}, nsmap=None).tail = "\n"

# Add Open Graph tags
Expand All @@ -64,7 +64,7 @@ def create_index_html(list_of_songs_meta, target_dir):
"name": "Spiewaj.com",
"alternateName": "Śpiewnik",
"url": "https://spiewaj.com/",
"description": "Śpiewnik - teksty i chwyty piosenek popularnych, harcerskich, turystycznych",
"description": "Śpiewnik - teksty i chwyty piosenek popularnych, harcerskich, turystycznych (epub/pdf/kindle).",
"inLanguage": "pl-PL",
"potentialAction": {
"@type": "SearchAction",
Expand Down Expand Up @@ -94,9 +94,9 @@ def create_index_html(list_of_songs_meta, target_dir):
# Build descriptive title attribute for SEO
title_text = song.effectiveTitle()
if song.artist():
a_main.attrib['title'] = f"{title_text} - {song.artist()} - tekst i chwyty"
a_main.attrib['title'] = f"{title_text} - {song.artist()} - tekst i chwyty (pdf/epub/kindle)"
else:
a_main.attrib['title'] = f"{title_text} - tekst i chwyty"
a_main.attrib['title'] = f"{title_text} - tekst i chwyty (pdf/epub/kindle)"

# Edit button (outside main link for event handling)
button = etree.SubElement(li, "button")
Expand Down
2 changes: 1 addition & 1 deletion src/html/templates/index.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<a href="https://ghe.spiewaj.com/users/me/changes">[Inne rozpoczęte edycje]</a>
</div>
<div id="songbooks-container">
<h2 id="songbook-toggle" onclick="toggleSongbooks()">Śpiewniki</h2>
<h1 id="songbook-toggle" onclick="toggleSongbooks()">Śpiewniki - epub/kindle/pdf</h1>
<div id="songbooks-list-container">
<ul id="songbooks"></ul>
<p>Wersję na Kindla możesz wgrać używając: <a href="https://www.amazon.com/sendtokindle">https://www.amazon.com/sendtokindle</a></p>
Expand Down