Compare commits

...
Author SHA1 Message Date
Codex af8c292446 feat(fuc): prepare independent public address navigation 2026-11-08 18:58:41 +08:00
3 changed files with 307 additions and 0 deletions

No files matched your search

@@ -0,0 +1,9 @@
export async function copyText(text,{clipboard=globalThis.navigator?.clipboard,document=globalThis.document}={}){
if(clipboard?.writeText){try{await clipboard.writeText(text);return;}catch{}}
// Same fallback used by the original ClipboardJS, including HTTP local previews.
const active=document.activeElement,input=document.createElement('textarea');
input.value=text;input.readOnly=true;input.style.cssText='position:fixed;left:-9999px;top:0';
document.body.append(input);
try{input.focus({preventScroll:true});input.select();input.setSelectionRange(0,input.value.length);if(!document.execCommand?.('copy'))throw Error('复制失败,请选中链接手动复制');}
finally{input.remove();if(active?.isConnected)active.focus();}
}
+293
View File
@@ -0,0 +1,293 @@
<!doctype html>
<html lang="zh-CN" data-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="no-referrer">
<title>福云地址导航</title>
<link rel="icon" href="./logo.svg" type="image/svg+xml">
<style>
:root {
color-scheme: light;
--page: #f5f3fb;
--panel: #fff;
--ink: #211b39;
--muted: #625a76;
--line: #e7e1f2;
--accent: #5941bf;
--action: #6045ce;
--tint: #f0ebff;
--glow: #e4dcff;
--shadow: rgb(49 31 102 / 9%);
font: 16px/1.55 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="dark"] {
color-scheme: dark;
--page: #171426;
--panel: #201c34;
--ink: #f6f1ff;
--muted: #bbb2d0;
--line: #38304d;
--accent: #c6b7ff;
--action: #7256df;
--tint: #332851;
--glow: #2d214a;
--shadow: rgb(0 0 0 / 20%);
}
*, *::before, *::after { box-sizing: border-box; }
body {
min-height: 100vh;
margin: 0;
color: var(--ink);
background: radial-gradient(ellipse at 16% 30%, var(--glow), transparent 50%), var(--page);
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:is(a, button):focus-visible,
.entry:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding-block: 26px;
border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 750; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.theme {
display: grid;
width: 42px;
height: 42px;
place-items: center;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--panel);
}
.theme:hover { color: var(--accent); border-color: var(--accent); }
.theme svg { width: 19px; height: 19px; }
[data-theme="dark"] .theme .moon, [data-theme="light"] .theme .sun { display: none; }
main {
display: grid;
grid-template-columns: .86fr 1fr;
align-items: center;
gap: clamp(28px, 6vw, 80px);
min-height: min(680px, calc(100svh - 100px));
padding-block: 64px;
}
h1 { margin: 0 0 16px; font-size: clamp(38px, 6.5vw, 70px); line-height: 1.12; letter-spacing: -.045em; }
.intro p { max-width: 23em; margin: 0; color: var(--muted); }
.copy-control { position: relative; display: inline-block; }
.copy-email {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 0;
border: 0;
color: var(--accent);
background: none;
font-weight: 650;
text-decoration: underline dotted;
text-underline-offset: 4px;
}
.copy-email:hover { text-decoration-style: solid; }
.copy-feedback {
position: absolute;
inset-inline-end: 0;
inset-block-end: calc(100% + 6px);
z-index: 1;
width: max-content;
max-width: 100%;
padding: 3px 8px;
border: 1px solid var(--line);
border-radius: 6px;
color: var(--accent);
background: var(--panel);
box-shadow: 0 4px 12px var(--shadow);
font-size: 12px;
pointer-events: none;
}
.copy-feedback:empty { opacity: 0; }
.entries {
padding: clamp(16px, 3vw, 28px);
border: 1px solid var(--line);
border-radius: 24px;
background: var(--panel);
box-shadow: 0 22px 64px var(--shadow);
}
.panel-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: var(--muted);
font-size: 12px;
}
.entries h2 { margin: 0 0 14px; font-size: 16px; }
.routes { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.entry {
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
align-items: center;
gap: 14px;
min-height: 80px;
padding: 14px;
border: 1px solid var(--line);
border-radius: 14px;
cursor: pointer;
transition: border-color .16s ease, background-color .16s ease;
}
.entry:has(input:checked), .entry:hover { background: var(--tint); border-color: var(--accent); }
.entry input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.entry strong, .entry small { display: block; }
.entry strong { overflow-wrap: anywhere; font-size: 17px; }
.entry small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.panel-footer { min-height: 40px; margin-block: 12px 10px; }
@media (prefers-reduced-motion: reduce) {
.entry { transition: none; }
}
</style>
</head>
<body>
<header class="wrap">
<a class="brand" href="/"><img src="./logo.svg" alt="">福云</a>
<button class="theme" type="button" aria-label="切换到浅色">
<svg class="sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.4 1.4m11.2 11.2L19 19M5 19l1.4-1.4m11.2-11.2L19 5"/></svg>
<svg class="moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M20.9 13.3A9 9 0 0 1 10.7 3.1a9 9 0 1 0 10.2 10.2Z"/></svg>
</button>
</header>
<main class="wrap">
<section class="intro" aria-labelledby="page-title">
<h1 id="page-title">福云地址导航</h1>
<p>务必,请收藏我们的邮箱
<span class="copy-control">
<button class="copy-email" type="button" aria-label="复制邮箱地址 [email protected]">
[email protected]
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true">
<path d="M8 8h9l3 3v10H8V8Z M15 8V3H3v13h5"/>
</svg>
</button>
<span class="copy-feedback" role="status"></span>
</span>。导航地址被墙时,可发送任意邮件至我们的邮箱,会自动回复最新地址。
</p>
</section>
<section class="entries" aria-labelledby="entry-title">
<h2 id="entry-title">访问入口</h2>
<fieldset class="routes" aria-labelledby="entry-title">
<label class="entry">
<input type="radio" name="route" value="https://fu99.cloud/" data-domainhub-code="fuc.direct-current" checked>
<span><strong>fu99.cloud</strong><small>免翻墙入口 · 推荐</small></span>
</label>
<label class="entry">
<input type="radio" name="route" value="https://xn--123-9i9dj97q.com/" data-domainhub-code="fuc.direct-cn-backup">
<span><strong>福云123.com</strong><small>备用入口</small></span>
</label>
<label class="entry">
<input type="radio" name="route" value="https://xn--9kqy16h.com/" data-domainhub-code="fuc.main-cn">
<span><strong>福云.com</strong><small>中文主域名</small></span>
</label>
<label class="entry">
<input type="radio" name="route" value="https://fuuu.cloud/" data-domainhub-code="fuc.main-en">
<span><strong>fuuu.cloud</strong><small>英文主域名</small></span>
</label>
</fieldset>
<div class="panel-footer">
<span id="route-status" role="status">已选择 fu99.cloud</span>
</div>
<div class="actions">
<a id="enter" class="enter" href="https://fu99.cloud/#/register">立即进入 →</a>
<button class="countdown" type="button">开始 8 秒跳转</button>
</div>
</section>
</main>
<script>
const theme = document.querySelector('.theme');
const routes = document.querySelector('.routes');
const status = document.querySelector('#route-status');
const enter = document.querySelector('#enter');
const countdown = document.querySelector('.countdown');
const invite = new URLSearchParams(location.search).get('code');
const seconds = 8;
let remaining = seconds;
let timer;
function selectRoute() {
const selected = routes.querySelector('input:checked');
const origin = new URL(selected.value).origin;
const code = invite && /^[A-Za-z0-9_-]{1,64}$/.test(invite) ? '?code=' + encodeURIComponent(invite) : '';
enter.href = origin + '/#/register' + code;
status.textContent = '已选择 ' + selected.closest('label').querySelector('strong').textContent;
}
function pauseCountdown() {
clearInterval(timer);
timer = undefined;
countdown.textContent = remaining === seconds ? '开始 8 秒跳转' : '继续跳转 ' + remaining + ' 秒';
}
theme.addEventListener('click', () => {
const dark = document.documentElement.dataset.theme === 'dark';
document.documentElement.dataset.theme = dark ? 'light' : 'dark';
theme.setAttribute('aria-label', dark ? '切换到深色' : '切换到浅色');
});
routes.addEventListener('change', () => {
remaining = seconds;
pauseCountdown();
selectRoute();
});
countdown.addEventListener('click', () => {
if (timer !== undefined) {
pauseCountdown();
return;
}
countdown.textContent = '暂停跳转 ' + remaining + ' 秒';
timer = setInterval(() => {
remaining -= 1;
if (remaining === 0) {
clearInterval(timer);
timer = undefined;
location.assign(enter.href);
} else {
countdown.textContent = '暂停跳转 ' + remaining + ' 秒';
}
}, 1000);
});
selectRoute();
</script>
<script type="module">
import { copyText } from './clipboard.mjs';
const email = document.querySelector('.copy-email');
const feedback = document.querySelector('.copy-feedback');
let feedbackTimer;
email.addEventListener('click', async () => {
clearTimeout(feedbackTimer);
feedback.textContent = '';
try {
await copyText(email.textContent.trim());
feedback.textContent = '已复制';
feedbackTimer = setTimeout(() => { feedback.textContent = ''; }, 1600);
} catch {
feedback.textContent = '复制失败,请选中邮箱地址手动复制。';
}
});
</script>
</body>
</html>
+5
View File
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
<title>福云</title>
<!-- Original Cool theme logo, embedded unchanged for the local brand preview. -->
<image x="4" y="12.465116" width="56" height="39.069768" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAAA8CAYAAAD8OU3LAAAKsGlDQ1BJQ0MgcHJvZmlsZQAASImVlwdUk9kSgO//pzdaIAJSQg1dOgGkhNBCkV5thCRAIIQYCCqiorK4gmtBRQQsoKsiCq5KkcWGBduioNh1g4iKui4WbKi8P3AIu/vOe++8OWcyXyZz587c89+c+QGg6HElEhGsBkC2OE8aHeRHT0xKpuOGAAx0AAGQAJ7Ly5WwIiPDACKT9u/y4RaAFPaGrSLXv//+X0WdL8jlAQBFIpzKz+VlI3wM0Q88iTQPANRBxG+yME+i4OsIa0qRAhF+ouD0Cf6k4NRxRpPHY2Kj2QjTAcCTuVxpOgBkG8RPz+elI3nIih7sxXyhGOFChL2zs3P4CHcgbIHESBBW5Gem/iVP+t9ypipzcrnpSp7oZVzw/s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