Commit 200c7e6c by liimin

修改登录设计背景

1 parent db5061f6
Pipeline #429 for 200c7e6c failed in 0 seconds
......@@ -8,6 +8,8 @@
* 作为 aside 下半部分的背景层(非小卡片):左淡(文字区可读)右深(原小方格处更聚焦),
* 以网点 + 枢纽连线 + 右侧聚焦光晕讲述「规模化门店网络」。
*/
import { useState } from 'react';
const W = 600;
const H = 400;
const PAD = 44;
......@@ -43,13 +45,15 @@ const SEGMENTS = HUBS.slice(1).map((h, i) => {
return { a, b: h, op: 0.1 + midT * 0.3 };
});
// 活跃节点:1–2 个,落在更深的右侧区域,做光晕扩散(CSS 动画,尊重 reduced-motion)
const PULSES = [
{ x: 452, y: 232, delay: 0 },
{ x: 392, y: 312, delay: -1.7 },
];
// 单个活跃节点:位置在组件每次挂载时随机生成(见 LoginCoverage 内 useState),刷新/重进登录页都会重新随机
export function LoginCoverage() {
// 单个活跃节点:每次挂载随机生成位置(偏右侧较深区),刷新/重进登录页都会重新随机
const [pulse] = useState(() => ({
x: PAD + (W - PAD * 2) * (0.5 + Math.random() * 0.42),
y: PAD + Math.random() * (H - PAD * 2),
delay: 0,
}));
return (
<div className="uj-login-coverage" aria-hidden="true">
<svg viewBox={`0 0 ${W} ${H}`} width="100%" height="100%" preserveAspectRatio="xMidYMax meet">
......@@ -89,22 +93,26 @@ export function LoginCoverage() {
),
)}
{/* 1–2 个活跃节点:光晕扩散(雷达 ping),落在更深的右侧区域 */}
{PULSES.map((p, i) => (
<g key={`p${i}`}>
<circle cx={p.x} cy={p.y} r={2.4} fill="#CFDDFF" />
<circle
className="uj-cov-pulse"
cx={p.x}
cy={p.y}
r={3}
fill="none"
stroke="#7FA8F5"
strokeWidth={1}
style={{ animationDelay: `${p.delay}s` }}
/>
</g>
))}
{/* 单个活跃节点:光晕扩散(雷达 ping),鲜艳青绿突出于淡蓝网点 */}
<g>
<circle
cx={pulse.x}
cy={pulse.y}
r={2.8}
fill="#1FE0C8"
style={{ filter: 'drop-shadow(0 0 4px #1FE0C8)' }}
/>
<circle
className="uj-cov-pulse"
cx={pulse.x}
cy={pulse.y}
r={3}
fill="none"
stroke="#2DE2C4"
strokeWidth={1}
style={{ animationDelay: `${pulse.delay}s` }}
/>
</g>
</svg>
</div>
);
......
......@@ -114,7 +114,7 @@
position: absolute;
left: 0;
right: 0;
bottom: 18px;
bottom: 0;
height: 52%;
z-index: 0;
pointer-events: none;
......
......@@ -207,10 +207,15 @@ release:diff —— 版本号驱动增量发版(package.json version > 线上
/** 是否真的拿到了目标环境的线上清单;只有 true 才允许做「落地探测」。 */
let remoteOk = false;
if (remoteManifest) {
// diff 阶段还没算出「本次要发哪些 app」(版本比较在下面),这里拉线上清单只做基线,
// 必须全部采纳远端条目。若传 keepLocal=全部微应用名,remote-manifest.mjs:72 会把四个
// app 逐一 skip,state.subapps 保持空 —— 只发主壳时 release-spec.mjs:470 就拼不出完整
// 的产物清单,上传前校验会以「产物清单缺少子系统条目」中止(清单整份覆盖会让它们白屏)。
// 本次真正要发的 app 由 release.mjs 的 --keep-local 保护,不依赖这份基线缓存。
const merged = await mergeRemoteManifest({
stateFile,
url: remoteManifest,
keepLocal: microAppNames,
keepLocal: [],
info,
});
if (merged.ok) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!