From 188376e88032f2c957b9b87ef6c06a46b77076ea Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Tue, 15 Sep 2026 09:03:51 +0800 Subject: [PATCH] fix(site): remove the standalone film entry --- docs/design/public-introduction.md | 5 +++-- site/film/README.md | 8 ++++---- site/index.html | 3 --- site/main.js | 1 - site/styles.css | 1 - 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/docs/design/public-introduction.md b/docs/design/public-introduction.md index 9ba1904c3..8cd853023 100644 --- a/docs/design/public-introduction.md +++ b/docs/design/public-introduction.md @@ -89,8 +89,9 @@ The short comics illustrate choosing, inviting and joining, following the shared motion grammar and whole-control replay rule. The optional film starts only after an explicit action and has native buttons and a seek slider. Open it within the homepage, loading its single player on demand; closing it unloads -playback. The standalone page serves recording and direct links. Fullscreen -watching keeps touch controls available; hiding them is an explicit recording action. +playback. Keep one homepage playback entry; the player document also supports +local recording. Fullscreen watching keeps touch controls available; hiding +them is an explicit recording action. Both READMEs share the friendly opening and room illustration. Their feature, limitation and setup sections use the factual register in the copy guide. diff --git a/site/film/README.md b/site/film/README.md index 564cdd5c4..1559095d1 100644 --- a/site/film/README.md +++ b/site/film/README.md @@ -1,10 +1,10 @@ # Piik film The homepage expands this optional, 76-second introduction in an iframe loaded -only on request. Closing it unloads playback; the adjacent **Open film page** link -opens the same player on its own page and carries the current language and theme. -Use `/film/?lang=en` for an English direct link. From the repository -root, run `npm run build:website` and `npm run preview:website`, then open +only on request. Closing it unloads playback; the frame follows the homepage's +language and theme. The player document also supports local recording and +focused checks. From the repository root, run `npm run build:website` and +`npm run preview:website`, then open `http://127.0.0.1:18890/film/`. Publish the static `build/site/` output. A project prefix such as `/Piik/film/` also works; GitHub Pages needs no application server. diff --git a/site/index.html b/site/index.html index 6add12ada..d52678e06 100644 --- a/site/index.html +++ b/site/index.html @@ -97,9 +97,6 @@ A little film about Piik用一支短片,认识 Piik 76s - - Open film page独立页面观看 -
diff --git a/site/main.js b/site/main.js index 2ef6f87f6..ddbfeeff4 100644 --- a/site/main.js +++ b/site/main.js @@ -20,7 +20,6 @@ function syncFilmPreferences() { target.searchParams.set('lang', root.lang); target.searchParams.set('theme', theme.value); filmLink.href = target.href; - document.querySelector('[data-film-page]').href = target.href; filmFrame.contentWindow?.postMessage({type:'piik-film-preferences',lang:root.lang,theme:theme.value}, location.origin); } const copy = { diff --git a/site/styles.css b/site/styles.css index 783e9f5a6..a2f01148d 100644 --- a/site/styles.css +++ b/site/styles.css @@ -77,7 +77,6 @@ h1 { font-size: clamp(49px, 5.7vw, 76px); line-height: 1.06; margin-block: 22px .hero-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 18px; } .film-actions { display:flex; align-items:center; flex-wrap:wrap; gap:0 20px; margin-top:18px; } .film-link { display:inline-flex; align-items:center; gap:10px; min-height:44px; text-decoration:none; font-size:12px; font-weight:650; } -.film-page-link { display:inline-flex; align-items:center; min-height:44px; color:var(--muted); font-size:12px; } .film-play { display:grid; place-items:center; width:33px; height:33px; border-radius:50%; color:var(--orange); background:var(--paper); transition:transform .22s cubic-bezier(.2,.9,.3,1.4); } .film-play svg { width:23px; height:23px; } .film-link:is(:hover,:focus-visible) .film-play { transform:scale(1.12); }