nomadro/apps/miniprogram/xhs/tool/index.html
eric 69b0bd8224 Ship Taro H5 Vite build and Next-parity hub/nav/book/vip pages.
Switch miniprogram H5 to Vite for fast local compile; align portal pages and static icons for cross-machine continue.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 04:36:12 -05:00

209 lines
11 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>
<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="url(#hubLogoGrad)" stroke-width="2.5" />
<path d="M12 22c4-8 12-8 16 0" stroke="url(#hubLogoGrad)" stroke-width="2" stroke-linecap="round" />
<circle cx="28" cy="14" r="3" fill="url(#hubLogoGrad)" />
<defs>
<linearGradient id="hubLogoGrad" x1="0" y1="0" x2="40" y2="40">
<stop offset="0%" stop-color="#FF6B6B" />
<stop offset="50%" stop-color="#FFE66D" />
<stop offset="100%" stop-color="#4ECDC4" />
</linearGradient>
</defs>
</svg>
<span id="home-brand">nomadro</span>
</div>
<div class="hub-nav-actions">
<button type="button" class="nd-theme-toggle" id="home-theme" aria-label="切换主题">
<span id="home-theme-icon">☀️</span>
</button>
</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" />
<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" />
<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" />
<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" />
<circle class="hub-pulse-dot" cx="260" cy="215" r="5" fill="#FFE66D" />
<circle class="hub-pulse-dot" cx="145" cy="225" r="5" fill="#4ECDC4" />
<path class="hub-flight-path" d="M180 155 Q220 140 260 215" fill="none" stroke="url(#hubOrbitGrad)" stroke-width="2" stroke-dasharray="6 4" />
</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">
<button type="button" class="hub-portal-card" data-go="nav">
<span class="hub-portal-ico" aria-hidden>🧭</span>
<span class="hub-portal-name">出海导航</span>
</button>
<button type="button" class="hub-portal-card" data-go="book">
<span class="hub-portal-ico" aria-hidden>📖</span>
<span class="hub-portal-name">数字游民小册</span>
</button>
<button type="button" class="hub-portal-card hub-portal-card--main" data-go="community">
<span class="hub-portal-ico" aria-hidden>🌏</span>
<span class="hub-portal-name">旅居社群</span>
</button>
</div>
</div>
</section>
</main>
</div>
</section>
<!-- ===== 出海导航(对齐 H5 /nav · 离线 links) ===== -->
<section id="view-nav" class="view">
<header class="topbar" id="topbar">
<button type="button" class="icon-btn" id="btn-back-home" aria-label="返回首页">←</button>
<div class="brand-mark">
<div class="brand-text">
<h1 class="brand-name">出海导航</h1>
<p class="brand-current" id="brand-current">数字游民</p>
</div>
</div>
<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>
</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">
<div class="drawer-head">
<span class="drawer-brand">分类</span>
<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>
</main>
</section>
<!-- ===== 小册(对齐 H5 /book · 离线章节) ===== -->
<section id="view-book" class="view">
<header class="topbar">
<button type="button" class="icon-btn btn-back" data-back="home" aria-label="返回首页">←</button>
<div class="brand-mark"><div class="brand-text"><h1 class="brand-name">数字游民小册</h1><p class="brand-current" id="book-sub">离线预览</p></div></div>
<span class="icon-btn" aria-hidden="true"></span>
</header>
<main class="page sub-page">
<div id="book-list" class="module-list"></div>
<article id="book-reader" class="book-reader is-hidden"></article>
</main>
</section>
<!-- ===== 社群(对齐 H5 /community · 离线活动) ===== -->
<section id="view-community" class="view">
<header class="topbar">
<button type="button" class="icon-btn btn-back" data-back="home" aria-label="返回首页">←</button>
<div class="brand-mark"><div class="brand-text"><h1 class="brand-name">旅居社群</h1><p class="brand-current">活动 · 离线</p></div></div>
<span class="icon-btn" aria-hidden="true"></span>
</header>
<main class="page sub-page">
<div id="community-list" class="module-list"></div>
</main>
</section>
<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">
<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>
<p class="sheet-hint">容器禁止外链,请手动复制网址</p>
<div class="sheet-url-wrap" id="sheet-url-wrap">
<div class="sheet-url-box" id="sheet-url-box"></div>
</div>
<button type="button" class="sheet-select" id="sheet-select">
<strong id="sheet-select-label">点我选中网址</strong>
<span id="sheet-select-sub">选中后按住复制</span>
</button>
<p class="sheet-status" id="sheet-status"></p>
<button type="button" class="sheet-close" id="sheet-close">关闭</button>
</div>
</div>
<div class="toast" id="toast" role="status"></div>
</div>
<script src="./app.js"></script>
</body>
</html>