PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
feat(site): highlight the full tour beside the download button
baiyuzeebf457ec22f7
diff --git a/docs/assets/site.css b/docs/assets/site.cssindex 9aa0d6d..1bfac62 100644--- a/docs/assets/site.css+++ b/docs/assets/site.css@@ -494,8 +494,7 @@ code {overflow: hidden;}-.tour-link { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.25rem; font-size: 0.95rem; }-.tour-link > span:first-child { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; padding-left: 2px; border: 1px solid var(--rule-strong); border-radius: 50%; font-size: 0.65rem; }+.tour-link > span:first-child { margin-right: 0.15rem; color: var(--blue-hi); font-size: 0.75rem; }.tour-duration { color: var(--dim); font: 0.8rem var(--mono); }.tour-is-open { overflow: hidden; }.tour-dialog { width: min(1200px, calc(100vw - 32px)); height: min(calc(min(1200px, 100vw - 32px) * 9 / 16 + 78px), calc(100dvh - 100px)); max-width: 1200px; max-height: calc(100dvh - 100px); padding: 0; border: 1px solid var(--rule-strong); border-radius: 18px; background: var(--ground); overflow: visible; box-shadow: 0 30px 120px #0009; }diff --git a/docs/en/index.html b/docs/en/index.htmlindex a4a36af..a16abe6 100644--- a/docs/en/index.html+++ b/docs/en/index.html@@ -207,10 +207,10 @@<p class="lede">Mac, Windows and Linux. Text, images, files, whole folders. No shared account required. On the same network it works with no server at all, and it works across networks too. Data moves directly between your devices, end-to-end encrypted.</p><div class="cta"><a class="button" href="download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download PasteFerry</a>+ <a class="button quiet tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> Watch the full tour <span class="tour-duration">1:25</span></a></div><p class="note">Version 2.0.0, free and open source. macOS 13 or later; Windows 10 and 11; Linux (x64 and ARM64).</p><a class="start-link" href="start/">New here? Set it up in three steps →</a>- <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> Watch the tour <span class="tour-duration">1:25</span></a><div class="stage" data-play role="img" aria-label="Demo: Command C on a MacBook turns a file into a sheet that flies over a direct connection to a Windows laptop, where Ctrl V pastes it"><figure class="device mac"><div class="screen"><div class="desk">diff --git a/docs/en/tour/index.html b/docs/en/tour/index.htmlindex fd199c9..3d5d6b2 100644--- a/docs/en/tour/index.html+++ b/docs/en/tour/index.html@@ -31,7 +31,7 @@</details></nav></header><main>- <div class="tour-player" data-labels="{"watch": "Watch the tour", "title": "Meet PasteFerry in 85 seconds", "play": "Play", "pause": "Pause", "replay": "Replay", "progress": "Playback position", "chapters": "Choose a chapter", "fullscreen": "Full screen", "exit_fullscreen": "Exit full screen", "close": "Close tour", "back": "Back to the site", "summary": "Tour highlights", "silent": "Silent tour"}">+ <div class="tour-player" data-labels="{"watch": "Watch the full tour", "title": "Meet PasteFerry in 85 seconds", "play": "Play", "pause": "Pause", "replay": "Replay", "progress": "Playback position", "chapters": "Choose a chapter", "fullscreen": "Full screen", "exit_fullscreen": "Exit full screen", "close": "Close tour", "back": "Back to the site", "summary": "Tour highlights", "silent": "Silent tour"}"><div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. --><div id="film" aria-hidden="true">diff --git a/docs/index.html b/docs/index.htmlindex 03b795c..3c7e110 100644--- a/docs/index.html+++ b/docs/index.html@@ -231,10 +231,10 @@<p class="lede">Mac、Windows、Linux 互通。文本、图片、文件、整个文件夹都可以,不要求同一个账号。同一个网络里装好就能用,不需要服务器;跨网络也可以。数据在你的设备之间直接传输,端到端加密。</p><div class="cta"><a class="button" href="download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载隔空贴</a>+ <a class="button quiet tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 看完整演示 <span class="tour-duration">1:25</span></a></div><p class="note">版本 2.0.0,免费开源。macOS 13 及以上;Windows 10、11;Linux(x64 与 ARM64)。</p><a class="start-link" href="start/">第一次用?看快速开始,三步配好 →</a>- <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 观看宣传片 <span class="tour-duration">1:25</span></a><div class="stage" data-play role="img" aria-label="演示:在 MacBook 上按下 Command C,文件化作一张纸,经直连飞到 Windows 笔记本,在那里按下 Ctrl V 粘贴出来"><figure class="device mac"><div class="screen"><div class="desk">diff --git a/docs/ja/index.html b/docs/ja/index.htmlindex a7bce55..2801ce5 100644--- a/docs/ja/index.html+++ b/docs/ja/index.html@@ -207,10 +207,10 @@<p class="lede">Mac、Windows、Linux に対応。テキスト、画像、ファイル、フォルダまるごと。同じアカウントは要りません。同じネットワークならサーバーなしで使え、ネットワークをまたいでも使えます。データはデバイス間を直接流れ、エンドツーエンドで暗号化されます。</p><div class="cta"><a class="button" href="download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>PasteFerry をダウンロード</a>+ <a class="button quiet tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 紹介ムービーを見る <span class="tour-duration">1:25</span></a></div><p class="note">バージョン 2.0.0、無料・オープンソース。macOS 13 以降、Windows 10・11、Linux(x64 と ARM64)。</p><a class="start-link" href="start/">はじめての方は、3 ステップのはじめかたへ →</a>- <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 紹介ムービーを見る <span class="tour-duration">1:25</span></a><div class="stage" data-play role="img" aria-label="デモ:MacBook で Command C を押すと、ファイルが一枚の紙になって直接接続で Windows ノートへ飛び、そこで Ctrl V を押して貼り付けます"><figure class="device mac"><div class="screen"><div class="desk">diff --git a/docs/tour/index.html b/docs/tour/index.htmlindex 041f8d0..fd28542 100644--- a/docs/tour/index.html+++ b/docs/tour/index.html@@ -31,7 +31,7 @@</details></nav></header><main>- <div class="tour-player" data-labels="{"watch": "观看宣传片", "title": "一分钟多,了解隔空贴", "play": "播放", "pause": "暂停", "replay": "重新播放", "progress": "播放进度", "chapters": "选择章节", "fullscreen": "全屏", "exit_fullscreen": "退出全屏", "close": "关闭宣传片", "back": "返回官网", "summary": "影片要点", "silent": "无声演示"}">+ <div class="tour-player" data-labels="{"watch": "看完整演示", "title": "一分钟多,了解隔空贴", "play": "播放", "pause": "暂停", "replay": "重新播放", "progress": "播放进度", "chapters": "选择章节", "fullscreen": "全屏", "exit_fullscreen": "退出全屏", "close": "关闭宣传片", "back": "返回官网", "summary": "影片要点", "silent": "无声演示"}"><div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. --><div id="film" aria-hidden="true">diff --git a/docs/zh-hk/index.html b/docs/zh-hk/index.htmlindex 247146f..30a0cf7 100644--- a/docs/zh-hk/index.html+++ b/docs/zh-hk/index.html@@ -207,10 +207,10 @@<p class="lede">Mac、Windows、Linux 互通。文字、圖片、檔案以至整個資料夾都可以,不必使用同一個帳戶。在同一個網絡裏安裝好就能用,不需要伺服器;跨網絡也可以。資料在你的裝置之間直接傳輸,端對端加密。</p><div class="cta"><a class="button" href="download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載隔空貼</a>+ <a class="button quiet tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 觀看完整示範 <span class="tour-duration">1:25</span></a></div><p class="note">版本 2.0.0,免費開源。macOS 13 或以上;Windows 10、11;Linux(x64 與 ARM64)。</p><a class="start-link" href="start/">第一次使用?看看快速開始,三步設定好 →</a>- <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 觀看宣傳片 <span class="tour-duration">1:25</span></a><div class="stage" data-play role="img" aria-label="示範:在 MacBook 上按下 Command C,檔案化成一張紙,經直連飛到 Windows 手提電腦,在那裏按下 Ctrl V 貼上"><figure class="device mac"><div class="screen"><div class="desk">diff --git a/docs/zh-hk/tour/index.html b/docs/zh-hk/tour/index.htmlindex c493576..1a89b60 100644--- a/docs/zh-hk/tour/index.html+++ b/docs/zh-hk/tour/index.html@@ -31,7 +31,7 @@</details></nav></header><main>- <div class="tour-player" data-labels="{"watch": "觀看宣傳片", "title": "一分多鐘,認識隔空貼", "play": "播放", "pause": "暫停", "replay": "重新播放", "progress": "播放進度", "chapters": "選擇章節", "fullscreen": "全螢幕", "exit_fullscreen": "離開全螢幕", "close": "關閉宣傳片", "back": "返回官網", "summary": "影片重點", "silent": "無聲示範"}">+ <div class="tour-player" data-labels="{"watch": "觀看完整示範", "title": "一分多鐘,認識隔空貼", "play": "播放", "pause": "暫停", "replay": "重新播放", "progress": "播放進度", "chapters": "選擇章節", "fullscreen": "全螢幕", "exit_fullscreen": "離開全螢幕", "close": "關閉宣傳片", "back": "返回官網", "summary": "影片重點", "silent": "無聲示範"}"><div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. --><div id="film" aria-hidden="true">diff --git a/docs/zh-tw/index.html b/docs/zh-tw/index.htmlindex 0cf4d4b..ba76b47 100644--- a/docs/zh-tw/index.html+++ b/docs/zh-tw/index.html@@ -207,10 +207,10 @@<p class="lede">Mac、Windows、Linux 互通。文字、圖片、檔案、整個資料夾都可以,不必使用同一個帳號。在同一個網路裡裝好就能用,不需要伺服器;跨網路也可以。資料在你的裝置之間直接傳輸,端對端加密。</p><div class="cta"><a class="button" href="download/"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載隔空貼</a>+ <a class="button quiet tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 看完整示範 <span class="tour-duration">1:25</span></a></div><p class="note">版本 2.0.0,免費開源。macOS 13 以上;Windows 10、11;Linux(x64 與 ARM64)。</p><a class="start-link" href="start/">第一次用?看快速入門,三個步驟就設定好 →</a>- <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 觀看宣傳片 <span class="tour-duration">1:25</span></a><div class="stage" data-play role="img" aria-label="示範:在 MacBook 上按下 Command C,檔案化成一張紙,經直連飛到 Windows 筆電,在那裡按下 Ctrl V 貼上"><figure class="device mac"><div class="screen"><div class="desk">diff --git a/docs/zh-tw/tour/index.html b/docs/zh-tw/tour/index.htmlindex 913cb32..70e65a9 100644--- a/docs/zh-tw/tour/index.html+++ b/docs/zh-tw/tour/index.html@@ -31,7 +31,7 @@</details></nav></header><main>- <div class="tour-player" data-labels="{"watch": "觀看宣傳片", "title": "一分多鐘,認識隔空貼", "play": "播放", "pause": "暫停", "replay": "重新播放", "progress": "播放進度", "chapters": "選擇章節", "fullscreen": "全螢幕", "exit_fullscreen": "離開全螢幕", "close": "關閉宣傳片", "back": "返回官網", "summary": "影片重點", "silent": "無聲示範"}">+ <div class="tour-player" data-labels="{"watch": "看完整示範", "title": "一分多鐘,認識隔空貼", "play": "播放", "pause": "暫停", "replay": "重新播放", "progress": "播放進度", "chapters": "選擇章節", "fullscreen": "全螢幕", "exit_fullscreen": "離開全螢幕", "close": "關閉宣傳片", "back": "返回官網", "summary": "影片重點", "silent": "無聲示範"}"><div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. --><div id="film" aria-hidden="true">diff --git a/tools/site/TOUR.md b/tools/site/TOUR.mdindex 577d206..9c76ba3 100644--- a/tools/site/TOUR.md+++ b/tools/site/TOUR.md@@ -1,8 +1,9 @@# Website tourEach language's homepage opens a localized, silent 85-second tour. The same-tour is available at `tour/` under each language root. The homepage loads the-artwork and screenshots only after the visitor clicks **Watch the tour**.+tour is available at `tour/` under each language root. The homepage keeps its+short copy-and-paste animation and places **Watch the full tour** next to the+download button. The full tour's artwork and screenshots load only on click.- `tour.html` holds the shared scene markup with `{{semantic_key}}` placeholders.- `content/tour.py` holds five complete translations and the player labels.diff --git a/tools/site/build.py b/tools/site/build.pyindex 70bb064..3a16c01 100644--- a/tools/site/build.py+++ b/tools/site/build.py@@ -169,13 +169,15 @@ def footer(c: dict, code: str, up: str, sub: str = "") -> str:</footer>"""-def cta(c: dict, base: str, start: str = "") -> str:+def cta(c: dict, base: str, start: str = "", tour_label: str = "") -> str:"""下载按钮,指向下载页:在那里按系统和芯片选安装包。base 是语言根目录的相对路径,start 是快速开始页面的地址,给了就在下面加一行链接。"""link = f'\n <a class="start-link" href="{start}">{c["start_link"]}</a>' if start else ""+ tour = (f'\n <a class="button quiet tour-link" href="{base}{TOUR}" data-tour-open aria-haspopup="dialog">'+ f'<span aria-hidden="true">▶</span> {esc(tour_label)} <span class="tour-duration">1:25</span></a>') if tour_label else ""return f"""<div class="cta">- <a class="button" href="{base}{DOWNLOAD}">{DOWN}{c["dl_button"]}</a>+ <a class="button" href="{base}{DOWNLOAD}">{DOWN}{c["dl_button"]}</a>{tour}</div><p class="note">{c["dl_note"]}</p>{link}"""@@ -410,8 +412,7 @@ def home(code: str) -> str:<section class="hero"><div class="wrap"><h1 class="display">{c["h1"]}</h1>- <p class="lede">{c["lede"]}</p>{cta(c, "", START)}- <a class="tour-link" href="{TOUR}" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> {tour_ui["watch"]} <span class="tour-duration">1:25</span></a>+ <p class="lede">{c["lede"]}</p>{cta(c, "", START, tour_ui["watch"])}<div class="stage" data-play role="img" aria-label="{esc(c["stage_label"])}"><figure class="device mac"><div class="screen"><div class="desk">diff --git a/tools/site/content/tour.py b/tools/site/content/tour.pyindex 6a57ec5..2e0ce9a 100644--- a/tools/site/content/tour.py+++ b/tools/site/content/tour.py@@ -62,7 +62,7 @@ COPY = {}UI = {- "watch": ("观看宣传片", "觀看宣傳片", "觀看宣傳片", "Watch the tour", "紹介ムービーを見る"),+ "watch": ("看完整演示", "看完整示範", "觀看完整示範", "Watch the full tour", "紹介ムービーを見る"),"title": ("一分钟多,了解隔空贴", "一分多鐘,認識隔空貼", "一分多鐘,認識隔空貼", "Meet PasteFerry in 85 seconds", "85 秒でわかる PasteFerry"),"play": ("播放", "播放", "播放", "Play", "再生"),"pause": ("暂停", "暫停", "暫停", "Pause", "一時停止"),