feat: rebuild the orbital vault as an operational map

This commit is contained in:
2026-11-09 22:01:14 +07:00
parent 2129e80c38
commit fba4a1e628
25 changed files with 1342 additions and 1333 deletions

View File

@@ -0,0 +1,73 @@
import { memo, useId } from "react";
const streams = [
{ rx: 122, ry: 19, y: 10, width: 0.7, opacity: 0.30 },
{ rx: 116, ry: 19, y: 11, width: 1.1, opacity: 0.52 },
{ rx: 106, ry: 17, y: 12, width: 2.4, opacity: 0.72 },
{ rx: 92, ry: 15, y: 13, width: 3.6, opacity: 1 },
{ rx: 79, ry: 14, y: 14, width: 2.3, opacity: 0.9 },
{ rx: 66, ry: 12, y: 15, width: 0.9, opacity: 0.75 },
];
export const VaultCore = memo(function VaultCore() {
const id = useId();
const paint = (name: string) => `url(#${id}-${name})`;
return (
<g data-vault-core pointerEvents="none">
<defs>
<radialGradient id={`${id}-halo`}>
<stop stopColor="#e78347" stopOpacity=".2" />
<stop offset=".42" stopColor="#ac572e" stopOpacity=".17" />
<stop offset="1" stopColor="#7a3925" stopOpacity="0" />
</radialGradient>
<linearGradient id={`${id}-disk`}>
<stop stopColor="#923b1d" stopOpacity="0" />
<stop offset=".18" stopColor="#bc5f34" stopOpacity=".62" />
<stop offset=".42" stopColor="#d47c4a" />
<stop offset=".65" stopColor="#ffe6bb" />
<stop offset=".82" stopColor="#ffc38a" />
<stop offset="1" stopColor="#8b4328" stopOpacity="0" />
</linearGradient>
<linearGradient id={`${id}-lens`} x1="5%" y1="100%" x2="82%" y2="0%">
<stop stopColor="#b6532d" stopOpacity=".26" />
<stop offset=".46" stopColor="#d1885c" stopOpacity=".86" />
<stop offset=".72" stopColor="#ffe2b3" />
<stop offset="1" stopColor="#e49767" stopOpacity=".25" />
</linearGradient>
<filter id={`${id}-bloom`} x="-30%" y="-65%" width="160%" height="230%">
<feGaussianBlur stdDeviation="4.5" />
</filter>
<filter id={`${id}-soft`} x="-22%" y="-70%" width="144%" height="240%">
<feGaussianBlur stdDeviation="1.25" />
</filter>
</defs>
<ellipse rx="162" ry="81" cy="6" fill={paint("halo")} />
<g transform="rotate(-11)">
<path
d="M-115 12 C-68 9 -67 -66 -9 -68 C52 -71 61 -10 111 6 M-114 13 C-62 38 -28 53 13 51 C54 48 89 27 111 6"
fill="none" stroke={paint("lens")} strokeWidth="11" opacity=".42" filter={paint("bloom")}
/>
<path
d="M-115 12 C-68 9 -67 -66 -9 -68 C52 -71 61 -10 111 6"
fill="none" stroke={paint("lens")} strokeWidth="3.4" filter={paint("soft")}
/>
<path
d="M-103 12 C-59 5 -61 -61 -8 -63 C42 -66 55 -12 99 7"
fill="none" stroke={paint("lens")} strokeWidth="1.2" opacity=".8"
/>
<ellipse cy="12" rx="115" ry="17" fill="none" stroke={paint("disk")} strokeWidth="6" opacity=".35" />
<circle r="49" fill="#030405" />
<circle r="49.6" fill="none" stroke={paint("lens")} strokeWidth="1.15" opacity=".78" />
<path d="M-92 17 C-60 39 43 48 106 14" fill="none" stroke={paint("disk")} strokeWidth="14" opacity=".5" filter={paint("bloom")} />
{streams.map(({ rx, ry, y, width, opacity }) => (
<path
key={rx}
d={`M${-rx} ${y} A${rx} ${ry} 0 0 0 ${rx} ${y}`}
fill="none" stroke={paint("disk")} strokeWidth={width} opacity={opacity}
/>
))}
<path d="M-76 20 C-39 34 32 39 82 21" fill="none" stroke={paint("disk")} strokeWidth=".85" opacity=".7" />
</g>
</g>
);
});