Add apps/miniprogram/tt as a standalone Douyin app with official usePrivacyCheck + tt.showModal/setClipboardData flow, single-chapter offline reader, and document console privacy setup for clipboard. Co-authored-by: Cursor <cursoragent@cursor.com>
260 lines
13 KiB
HTML
260 lines
13 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN" data-theme="dark">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
||
<meta name="description" content="nomadro · 随处工作,自由生活" />
|
||
<title>nomadro</title>
|
||
<link rel="stylesheet" href="./styles.css" />
|
||
</head>
|
||
<body data-start-view="home">
|
||
<div id="app" class="app-shell">
|
||
<!-- ===== 门户首页 = H5 /(hub hero)· 纯离线 ===== -->
|
||
<section id="view-home" class="view is-active">
|
||
<div class="hub-root" id="hub-root">
|
||
<div class="hub-loader" id="hub-loader">
|
||
<div class="hub-loader-inner">
|
||
<svg class="hub-loader-globe" viewBox="0 0 80 80" fill="none" aria-hidden>
|
||
<circle cx="40" cy="40" r="35" stroke="url(#hubLoaderGrad)" stroke-width="3" stroke-dasharray="60 160" class="hub-loader-ring" />
|
||
<defs>
|
||
<linearGradient id="hubLoaderGrad" x1="0" y1="0" x2="80" y2="80">
|
||
<stop offset="0%" stop-color="#FF6B6B" />
|
||
<stop offset="100%" stop-color="#4ECDC4" />
|
||
</linearGradient>
|
||
</defs>
|
||
</svg>
|
||
<p class="hub-loader-text">nomadro</p>
|
||
</div>
|
||
</div>
|
||
|
||
<canvas id="particle-canvas" class="hub-particle-canvas" aria-hidden="true"></canvas>
|
||
|
||
<header class="hub-navbar" id="hub-navbar">
|
||
<div class="hub-nav-container">
|
||
<div class="hub-logo">
|
||
<svg class="hub-logo-icon" viewBox="0 0 40 40" fill="none" aria-hidden>
|
||
<circle cx="20" cy="20" r="18" stroke="#f06664" stroke-width="2.5" />
|
||
<path d="M12 22c4-8 12-8 16 0" stroke="#f06664" stroke-width="2" stroke-linecap="round" />
|
||
<circle cx="28" cy="14" r="3" fill="#f06664" />
|
||
</svg>
|
||
<span id="home-brand">nomadro</span>
|
||
</div>
|
||
<div class="hub-nav-actions"></div>
|
||
</div>
|
||
</header>
|
||
|
||
<main>
|
||
<section class="hub-hero">
|
||
<div class="hub-hero-bg-shapes" aria-hidden="true">
|
||
<div class="hub-shape hub-shape-1"></div>
|
||
<div class="hub-shape hub-shape-2"></div>
|
||
<div class="hub-shape hub-shape-3"></div>
|
||
</div>
|
||
|
||
<div class="hub-hero-inner">
|
||
<h1 class="hub-hero-title hub-reveal visible">
|
||
随处工作
|
||
<br />
|
||
<span class="hub-gradient-text">自由生活</span>
|
||
</h1>
|
||
|
||
<div class="hub-hero-visual hub-reveal visible">
|
||
<div class="hub-globe-container">
|
||
<svg class="hub-globe-svg" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" aria-hidden>
|
||
<defs>
|
||
<radialGradient id="hubGlobeGlow" cx="50%" cy="50%" r="50%">
|
||
<stop offset="0%" stop-color="#4ECDC4" stop-opacity="0.3" />
|
||
<stop offset="100%" stop-color="#4ECDC4" stop-opacity="0" />
|
||
</radialGradient>
|
||
<linearGradient id="hubOrbitGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||
<stop offset="0%" stop-color="#FF6B6B" />
|
||
<stop offset="100%" stop-color="#4ECDC4" />
|
||
</linearGradient>
|
||
</defs>
|
||
<circle cx="200" cy="200" r="160" fill="url(#hubGlobeGlow)" />
|
||
<circle cx="200" cy="200" r="120" fill="none" stroke="rgba(78,205,196,0.2)" stroke-width="1" />
|
||
<circle cx="200" cy="200" r="90" fill="none" stroke="rgba(78,205,196,0.15)" stroke-width="1" />
|
||
<g class="hub-orbit-spin-g">
|
||
<ellipse class="hub-orbit-ring" cx="200" cy="200" rx="120" ry="40" fill="none" stroke="rgba(78,205,196,0.3)" stroke-width="1.5" />
|
||
<animateTransform attributeName="transform" type="rotate" from="0 200 200" to="360 200 200" dur="20s" repeatCount="indefinite" />
|
||
</g>
|
||
<g class="hub-orbit-spin-g-2">
|
||
<ellipse class="hub-orbit-ring hub-orbit-ring-2" cx="200" cy="200" rx="40" ry="120" fill="none" stroke="rgba(255,107,107,0.3)" stroke-width="1.5" />
|
||
<animateTransform attributeName="transform" type="rotate" from="360 200 200" to="0 200 200" dur="15s" repeatCount="indefinite" />
|
||
</g>
|
||
<path class="hub-continent" d="M160 140 Q180 130 200 135 Q220 128 240 140 Q250 155 245 170 Q235 185 220 190 Q200 195 185 188 Q165 180 160 165 Z" fill="rgba(78,205,196,0.4)" />
|
||
<path class="hub-continent" d="M130 210 Q145 200 160 215 Q155 235 140 240 Q125 235 130 210 Z" fill="rgba(78,205,196,0.3)" />
|
||
<path class="hub-continent" d="M250 200 Q270 195 280 210 Q275 230 260 235 Q245 228 250 200 Z" fill="rgba(78,205,196,0.35)" />
|
||
<circle class="hub-pulse-dot" cx="180" cy="155" r="5" fill="#FF6B6B">
|
||
<animate attributeName="r" values="5;8;5" dur="2s" repeatCount="indefinite" />
|
||
<animate attributeName="opacity" values="1;0.55;1" dur="2s" repeatCount="indefinite" />
|
||
</circle>
|
||
<circle class="hub-pulse-dot" cx="260" cy="215" r="5" fill="#FFE66D">
|
||
<animate attributeName="r" values="5;8;5" dur="2s" begin="0.5s" repeatCount="indefinite" />
|
||
<animate attributeName="opacity" values="1;0.55;1" dur="2s" begin="0.5s" repeatCount="indefinite" />
|
||
</circle>
|
||
<circle class="hub-pulse-dot" cx="145" cy="225" r="5" fill="#4ECDC4">
|
||
<animate attributeName="r" values="5;8;5" dur="2s" begin="1s" repeatCount="indefinite" />
|
||
<animate attributeName="opacity" values="1;0.55;1" dur="2s" begin="1s" repeatCount="indefinite" />
|
||
</circle>
|
||
<path class="hub-flight-path" d="M180 155 Q220 140 260 215" fill="none" stroke="url(#hubOrbitGrad)" stroke-width="2" stroke-dasharray="6 4">
|
||
<animate attributeName="stroke-dashoffset" from="0" to="-40" dur="3s" repeatCount="indefinite" />
|
||
</path>
|
||
</svg>
|
||
<div class="hub-floating-cards" aria-hidden="true">
|
||
<div class="hub-float-card hub-fc-1">🏝️ 巴厘岛</div>
|
||
<div class="hub-float-card hub-fc-2">☕ 里斯本</div>
|
||
<div class="hub-float-card hub-fc-3">🏔️ 清迈</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="hub-portal-grid hub-reveal visible" id="home-cards">
|
||
<div role="button" class="hub-portal-card" data-go="nav" tabindex="0">
|
||
<span class="hub-portal-ico" aria-hidden>🧭</span>
|
||
<span class="hub-portal-name">出海导航</span>
|
||
</div>
|
||
<div role="button" class="hub-portal-card" data-go="book" tabindex="0">
|
||
<span class="hub-portal-ico" aria-hidden>📖</span>
|
||
<span class="hub-portal-name">数字游民小册</span>
|
||
</div>
|
||
<div role="button" class="hub-portal-card hub-portal-card--main" data-go="community" tabindex="0">
|
||
<span class="hub-portal-ico" aria-hidden>🌏</span>
|
||
<span class="hub-portal-name">旅居社群</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ===== 出海导航(功能 SoT: apps/navmini/xhs) ===== -->
|
||
<section id="view-nav" class="view">
|
||
<header class="topbar" id="topbar">
|
||
<button type="button" class="icon-btn" id="btn-menu" aria-label="打开分类">
|
||
<span class="menu-bars" aria-hidden="true"><i></i><i></i><i></i></span>
|
||
</button>
|
||
<div class="brand-mark" id="btn-back-home" role="button" data-back="home" aria-label="返回首页">
|
||
<img id="brand-logo" class="brand-logo" src="./icons/nomadro.webp" alt="" width="28" height="28" />
|
||
<div class="brand-text">
|
||
<h1 class="brand-name" id="brand-name">出海导航</h1>
|
||
<p class="brand-current" id="brand-current">数字游民</p>
|
||
</div>
|
||
<span class="logo-home-hint">首页</span>
|
||
</div>
|
||
<button type="button" class="icon-btn" id="btn-theme" aria-label="切换主题">
|
||
<span id="theme-icon">☾</span>
|
||
</button>
|
||
</header>
|
||
<div class="drawer-root" id="drawer" aria-hidden="true">
|
||
<button type="button" class="drawer-mask" id="drawer-mask" aria-label="关闭菜单"></button>
|
||
<aside class="drawer-panel" role="dialog" aria-modal="true" aria-label="分类导航">
|
||
<div class="drawer-head">
|
||
<div class="drawer-brand-wrap">
|
||
<img src="./icons/nomadro.webp" alt="" width="28" height="28" />
|
||
<div>
|
||
<span class="drawer-brand" id="drawer-brand">出海导航</span>
|
||
<span class="drawer-sub" id="drawer-sub"></span>
|
||
</div>
|
||
</div>
|
||
<button type="button" class="icon-btn" id="drawer-close" aria-label="关闭">×</button>
|
||
</div>
|
||
<nav class="drawer-nav" id="drawer-nav"></nav>
|
||
</aside>
|
||
</div>
|
||
<main class="page" id="page">
|
||
<div id="content"></div>
|
||
<footer class="footer" id="footer"></footer>
|
||
</main>
|
||
</section>
|
||
|
||
<!-- ===== 小册(对齐微信 book 封面) ===== -->
|
||
<section id="view-book" class="view">
|
||
<div id="book-list"></div>
|
||
<article id="book-reader" class="book-reader is-hidden"></article>
|
||
</section>
|
||
|
||
<!-- ===== 社群(对齐微信 community Hero) ===== -->
|
||
<section id="view-community" class="view">
|
||
<div id="community-list"></div>
|
||
</section>
|
||
|
||
<!-- ===== VIP(对齐微信 vip landing) ===== -->
|
||
<section id="view-vip" class="view view-vip">
|
||
<div id="vip-page"></div>
|
||
</section>
|
||
|
||
<button type="button" class="back-top" id="back-top" aria-label="回到顶部">↑</button>
|
||
|
||
<div class="sheet-root" id="sheet" aria-hidden="true">
|
||
<button type="button" class="sheet-mask" id="sheet-mask" aria-label="关闭"></button>
|
||
<div class="sheet-panel" role="dialog" aria-modal="true" aria-labelledby="sheet-title">
|
||
<div class="sheet-handle" aria-hidden="true"></div>
|
||
<div class="sheet-head">
|
||
<img class="sheet-icon" id="sheet-icon" src="" alt="" width="40" height="40" />
|
||
<div class="sheet-head-text">
|
||
<h3 class="sheet-title" id="sheet-title"></h3>
|
||
<p class="sheet-sub" id="sheet-sub"></p>
|
||
</div>
|
||
</div>
|
||
|
||
<ol class="guide-steps" id="guide-steps" aria-label="复制步骤">
|
||
<li class="guide-step is-active" data-step="1">
|
||
<span class="guide-num">1</span>
|
||
<span class="guide-text">
|
||
<strong>点下方绿色按钮</strong>
|
||
<em>选中整段网址</em>
|
||
</span>
|
||
</li>
|
||
<li class="guide-step" data-step="2">
|
||
<span class="guide-num">2</span>
|
||
<span class="guide-text">
|
||
<strong>手指按住蓝色网址区</strong>
|
||
<em>直到出现复制菜单</em>
|
||
</span>
|
||
</li>
|
||
<li class="guide-step" data-step="3">
|
||
<span class="guide-num">3</span>
|
||
<span class="guide-text">
|
||
<strong>点菜单里的「复制」</strong>
|
||
<em>再到浏览器粘贴打开</em>
|
||
</span>
|
||
</li>
|
||
</ol>
|
||
|
||
<div class="sheet-body">
|
||
<div class="url-stage" id="url-stage">
|
||
<p class="sheet-label">要复制的网址</p>
|
||
<div class="sheet-url-wrap" id="sheet-url-wrap">
|
||
<div class="sheet-url-box" id="sheet-url-box" tabindex="0"></div>
|
||
<div class="finger-url is-hidden" id="finger-url" aria-hidden="true">
|
||
<span class="finger-ico" aria-hidden="true">👆</span>
|
||
<span class="finger-bubble">按住这里不松 → 点「复制」</span>
|
||
</div>
|
||
</div>
|
||
<p class="sheet-status" id="sheet-status"></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="sheet-actions-wrap">
|
||
<div class="finger-btn" id="finger-btn" aria-hidden="true">
|
||
<span class="finger-ico" aria-hidden="true">👇</span>
|
||
</div>
|
||
<div class="sheet-actions">
|
||
<button type="button" class="sheet-btn primary pulse" id="sheet-select">
|
||
<span class="sheet-btn-main" id="sheet-select-label">① 点我选中网址</span>
|
||
<span class="sheet-btn-sub" id="sheet-select-sub">选中后请按住网址复制</span>
|
||
</button>
|
||
<button type="button" class="sheet-btn" id="sheet-close">关闭</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="toast" id="toast" role="status"></div>
|
||
</div>
|
||
<script src="./app.js"></script>
|
||
</body>
|
||
</html>
|