more style tweaks; expand enpoints in readme

This commit is contained in:
dreamer committed 2026-10-14 08:13:59 +02:00
1 parent c35cdfb97b
commit eef10b12fa
3 files changed
+19 -6

No files matched your search

+2
View File
@@ -18,4 +18,6 @@ The endpoint serves the 10 upcoming screenings for the day. The frontend automat
* GET `/admin` - upload form protected with Basic Auth. * GET `/admin` - upload form protected with Basic Auth.
* POST `/admin/upload` - upload endpoint protected with Basic Auth * POST `/admin/upload` - upload endpoint protected with Basic Auth
* GET `/info` - serves desk info endpoint
* GET `/api/screenings` - serves JSON with upcoming 10 films for today * GET `/api/screenings` - serves JSON with upcoming 10 films for today
* GET `/api/screenings/prices` - serves JSON with pricing data
+4 -2
View File
@@ -13,7 +13,7 @@ function kijkwijzerIcons(codes) {
} }
function renderFilms(films) { function renderFilms(films) {
document.getElementById("films").innerHTML = films.map(f => { const rows = (films || []).map(f => {
const isBoutique = f.screen === "6"; const isBoutique = f.screen === "6";
const ratio = f.seats_sold / f.seats_total; const ratio = f.seats_sold / f.seats_total;
const start = new Date(f.start); // "2026-10-13T18:00:00" parses as local time const start = new Date(f.start); // "2026-10-13T18:00:00" parses as local time
@@ -34,12 +34,14 @@ function renderFilms(films) {
${isBoutique ${isBoutique
? `<span class="pill">Zaal 6 - Boutique Cinema</span>` ? `<span class="pill">Zaal 6 - Boutique Cinema</span>`
: `<span class="zaal">Zaal ${f.screen}</span>`} : `<span class="zaal">Zaal ${f.screen}</span>`}
${f.en_subs ? "<span>EN subs</span>" : ""} ${f.en_subs ? "<span class='subs'>EN subs</span>" : ""}
</div> </div>
</div> </div>
${badge} ${badge}
</div>`; </div>`;
}).join(""); }).join("");
document.getElementById("films").innerHTML =
rows + `<div class="film" "film-spacer" aria-hidden="true"></div>`;
} }
function renderPrices(prices) { function renderPrices(prices) {
const row = p => `<div class="price-row"><span>${p.label}</span><span class="price">${p.price}</span></div>`; const row = p => `<div class="price-row"><span>${p.label}</span><span class="price">${p.price}</span></div>`;
+13 -4
View File
@@ -14,14 +14,14 @@ body {
color: var(--ink); color: var(--ink);
overflow: hidden; overflow: hidden;
} }
.screen { display: grid; grid-template-columns: 1fr 420px; height: 100vh; } .screen { display: grid; grid-template-columns: 1fr 30%; height: 100vh; }
/* ---------- left: film list ---------- */ /* ---------- left: film list ---------- */
.programme { padding: 28px 40px 40px 48px; display: flex; flex-direction: column; } .programme { padding: 28px 40px 40px 48px; display: flex; flex-direction: column; }
.programme h1 { .programme h1 {
font-size: 92px; font-weight: 600; letter-spacing: 6px; font-size: 122px; font-weight: 600; letter-spacing: 6px;
text-transform: uppercase; line-height: 1; text-transform: uppercase; line-height: 1;
margin-bottom: -27px; /* was 18px — lets the list overlap the letters */ margin-bottom: -35px;
position: relative; z-index: 0; position: relative; z-index: 0;
} }
.film { .film {
@@ -33,6 +33,7 @@ body {
padding: 16px 0 18px; padding: 16px 0 18px;
border-top: 1px solid var(--rule); border-top: 1px solid var(--rule);
} }
.film-spacer { min-height: 0; padding: 0; }
.times { line-height: 1.25; } .times { line-height: 1.25; }
.times .start { font-size: 20px; font-weight: 600; } .times .start { font-size: 20px; font-weight: 600; }
.times .end { font-size: 20px; color: var(--muted); } .times .end { font-size: 20px; color: var(--muted); }
@@ -67,6 +68,9 @@ body {
letter-spacing: 1px; letter-spacing: 1px;
text-transform: none; /* "Boutique Cinema" reads like the photo */ text-transform: none; /* "Boutique Cinema" reads like the photo */
} }
.subs {
margin-left: 18px;
}
.badge-last { .badge-last {
justify-self: end; align-self: start; margin-top: -16px; justify-self: end; align-self: start; margin-top: -16px;
background: var(--badge); color: #fff; background: var(--badge); color: #fff;
@@ -75,7 +79,12 @@ body {
} }
/* ---------- right: sidebar ---------- */ /* ---------- right: sidebar ---------- */
.sidebar { background: var(--bg-side); padding: 30px 32px; display: flex; flex-direction: column; } .sidebar {
background: var(--bg-side);
padding: 50px 50px;
display: flex;
flex-direction: column;
}
.sidebar .top { .sidebar .top {
display: grid; display: grid;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;