From c547e022535c86de6ca98f626abbb66c4bbd96b2 Mon Sep 17 00:00:00 2001 From: wuhei Date: Thu, 19 Nov 2026 20:27:10 +0100 Subject: =?UTF-8?q?intro=20page:=20red=20title=20slide=20with=20photo,=20?= =?UTF-8?q?=E6=89=B9=E6=96=97=E5=A4=A7=E4=BC=9A=20/=20STRUGGLE=20SESSION?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - served from the embedded web dir (http.FileServer over the go:embed FS), so the binary is still self-contained - nothing is published to the display until Enter: the broker gates every broadcast on a started flag, and /start also resets the recogniser so room noise during setup cannot leak into the first slide - /config hands the page the intro strings, whether translation is on, and whether the intro was already dismissed (so a reload mid-talk skips it) - -intro=false, -intro-zh, -intro-en, -intro-image to tune or skip it - web/intro.jpg is third-party press photography (secretchina.com), bundled for convenience, not covered by this project's licence --- web/index.html | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) (limited to 'web/index.html') diff --git a/web/index.html b/web/index.html index 404b367..e02159c 100644 --- a/web/index.html +++ b/web/index.html @@ -54,6 +54,47 @@ to { opacity: 1; transform: scale(1); } } .pop { animation: pop 90ms ease-out; } + /* intro page: red, the photo, and the title */ + #intro { + position: fixed; inset: 0; z-index: 10; + background: #c8102e; color: #fff; + display: flex; flex-direction: column; + align-items: center; justify-content: center; + gap: 3.2vh; padding: 6vh 6vw; box-sizing: border-box; + text-align: center; + } + #intro[hidden] { display: none; } + #intro img { + max-width: min(74vw, 1150px); + max-height: 44vh; + box-shadow: 0 0 0 5px rgba(0,0,0,.28), 0 18px 50px rgba(0,0,0,.35); + filter: grayscale(1) contrast(1.06); + } + #intro h1 { + margin: 0; + font-size: clamp(44px, 11vh, 190px); + font-weight: 900; + line-height: 1; + letter-spacing: .05em; + text-indent: .05em; + } + #intro h2 { + margin: 0; + font-family: "Noto Sans", "DejaVu Sans", sans-serif; + font-size: clamp(16px, 3.4vh, 56px); + font-weight: 800; + letter-spacing: .34em; + text-indent: .34em; + } + #intro .hint { + position: absolute; bottom: 4.5vh; + font: 600 clamp(12px, 1.7vh, 22px)/1 "Noto Sans", "DejaVu Sans", sans-serif; + letter-spacing: .1em; opacity: .9; + } + #intro .hint .key { + display: inline-block; padding: .12em .45em; margin-right: .5em; + border: 2px solid currentColor; border-radius: .28em; font-weight: 700; + } #d { position: fixed; right: 12px; bottom: 10px; display: none; font: 12px/1.4 ui-monospace, monospace; color: #bbb; letter-spacing: 0; @@ -61,6 +102,12 @@ +
+ +

批斗大会

+

STRUGGLE SESSION

+
⏎ Press enter to start
+