[FEAT] collage: empty nest illustration when no birds have been heard (#25)

This commit is contained in:
Teddy Warner
2026-07-06 16:53:12 -07:00
committed by GitHub
parent 2d481d8e33
commit 54d241e184
5 changed files with 39 additions and 25 deletions
+6 -1
View File
@@ -413,7 +413,12 @@
function renderCollage(items, animate) {
collage.innerHTML = '';
if (!items.length) {
collage.innerHTML = '<p class="empty">no birds heard in this window.</p>';
// No birds heard yet: show an empty nest where the collage would be, with
// the status line beneath it. The frame (shoot.py) overrides the .empty
// text for the e-ink panel; the nest illustration is shared by both.
collage.innerHTML = '<div class="empty-nest">' +
'<img class="nest-img" src="nest.webp" alt="an empty nest" decoding="async">' +
'<p class="empty">no birds heard in this window.</p></div>';
return;
}
var W = collage.clientWidth, H = collage.clientHeight;