Update footer in index.html to include version number and adjust footer styling in styles.css

This commit is contained in:
2026-09-28 17:44:32 +02:00
parent 100c1009e3
commit 6063b404f6
3 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@
</section> </section>
</main> </main>
<footer><p>Faerro KB © 2026</p></footer> <footer><p>Faerro KB © 2026 · v0.0.28</p></footer>
<script src="/app.js" defer></script> <script src="/app.js" defer></script>
</body> </body>
</html> </html>
+1 -1
View File
@@ -117,7 +117,7 @@ h2 { margin: 8px 0 0; font: 500 25px/1.1 var(--serif); }
.archive-status { color: var(--muted); font: 10px var(--mono); margin-top: 7px; } .archive-status { color: var(--muted); font: 10px var(--mono); margin-top: 7px; }
.transcription-progress { width: min(240px, 100%); height: 3px; margin-top: 9px; overflow: hidden; background: #e4e3dc; } .transcription-progress { width: min(240px, 100%); height: 3px; margin-top: 9px; overflow: hidden; background: #e4e3dc; }
.transcription-progress span { display: block; width: 34%; height: 100%; background: var(--moss); animation: transcription-progress 1.4s ease-in-out infinite; } .transcription-progress span { display: block; width: 34%; height: 100%; background: var(--moss); animation: transcription-progress 1.4s ease-in-out infinite; }
footer { max-width: 1040px; margin: auto; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 9px var(--mono); } footer { max-width: 1040px; margin: auto; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 20px; color: var(--muted); font: 9px var(--mono); }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } @keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes transcription-progress { from { transform: translateX(-110%); } to { transform: translateX(300%); } } @keyframes transcription-progress { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
@media (max-width: 600px) { @media (max-width: 600px) {
+16 -1
View File
@@ -79,10 +79,25 @@ if git -C "$repo_root" show-ref --verify --quiet "refs/tags/$version"; then
exit 1 exit 1
fi fi
build_context="$(mktemp -d)"
trap 'rm -rf "$build_context"' EXIT
git -C "$repo_root" archive HEAD | tar -x -C "$build_context"
footer_file="$build_context/frontend/index.html"
footer_count="$(grep -c '<footer>' "$footer_file" || true)"
if [[ "$footer_count" -ne 1 ]]; then
echo "Expected exactly one footer in frontend/index.html." >&2
exit 1
fi
sed -E -i "/<footer>/ { s/ · v[0-9]+\.[0-9]+\.[0-9]+//; s#</p># · v$version</p>#; }" "$footer_file"
if ! grep -Fq "· v$version</p></footer>" "$footer_file"; then
echo "Could not update the footer version in the build context." >&2
exit 1
fi
git -C "$repo_root" tag --annotate "$version" --message "Release $version" HEAD git -C "$repo_root" tag --annotate "$version" --message "Release $version" HEAD
cd "$repo_root" cd "$repo_root"
docker build --tag "$image:$version" --tag "$image:latest" . docker build --tag "$image:$version" --tag "$image:latest" "$build_context"
registry_username="${GITEA_USERNAME:-${DOCKER_USERNAME:-}}" registry_username="${GITEA_USERNAME:-${DOCKER_USERNAME:-}}"
registry_token="${GITEA_TOKEN:-${DOCKER_PASSWORD:-}}" registry_token="${GITEA_TOKEN:-${DOCKER_PASSWORD:-}}"
unset GITEA_TOKEN DOCKER_PASSWORD unset GITEA_TOKEN DOCKER_PASSWORD