[FEAT] collage: empty nest illustration when no birds have been heard (#25)
This commit is contained in:
@@ -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;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
@@ -591,6 +591,18 @@
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* No-birds state: an empty-nest illustration sits where the collage would be,
|
||||
with the status line beneath it. Fills the collage box so the frame's
|
||||
matting treats it like any other collage. */
|
||||
.empty-nest {
|
||||
height: 100%;
|
||||
display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
gap: 28px;
|
||||
}
|
||||
.empty-nest .nest-img { width: 78%; max-width: 470px; height: auto; }
|
||||
.empty-nest .empty { padding: 0; margin: 0; }
|
||||
|
||||
/* Page header is now shared at .stage > .static-head - see top of CSS. */
|
||||
/* Stats grid: charts stack on the LEFT, text sections on the RIGHT.
|
||||
Each chart is a full-bleed card; each text section is a list with
|
||||
|
||||
Reference in New Issue
Block a user