/previz: password protect, add PDF export of the crowd previz
Deploy / deploy (push) Successful in 1m5s

- nginx basic auth on /previz/ (login file lives on the server, mounted
  from docker/auth/, see DEPLOY.md step 8); private, no-store so
  Cloudflare never caches it
- Print styles for previz pages: dark, A4 landscape, one section a page;
  videos print as poster frames with a link
- scripts/previz-pdf.mjs (npm run previz:pdf) prints the page to
  public/previz/crowd/crowd-previz.pdf via Edge/Chrome DevTools
- "PDF" download link on the page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-10-17 06:21:25 +02:00
parent 35b263ba31
commit 22bc903041
11 changed files with 200 additions and 26 deletions
+17
View File
@@ -89,6 +89,23 @@ body {
.reveal { opacity: 1; transform: none; transition: none; }
}
/* Previz pages (/previz/*) print/PDF dark, edge to edge, like the screen version.
Margins come from padding cloned onto every page instead of white @page margins.
The page sets its own @page (landscape, no margin) so it doesn't get the report's. */
@media print {
html:has(.previz), html:has(.previz) body { background: var(--ink) !important; color-scheme: dark; }
.previz {
padding-block: 12mm;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
print-color-adjust: exact;
-webkit-print-color-adjust: exact;
}
.previz.grain::after { display: none; }
.previz figure, .previz li, .previz img, .previz dl { break-inside: avoid; }
.previz h2 { break-after: avoid; }
}
/* Printable VFX report (/set/report/view): A4 paper, keep the accent colours */
@media print {
@page { size: A4; margin: 14mm 12mm; background: white; }