Commit 74a37602 by liimin

测试增量更新

1 parent 1038c7ff
Pipeline #441 for 74a37602 failed in 0 seconds
{ {
"name": "@uj/web-shell", "name": "@uj/web-shell",
"version": "0.0.5", "version": "0.0.6",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
......
...@@ -2,26 +2,34 @@ ...@@ -2,26 +2,34 @@
* @Author: liimin 17653212@qq.com * @Author: liimin 17653212@qq.com
* @Date: 2026-11-13 10:00:00 * @Date: 2026-11-13 10:00:00
* @LastEditors: liimin 17653212@qq.com * @LastEditors: liimin 17653212@qq.com
* @LastEditTime: 2026-11-15 18:22:00 * @LastEditTime: 2026-11-15 19:03:00
* @FilePath: \uj-store\src\pages\Login\components\LoginCoverage.tsx * @FilePath: \uj-store\src\pages\Login\components\LoginCoverage.tsx
* @Description: 登录页左栏下半部分背景:门店覆盖网络「俯瞰指挥图」,纯装饰、无任何伪造数据。 * @Description: 登录页左栏下半部分背景:门店覆盖网络「俯瞰指挥图」,纯装饰、无任何伪造数据。
* 以「俯瞰 + 景深 + 发光网络」呈现冲击感: * 设计主张(震撼但不繁琐):不加元素,改做「极端的尺度层级」——
* - 透视格点成排向地平线收敛,以点的结构承载「俯瞰地面」; * - 唯一视觉主角:近景基站(5px 青绿实心核 / 25+44px 双层环 / 145px 呼吸辉光),
* - 仅 2 条极淡经线收向消失点(无纬线、无辉光、垂直渐隐),补上最轻的收敛骨架; * 与最小远景点 0.8px 形成 ~180× 尺度差;亮度整体压低,不与登录卡/文字争注意力;
* - 枢纽分层均匀铺开 + 按深度层组织的斜向贯通连线(已收紧到 4 条)+ 霓虹辉光(bloom); * - 无实心光轴:沿轴的 3 个点(第 4、第 5 链节点 + 基站)用虚线依次相连(2 段),
* - 一个核心枢纽(最近最大)带呼吸光晕,作为视觉焦点; * 末段沿段渐隐收口,断续接入主角而不穿过双环;
* - 景深:近点更大/更亮/近白核且清晰,远点更小/更淡/带散景虚化(bokeh); * - 2 道以基站为心的大尺度扫描弧(170 / 250px,两端渐隐),用半径制造张力而非堆元素;
* - 不画地平线光带;右侧聚焦光晕营造氛围;右深左淡、顶部渐隐融入墙面;右上留白楔形补星点。 * - 沿纵深铺开的 5 个逐级放大/提亮的链节点(1.1→5px / 0.2→0.95),把景深做成节奏;
* 实现:固定 600×510 viewBox,CSS 用 width:100%/height:auto 由浏览器按比例算高度, * - 其余全部退到背景并减量:普通点 46→~22、枢纽 13→9、星点 10→6、枢纽连线 4→2;
* 因此无论登录栏多宽多高都保持原始比例——不拉伸、不裁切、左右到边、贴底。 * 直线 6 条(2 经线 + 2 枢纽连线 + 2 段链节点虚线)另有 2 道大弧,颜色仅品牌蓝 + 唯一青绿脉冲;
* 右深左淡、近大远小、近亮远淡、极轻散景(1 / 0.5px)。
* - 不画纬线/网格、不画地平线光带;仅 2 条极淡经线收向消失点(B 方案)。
* - 青绿脉冲固定在基站中心:5px 实心核(无渐隐/柔光)+ 同径起步的扩散环,只扩到内环半径的一半
* 12.5px(CSS scale 2.5、non-scaling-stroke 保持细环),不越过 25px 内环;组件无状态、无 Math.random。
* - 全部动效尊重 prefers-reduced-motion。
* 实现:固定 600×510 viewBox + CSS width:100%/height:auto —— 不拉伸、不裁切、贴底到边。
*/ */
import { useState } from 'react';
const W = 600; const W = 600;
const H = 510; // 背景整体加高:屏幕高 264→306px,顶部明显高出文字区;透视纵深同步拉长 const H = 510;
const HORIZON = 60; // 远处地平线 y(远点在此收敛) const HORIZON = 60; // 远处地平线 y(远点在此收敛)
const NEAR = H - 20; // 近处地面 y(近点铺到底部) const NEAR = H - 20; // 近处地面 y(近点铺到底部)
const Z_FAR = 0.12; // 最远深度 const Z_FAR = 0.12; // 最远深度
const BASE = { x: W * 0.66, y: NEAR - 24 }; // 近景基站:唯一视觉主角,位置固定可控
const AXIS_TOP = { x: W / 2 - 26, y: HORIZON + 26 }; // 链节点的纵深起点(贴近消失点)
const CORE_R = 5; // 青绿实体核半径(缩小后更克制);脉冲扩散环同径起步,CSS 终值 12.5/5=2.5
// 固定种子伪随机:装饰用,保证分布一致(非真实门店数据) // 固定种子伪随机:装饰用,保证分布一致(非真实门店数据)
function makeRand(seed: number) { function makeRand(seed: number) {
...@@ -39,18 +47,18 @@ const clamp = (v: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, v ...@@ -39,18 +47,18 @@ const clamp = (v: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, v
// 世界坐标:z=深度(0远..1近),lx=横向(-1..1);band=所属深度层(仅枢纽有,供连线分组) // 世界坐标:z=深度(0远..1近),lx=横向(-1..1);band=所属深度层(仅枢纽有,供连线分组)
type WDot = { z: number; lx: number; hub: boolean; jx: number; jy: number; band?: number }; type WDot = { z: number; lx: number; hub: boolean; jx: number; jy: number; band?: number };
// 枢纽节点:按深度分 4 层、层内横向均匀铺开(相邻层错位 + 轻微抖动)。 // 枢纽节点:4 个深度层、共 9 个(3/2/2/2),层内横向均匀、相邻层错位。
// 取代纯随机——随机点在透视收敛下容易扎堆,会让几条连线叠在一小块;分层后骨架本身是散开的。 // 数量比上一版 13 个更少——环与光晕全部让给基站,避免满屏都是「小主角」。
const WHUBS: WDot[] = (() => { const WHUBS: WDot[] = (() => {
const out: WDot[] = []; const out: WDot[] = [];
const BANDS = [0.16, 0.4, 0.64, 0.88]; // 透视进度:远 → 近 const BANDS = [0.18, 0.42, 0.66, 0.88];
const PER_BAND = [3, 3, 4, 3]; const PER_BAND = [3, 2, 2, 2];
for (let b = 0; b < BANDS.length; b++) { for (let b = 0; b < BANDS.length; b++) {
const p = Math.pow(BANDS[b], 1 / 0.82); const p = Math.pow(BANDS[b], 1 / 0.82);
const z = Z_FAR + p * (1 - Z_FAR); const z = Z_FAR + p * (1 - Z_FAR);
const n = PER_BAND[b]; const n = PER_BAND[b];
for (let i = 0; i < n; i++) { for (let i = 0; i < n; i++) {
const t = (i + (b % 2) * 0.4 + (rand() - 0.5) * 0.25) / (n - 1 + 0.4); const t = (i + (b % 2) * 0.35 + (rand() - 0.5) * 0.25) / (n - 1 + 0.35);
out.push({ out.push({
z: clamp(z + (rand() - 0.5) * 0.08, Z_FAR, 1), z: clamp(z + (rand() - 0.5) * 0.08, Z_FAR, 1),
lx: clamp(lerp(-0.78, 0.78, t), -0.95, 0.95), lx: clamp(lerp(-0.78, 0.78, t), -0.95, 0.95),
...@@ -64,22 +72,21 @@ const WHUBS: WDot[] = (() => { ...@@ -64,22 +72,21 @@ const WHUBS: WDot[] = (() => {
return out; return out;
})(); })();
// 普通网点:沿透视格点散落(带轻微抖动),成排向远处地平线收敛—— // 普通网点:沿透视格点成排收敛,8 列 × 5 行 × 55% 保留 ≈ 22 个(上一版约 46 个)。
// 用「点的结构」承载俯视感,不画网格线。数量适中、远少于最初 82 个。 // 只做背景层,不承担视觉焦点。
const COLS = [-0.82, -0.6, -0.38, -0.16, 0.16, 0.38, 0.6, 0.82]; const COLS = [-0.82, -0.6, -0.38, -0.16, 0.16, 0.38, 0.6, 0.82];
// 从更远的 0.08 起排:最远行明显收窄,收敛比拉大;8 行 + 低保留率,总数仍约 46 个 const ROWS_PP = [0.12, 0.34, 0.55, 0.74, 0.9];
const ROWS_PP = [0.08, 0.22, 0.36, 0.5, 0.63, 0.75, 0.86, 0.94];
const WFIELD: WDot[] = []; const WFIELD: WDot[] = [];
for (const pp of ROWS_PP) { for (const pp of ROWS_PP) {
const p = Math.pow(pp, 1 / 0.82); // 透视进度 → 深度 const p = Math.pow(pp, 1 / 0.82);
const z = Z_FAR + p * (1 - Z_FAR); const z = Z_FAR + p * (1 - Z_FAR);
for (const cx of COLS) { for (const cx of COLS) {
if (rand() < 0.74) { if (rand() < 0.55) {
WFIELD.push({ WFIELD.push({
z, z,
lx: clamp(cx + (rand() - 0.5) * 0.045, -1, 1), lx: clamp(cx + (rand() - 0.5) * 0.045, -1, 1),
hub: false, hub: false,
jx: (rand() - 0.5) * 0.022, // 抖动收小,成排结构不被打散 jx: (rand() - 0.5) * 0.022,
jy: (rand() - 0.5) * 0.014, jy: (rand() - 0.5) * 0.014,
}); });
} }
...@@ -91,9 +98,9 @@ const WDOTS: WDot[] = [...WHUBS, ...WFIELD]; ...@@ -91,9 +98,9 @@ const WDOTS: WDot[] = [...WHUBS, ...WFIELD];
// 投影:世界坐标 → 屏幕坐标,含透视收敛 // 投影:世界坐标 → 屏幕坐标,含透视收敛
function project(d: WDot) { function project(d: WDot) {
const p = (d.z - Z_FAR) / (1 - Z_FAR); // 0 远 .. 1 近 const p = (d.z - Z_FAR) / (1 - Z_FAR); // 0 远 .. 1 近
const pp = Math.pow(p, 0.82); // 近处更向下铺开 const pp = Math.pow(p, 0.82);
const y = lerp(HORIZON, NEAR, pp) + d.jy * (NEAR - HORIZON); const y = lerp(HORIZON, NEAR, pp) + d.jy * (NEAR - HORIZON);
const halfSpread = lerp(34, 296, pp); // 远处横向收窄、近处铺开 const halfSpread = lerp(34, 296, pp);
const x = W / 2 + (d.lx + d.jx) * halfSpread; const x = W / 2 + (d.lx + d.jx) * halfSpread;
return { x, y, p }; return { x, y, p };
} }
...@@ -109,17 +116,14 @@ interface PNode { ...@@ -109,17 +116,14 @@ interface PNode {
} }
const NODES: PNode[] = WDOTS.map((d) => { const NODES: PNode[] = WDOTS.map((d) => {
const { x, y, p } = project(d); const { x, y, p } = project(d);
const r = lerp(0.8, 3.1, p) * (d.hub ? 1.45 : 1); const r = lerp(0.8, 3.1, p) * (d.hub ? 1.35 : 1);
const depthOp = lerp(0.16, 0.96, p); // 远处更淡 const depthOp = lerp(0.16, 0.9, p);
const xOp = 0.68 + (x / W) * 0.55; // 右深左淡,但左侧不再淡到看不见,保住扇形左缘 const xOp = 0.66 + (x / W) * 0.55; // 右深左淡,文字区压低保证可读
const op = clamp(depthOp * xOp + (d.hub ? 0.12 : 0), 0.08, 0.96); const op = clamp(depthOp * xOp + (d.hub ? 0.08 : 0), 0.08, 0.95);
return { x, y, p, r, op, hub: d.hub, band: d.band ?? -1 }; return { x, y, p, r, op, hub: d.hub, band: d.band ?? -1 };
}); });
// 连线:按深度层组织,但总量大幅收紧(反馈 9 条仍偏多 → 只留 4 条)。 // 枢纽连线:只留 2 条(层间一左一右),不成网、不抢主角。
// ① 相邻层之间每层只连 1 条,左右半区交替 —— 斜线朝消失点收拢,本身也是俯视线索;
// ② 只在最近层留 1 条层内短线,给网络一点横向咬合,其余层内不连;
// ③ 每个枢纽度数 ≤ 2、总边数封顶 4。
const HUBS = NODES.filter((n) => n.hub).sort((a, b) => a.y - b.y); const HUBS = NODES.filter((n) => n.hub).sort((a, b) => a.y - b.y);
const BAND_COUNT = 4; const BAND_COUNT = 4;
const MESH: { a: PNode; b: PNode; op: number }[] = (() => { const MESH: { a: PNode; b: PNode; op: number }[] = (() => {
...@@ -130,19 +134,8 @@ const MESH: { a: PNode; b: PNode; op: number }[] = (() => { ...@@ -130,19 +134,8 @@ const MESH: { a: PNode; b: PNode; op: number }[] = (() => {
for (const r of rows) r.sort((a, b) => a.x - b.x); for (const r of rows) r.sort((a, b) => a.x - b.x);
const out: { a: PNode; b: PNode; op: number }[] = []; const out: { a: PNode; b: PNode; op: number }[] = [];
const deg = new Map<PNode, number>(); const MAX_EDGES = 2;
const MAX_EDGES = 4; for (let b = 0; b < BAND_COUNT - 1 && out.length < MAX_EDGES; b++) {
const link = (a: PNode, b: PNode): boolean => {
if (out.length >= MAX_EDGES) return false;
if ((deg.get(a) ?? 0) >= 2 || (deg.get(b) ?? 0) >= 2) return false;
deg.set(a, (deg.get(a) ?? 0) + 1);
deg.set(b, (deg.get(b) ?? 0) + 1);
out.push({ a, b, op: clamp(0.2 + ((a.p + b.p) / 2) * 0.38, 0.18, 0.68) });
return true;
};
// ① 层间贯通:每层只挑 1 对,左右半区交替,避免线挤在同一侧
for (let b = 0; b < BAND_COUNT - 1; b++) {
const wantRight = b % 2 === 1; const wantRight = b % 2 === 1;
const pairs: { a: PNode; c: PNode; d: number }[] = []; const pairs: { a: PNode; c: PNode; d: number }[] = [];
for (const a of rows[b]) { for (const a of rows[b]) {
...@@ -153,21 +146,42 @@ const MESH: { a: PNode; b: PNode; op: number }[] = (() => { ...@@ -153,21 +146,42 @@ const MESH: { a: PNode; b: PNode; op: number }[] = (() => {
} }
} }
pairs.sort((x, y) => x.d - y.d); pairs.sort((x, y) => x.d - y.d);
if (pairs[0]) link(pairs[0].a, pairs[0].c); if (pairs[0]) {
out.push({
a: pairs[0].a,
b: pairs[0].c,
op: clamp(0.18 + ((pairs[0].a.p + pairs[0].c.p) / 2) * 0.3, 0.18, 0.55),
});
}
} }
// ② 最近层留 1 条层内短线
const near = rows[BAND_COUNT - 1];
if (near.length >= 2) link(near[near.length - 2], near[near.length - 1]);
return out; return out;
})(); })();
// 核心枢纽:取最近的枢纽作视觉焦点 // 链节点:沿纵深非线性铺开,半径 1.1→5px、透明度 0.2→0.95,
const CORE = HUBS.reduce((m, h) => (h.p > m.p ? h : m), HUBS[0]); // 与远景点形成可读的尺度节奏;末端不重复(那里是基站)。
const CHAIN = Array.from({ length: 5 }, (_, i) => {
const t = (i + 1) / 6;
const pp = Math.pow(t, 0.82);
return {
x: lerp(AXIS_TOP.x, BASE.x, pp),
y: lerp(AXIS_TOP.y, BASE.y, pp),
r: lerp(1.1, 5, pp),
op: lerp(0.2, 0.95, pp),
glow: pp > 0.55,
};
});
// 虚线窗口再往基站方向挪一个节点:沿轴序列是「5 个链节点 + 基站」,
// 因此 3 个端点 = 第 4、第 5 个链节点 + 基站,仍是 2 段虚线(取代原实心光轴)。
// 接入主角的那一段更淡,避免虚线线头插进圆盘抢戏。
const CHAIN_TAIL: { x: number; y: number }[] = [...CHAIN.slice(-2), { x: BASE.x, y: BASE.y }];
const CHAIN_DASH = CHAIN_TAIL.slice(1).map((c, i) => ({
a: CHAIN_TAIL[i],
b: c,
op: 0.42 - i * 0.1, // 0.42 / 0.32:越靠近主角越淡
}));
// B 方案:仅 2 条极淡经线,从近处地面左右两侧收向消失点,给俯视一条最轻的收敛骨架。 // B 方案:仅 2 条极淡经线,从近处地面左右两侧收向消失点(无纬线、无辉光、垂直渐隐)
// 只有经线、没有纬线、不加辉光;垂直渐隐让远处自然化掉,不形成硬线,也不回到「网格线」。
const MERIDIANS = [-0.72, 0.72].map((lx) => ({ const MERIDIANS = [-0.72, 0.72].map((lx) => ({
x1: W / 2 + lx * 296, x1: W / 2 + lx * 296,
y1: NEAR, y1: NEAR,
...@@ -175,44 +189,45 @@ const MERIDIANS = [-0.72, 0.72].map((lx) => ({ ...@@ -175,44 +189,45 @@ const MERIDIANS = [-0.72, 0.72].map((lx) => ({
y2: HORIZON - 10, y2: HORIZON - 10,
})); }));
// 右上留白楔形区的点缀星点:按纵向分层均匀铺开(不再纯随机扎堆), // 大尺度扫描弧:仅 2 条,以基站为心向远处上方展开,两端水平渐隐不出现硬切口。
// 只落在透视扇面右缘之外填补空三角;极淡、少数微闪 // 这是「主角的结构」,不是地面网格;用大半径制造画面张力,元素数不变。
const SCAN_ARCS = [170, 250].map((r, i) => {
const a0 = Math.PI * 1.08;
const a1 = Math.PI * 1.92;
return {
r,
op: i === 0 ? 0.9 : 0.55,
d: `M ${BASE.x + r * Math.cos(a0)} ${BASE.y + r * Math.sin(a0)} A ${r} ${r} 0 0 1 ${BASE.x + r * Math.cos(a1)} ${BASE.y + r * Math.sin(a1)}`,
};
});
// 右上留白楔形区的点缀星点:6 颗、纵向分层均匀、极淡、少数微闪
const STAR_TOP = HORIZON + 12; const STAR_TOP = HORIZON + 12;
const STAR_BOTTOM = NEAR - 70; const STAR_BOTTOM = NEAR - 70;
const STARS = Array.from({ length: 10 }, (_, k) => { const STARS = Array.from({ length: 6 }, (_, k) => {
const sy = lerp(STAR_TOP, STAR_BOTTOM, (k + 0.2 + srand() * 0.6) / 10); const sy = lerp(STAR_TOP, STAR_BOTTOM, (k + 0.2 + srand() * 0.6) / 6);
const pp = Math.pow(clamp((sy - HORIZON) / (NEAR - HORIZON), 0, 1), 1 / 0.82); const pp = Math.pow(clamp((sy - HORIZON) / (NEAR - HORIZON), 0, 1), 1 / 0.82);
const edge = W / 2 + lerp(34, 296, pp); const edge = W / 2 + lerp(34, 296, pp);
const x = clamp(edge + 8 + srand() * (W - edge - 22), edge + 4, W - 8); const x = clamp(edge + 8 + srand() * (W - edge - 22), edge + 4, W - 8);
const depthDim = lerp(0.5, 1, (sy - HORIZON) / (STAR_BOTTOM - HORIZON)); const depthDim = lerp(0.5, 1, (sy - HORIZON) / (STAR_BOTTOM - HORIZON));
const op = clamp((0.2 + (x / W) * 0.3) * depthDim, 0.16, 0.46); const op = clamp((0.18 + (x / W) * 0.26) * depthDim, 0.14, 0.4);
return { x, y: sy, r: 0.6 + srand() * 0.9, op, tw: srand() < 0.4 }; return { x, y: sy, r: 0.6 + srand() * 0.8, op, tw: srand() < 0.35 };
}); });
// 景深分层(远→近):越远模糊越强 // 景深分层(远→近):越远模糊越强
const LAYER_BLUR = ['url(#covBlurFar)', 'url(#covBlurMid)', undefined as string | undefined]; const LAYER_BLUR = ['url(#covBlurFar)', 'url(#covBlurMid)', undefined as string | undefined];
export function LoginCoverage() { export function LoginCoverage() {
// 脉冲点:随机位置,每次挂载重新随机(刷新/重进登录页都变);偏右侧、近-中景 const fillOf = (n: PNode) => (n.hub ? '#E4EDFF' : n.p > 0.6 ? '#C6D8FF' : '#9DBBFF');
const [pulse] = useState(() => {
const z = Z_FAR + (1 - Z_FAR) * (0.45 + Math.random() * 0.5);
const lx = 0.15 + Math.random() * 0.8;
const { x, y } = project({ z, lx, hub: false, jx: 0, jy: 0 });
return { x, y };
});
const fillOf = (n: PNode) =>
n.hub ? '#E4EDFF' : n.p > 0.6 ? '#C6D8FF' : '#9DBBFF';
const renderDot = (n: PNode, i: number) => { const renderDot = (n: PNode, i: number) => {
const layer = n.p < 0.4 ? 0 : n.p < 0.72 ? 1 : 2; const layer = n.p < 0.4 ? 0 : n.p < 0.72 ? 1 : 2;
const fill = fillOf(n);
if (n.hub) { if (n.hub) {
// 枢纽只留小辉光 + 亮核,不画环——环是主角的专属语言
return ( return (
<g key={i} filter={LAYER_BLUR[layer]}> <g key={i} filter={LAYER_BLUR[layer]}>
<circle cx={n.x} cy={n.y} r={n.r * 3} fill="url(#ujCovGlow)" /> <circle cx={n.x} cy={n.y} r={n.r * 2.6} fill="url(#ujCovGlow)" />
<circle cx={n.x} cy={n.y} r={n.r} fill={fill} fillOpacity={Math.min(0.98, n.op + 0.12)} /> <circle cx={n.x} cy={n.y} r={n.r} fill={fillOf(n)} fillOpacity={Math.min(0.98, n.op + 0.1)} />
<circle cx={n.x} cy={n.y} r={n.r + 2} fill="none" stroke="#5B8DEF" strokeOpacity={Math.min(0.7, n.op)} strokeWidth={0.8} />
</g> </g>
); );
} }
...@@ -222,7 +237,7 @@ export function LoginCoverage() { ...@@ -222,7 +237,7 @@ export function LoginCoverage() {
cx={n.x} cx={n.x}
cy={n.y} cy={n.y}
r={n.r} r={n.r}
fill={fill} fill={fillOf(n)}
fillOpacity={n.op} fillOpacity={n.op}
filter={LAYER_BLUR[layer]} filter={LAYER_BLUR[layer]}
/> />
...@@ -233,27 +248,48 @@ export function LoginCoverage() { ...@@ -233,27 +248,48 @@ export function LoginCoverage() {
<div className="uj-login-coverage" aria-hidden="true"> <div className="uj-login-coverage" aria-hidden="true">
<svg viewBox={`0 0 ${W} ${H}`} width="100%" height="auto" preserveAspectRatio="xMidYMax meet"> <svg viewBox={`0 0 ${W} ${H}`} width="100%" height="auto" preserveAspectRatio="xMidYMax meet">
<defs> <defs>
{/* 右侧聚焦光晕:品牌蓝向心渐隐,强化原小方格处的「更深」基调 */} {/* 大尺度聚焦光场:以基站为心,中心 0.45 → 边缘 0,制造整图的明暗骨架 */}
<radialGradient id="ujCovFocus" cx="50%" cy="50%" r="50%"> <radialGradient id="ujCovFocus" cx="50%" cy="50%" r="50%">
<stop offset="0%" stopColor="#3A6BF0" stopOpacity="0.4" /> <stop offset="0%" stopColor="#2F63E8" stopOpacity="0.55" />
<stop offset="100%" stopColor="#3A6BF0" stopOpacity="0" /> <stop offset="55%" stopColor="#2F63E8" stopOpacity="0.16" />
<stop offset="100%" stopColor="#2F63E8" stopOpacity="0" />
</radialGradient> </radialGradient>
{/* 枢纽 / 核心光晕 */} {/* 枢纽 / 基站中层辉光 */}
<radialGradient id="ujCovGlow" cx="50%" cy="50%" r="50%"> <radialGradient id="ujCovGlow" cx="50%" cy="50%" r="50%">
<stop offset="0%" stopColor="#5B8DEF" stopOpacity="0.7" /> <stop offset="0%" stopColor="#5B8DEF" stopOpacity="0.7" />
<stop offset="100%" stopColor="#5B8DEF" stopOpacity="0" /> <stop offset="100%" stopColor="#5B8DEF" stopOpacity="0" />
</radialGradient> </radialGradient>
{/* 核心枢纽大光晕 */} {/* 基站 145px 大辉光(呼吸):亮度已压低,只留体积感,不做亮斑 */}
<radialGradient id="ujCovCore" cx="50%" cy="50%" r="50%"> <radialGradient id="ujCovCore" cx="50%" cy="50%" r="50%">
<stop offset="0%" stopColor="#7FA8FF" stopOpacity="0.55" /> <stop offset="0%" stopColor="#8FB4FF" stopOpacity="0.42" />
<stop offset="100%" stopColor="#7FA8FF" stopOpacity="0" /> <stop offset="45%" stopColor="#5B8DEF" stopOpacity="0.16" />
<stop offset="100%" stopColor="#5B8DEF" stopOpacity="0" />
</radialGradient> </radialGradient>
{/* 近处地面受光:底部(近)微亮,强化俯瞰纵深 */} {/* 近处地面受光 */}
<linearGradient id="ujCovGround" x1="0" y1="0" x2="0" y2="1"> <linearGradient id="ujCovGround" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stopColor="#0A1430" stopOpacity="0" /> <stop offset="0%" stopColor="#0A1430" stopOpacity="0" />
<stop offset="100%" stopColor="#2A4A9E" stopOpacity="0.26" /> <stop offset="100%" stopColor="#2A4A9E" stopOpacity="0.22" />
</linearGradient> </linearGradient>
{/* 极淡经线的垂直渐隐:远处化掉、近处稍亮,避免形成一条硬线 */} {/* 扫描弧两端渐隐:中间 0.16、左右 0,避免大弧出现硬切口 */}
<linearGradient id="ujCovArc" x1="0" y1="0" x2="1" y2="0">
<stop offset="0%" stopColor="#8FB4FF" stopOpacity="0" />
<stop offset="50%" stopColor="#8FB4FF" stopOpacity="0.16" />
<stop offset="100%" stopColor="#8FB4FF" stopOpacity="0" />
</linearGradient>
{/* 接入主角的虚线段末端渐隐:线头化进基站辉光,不出现穿过双环的硬线头 */}
<linearGradient
id="ujCovDashFade"
gradientUnits="userSpaceOnUse"
x1={CHAIN[CHAIN.length - 1].x}
y1={CHAIN[CHAIN.length - 1].y}
x2={BASE.x}
y2={BASE.y}
>
<stop offset="0%" stopColor="#A9C6FF" stopOpacity="1" />
<stop offset="55%" stopColor="#A9C6FF" stopOpacity="0.55" />
<stop offset="100%" stopColor="#A9C6FF" stopOpacity="0" />
</linearGradient>
{/* 极淡经线的垂直渐隐:远处化掉,不形成硬线 */}
<linearGradient <linearGradient
id="ujCovMeridian" id="ujCovMeridian"
gradientUnits="userSpaceOnUse" gradientUnits="userSpaceOnUse"
...@@ -266,70 +302,100 @@ export function LoginCoverage() { ...@@ -266,70 +302,100 @@ export function LoginCoverage() {
<stop offset="55%" stopColor="#6FA0FF" stopOpacity="0.07" /> <stop offset="55%" stopColor="#6FA0FF" stopOpacity="0.07" />
<stop offset="100%" stopColor="#6FA0FF" stopOpacity="0.16" /> <stop offset="100%" stopColor="#6FA0FF" stopOpacity="0.16" />
</linearGradient> </linearGradient>
{/* 景深散景模糊:极轻,仅作纵深暗示,避免发糊 */} {/* 景深散景:极轻,主体不发糊 */}
<filter id="covBlurFar" x="-30%" y="-30%" width="160%" height="160%"> <filter id="covBlurFar" x="-30%" y="-30%" width="160%" height="160%">
<feGaussianBlur stdDeviation="1" /> <feGaussianBlur stdDeviation="1" />
</filter> </filter>
<filter id="covBlurMid" x="-30%" y="-30%" width="160%" height="160%"> <filter id="covBlurMid" x="-30%" y="-30%" width="160%" height="160%">
<feGaussianBlur stdDeviation="0.5" /> <feGaussianBlur stdDeviation="0.5" />
</filter> </filter>
{/* 网络霓虹辉光:连线/核心的 bloom(收敛模糊量,避免把细线糊掉) */}
<filter id="covBloom" x="-60%" y="-60%" width="220%" height="220%">
<feGaussianBlur stdDeviation="1.6" result="b" />
<feMerge>
<feMergeNode in="b" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
</defs> </defs>
{/* 近处地面受光(最底) */} {/* 明暗底层:地面受光 + 以基站为心的大光场 */}
<rect x={0} y={0} width={W} height={H} fill="url(#ujCovGround)" /> <rect x={0} y={0} width={W} height={H} fill="url(#ujCovGround)" />
{/* 右侧聚焦区 */} <ellipse cx={BASE.x} cy={BASE.y - 40} rx={340} ry={260} fill="url(#ujCovFocus)" />
<ellipse cx={W * 0.82} cy={H * 0.55} rx={W * 0.52} ry={H * 0.62} fill="url(#ujCovFocus)" />
{/* 仅 2 条极淡经线:收向消失点,给俯视最轻的一条骨架(无纬线、无辉光) */} {/* 2 道大尺度扫描弧:主角向外扩散的结构,两端渐隐 */}
<g fill="none" stroke="url(#ujCovArc)" strokeWidth={1}>
{SCAN_ARCS.map((a) => (
<path key={a.r} d={a.d} strokeOpacity={a.op} />
))}
</g>
{/* 2 条极淡经线:收向消失点(无纬线、无网格) */}
<g fill="none" stroke="url(#ujCovMeridian)" strokeWidth={0.8}> <g fill="none" stroke="url(#ujCovMeridian)" strokeWidth={0.8}>
{MERIDIANS.map((m, i) => ( {MERIDIANS.map((m, i) => (
<line key={i} x1={m.x1} y1={m.y1} x2={m.x2} y2={m.y2} /> <line key={i} x1={m.x1} y1={m.y1} x2={m.x2} y2={m.y2} />
))} ))}
</g> </g>
{/* 枢纽连线:已收紧到 4 条(提亮、虚线更连续,让稀疏的骨架能被读出) */} {/* 枢纽连线 2 条:退到背景,不抢主角 */}
<g fill="none" stroke="#8FB4FF" strokeWidth={1.1} strokeDasharray="3 3" filter="url(#covBloom)"> <g fill="none" stroke="#8FB4FF" strokeWidth={1} strokeDasharray="3 3" strokeOpacity={0.5}>
{MESH.map((s, i) => ( {MESH.map((s, i) => (
<line key={i} x1={s.a.x} y1={s.a.y} x2={s.b.x} y2={s.b.y} strokeOpacity={s.op} /> <line key={i} x1={s.a.x} y1={s.a.y} x2={s.b.x} y2={s.b.y} strokeOpacity={s.op} />
))} ))}
</g> </g>
{/* 网点:按景深分三层(远→近)渲染 */} {/* 背景点:近大远小、近亮远淡、极轻散景 */}
{NODES.map((n, i) => renderDot(n, i))} {NODES.map((n, i) => renderDot(n, i))}
{/* 核心枢纽:呼吸光晕 + 大光环,作为视觉焦点 */} {/* 沿轴 3 个点(第 4、第 5 链节点 + 基站)的虚线连接:2 段,接入主角处更淡 */}
<g fill="none" stroke="#A9C6FF" strokeWidth={1.1} strokeDasharray="4 5" strokeLinecap="round">
{CHAIN_DASH.map((s, i) => (
<line
key={`dash${i}`}
x1={s.a.x}
y1={s.a.y}
x2={s.b.x}
y2={s.b.y}
stroke={i === 1 ? 'url(#ujCovDashFade)' : undefined}
strokeOpacity={s.op}
/>
))}
</g>
{/* 链节点:逐级放大/提亮,把景深做成节奏 */}
{CHAIN.map((c, i) => (
<g key={`chain${i}`}>
{c.glow && <circle cx={c.x} cy={c.y} r={c.r * 3.2} fill="url(#ujCovGlow)" />}
<circle cx={c.x} cy={c.y} r={c.r} fill="#DCE8FF" fillOpacity={c.op} />
</g>
))}
{/* 唯一视觉主角:近景基站(尺度层级保留,亮度压低——不抢登录卡与文字) */}
<g> <g>
<circle className="uj-cov-core" cx={CORE.x} cy={CORE.y} r={CORE.r * 6} fill="url(#ujCovCore)" /> <circle className="uj-cov-core" cx={BASE.x} cy={BASE.y} r={145} fill="url(#ujCovCore)" />
<circle cx={CORE.x} cy={CORE.y} r={CORE.r * 4.2} fill="url(#ujCovGlow)" /> <circle cx={BASE.x} cy={BASE.y} r={62} fill="url(#ujCovGlow)" fillOpacity={0.45} />
<circle cx={CORE.x} cy={CORE.y} r={CORE.r * 1.2} fill="#EAF1FF" fillOpacity={0.98} /> <circle cx={BASE.x} cy={BASE.y} r={44} fill="none" stroke="#7FA8F5" strokeOpacity={0.32} strokeWidth={1.1} />
<circle cx={CORE.x} cy={CORE.y} r={CORE.r * 2.4} fill="none" stroke="#8FB4FF" strokeOpacity={0.8} strokeWidth={1} /> <circle cx={BASE.x} cy={BASE.y} r={25} fill="none" stroke="#A9C6FF" strokeOpacity={0.5} strokeWidth={1.2} />
{/* 青绿脉冲:扩散环(起点与实体核同径,只扩到内环半径的一半 12.5px)+ 实体核,位置固定在 BASE,不再随机 */}
<circle
className="uj-cov-pulse"
cx={BASE.x}
cy={BASE.y}
r={CORE_R}
fill="none"
stroke="#2DE2C4"
strokeWidth={1.2}
vectorEffect="non-scaling-stroke"
/>
{/* 实心圆点:缩小到 5px、纯色填充、无渐隐、无 drop-shadow,边缘清晰不发虚 */}
<circle cx={BASE.x} cy={BASE.y} r={CORE_R} fill="#1FE0C8" />
</g> </g>
{/* 右上空白楔形区的点缀星点:填补透视扇面右缘之外的留白,极淡、少数微闪 */} {/* 右上留白楔形区的 6 颗极淡星点 */}
{STARS.map((s, i) => ( {STARS.map((s, i) => (
<circle <circle
key={`star${i}`} key={`star${i}`}
cx={s.x} cx={s.x}
cy={s.y} cy={s.y}
r={s.r} r={s.r}
fill="#Bcd4FF" fill="#BCD4FF"
fillOpacity={s.op} fillOpacity={s.op}
className={s.tw ? 'uj-cov-star-tw' : undefined} className={s.tw ? 'uj-cov-star-tw' : undefined}
/> />
))} ))}
{/* 单个活跃节点:光晕扩散(雷达 ping),鲜艳青绿突出于淡蓝网点;始终清晰不受景深模糊 */}
<g>
<circle cx={pulse.x} cy={pulse.y} r={3.2} fill="#1FE0C8" style={{ filter: 'drop-shadow(0 0 6px #1FE0C8)' }} />
<circle className="uj-cov-pulse" cx={pulse.x} cy={pulse.y} r={3.4} fill="none" stroke="#2DE2C4" strokeWidth={1.2} style={{ animationDelay: '0s' }} />
</g>
</svg> </svg>
</div> </div>
); );
......
...@@ -127,17 +127,18 @@ ...@@ -127,17 +127,18 @@
/* width:100% + height:auto:高度由 viewBox 宽高比(600×510)决定,永远不拉伸、不裁切、左右到边 */ /* width:100% + height:auto:高度由 viewBox 宽高比(600×510)决定,永远不拉伸、不裁切、左右到边 */
shape-rendering: geometricPrecision; shape-rendering: geometricPrecision;
} }
/* 点阵中 1–2 个活跃节点的光晕扩散(雷达 ping),克制不抢戏;尊重 reduced-motion */ /* 基站核心的青绿脉冲扩散(雷达 ping):从实心核边缘(5px)只扩到内环半径的一半(12.5px);
环 r=5,故 scale 终值 2.5 = 12.5px,不越过 25px 内环;描边用 non-scaling-stroke 保持细环;尊重 reduced-motion */
@keyframes cov-ping { @keyframes cov-ping {
0% { 0% {
transform: scale(0.5); transform: scale(1);
opacity: 0.6; opacity: 0.6;
} }
70% { 70% {
opacity: 0.12; opacity: 0.2;
} }
100% { 100% {
transform: scale(3.4); transform: scale(2.5);
opacity: 0; opacity: 0;
} }
} }
...@@ -174,11 +175,11 @@ ...@@ -174,11 +175,11 @@
@keyframes cov-core { @keyframes cov-core {
0%, 0%,
100% { 100% {
opacity: 0.55; opacity: 0.42;
transform: scale(1); transform: scale(1);
} }
50% { 50% {
opacity: 0.95; opacity: 0.68;
transform: scale(1.12); transform: scale(1.12);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!