diff --git a/web/src/sections/Ecosystem.tsx b/web/src/sections/Ecosystem.tsx index c5e2505..7e60563 100644 --- a/web/src/sections/Ecosystem.tsx +++ b/web/src/sections/Ecosystem.tsx @@ -57,6 +57,8 @@ interface Wire { const HUB_RADIUS = 78; const SPREAD_PX = 52; +// impulsy promieniowania: cykl animacji zdefiniowany w CSS (.ray-flow) +const RAY_DELAYS = ['0s', '-1.6s']; /** * Diagram rdzenia (lg+): kafelki uczestników z naturalną wysokością (nic się nie @@ -102,7 +104,7 @@ function HubDiagram() { x2: (((t.side === 'left' ? r.right : r.left) - cr.left) / cr.width) * 100, y2: (midY / cr.height) * 100, // połowa podstawy trójkąta jako % wysokości kontenera - spread: SPREAD_PX / cr.height, + spread: (SPREAD_PX / cr.height) * 100, id: t.id, }); } @@ -145,18 +147,45 @@ function HubDiagram() { x2={w.x2} y2={w.y2} > - - + + ))} + + + + + + + - {wires.map((w) => ( - - ))} + + {wires.map((w) => ( + + + {RAY_DELAYS.map((d) => ( + + ))} + + ))} +
diff --git a/web/src/styles.css b/web/src/styles.css index addc393..6897acf 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -154,6 +154,21 @@ animation: streak-ignite 260ms var(--ease-out-quart) backwards; } +/* Rdzeń ekosystemu — impulsy promieniowania lecące od rdzenia do kafelków */ +@keyframes ray-flow { + from { + stroke-dashoffset: 12; + } + to { + stroke-dashoffset: -100; + } +} + +.ray-flow { + stroke-dasharray: 12 88; + animation: ray-flow 3.2s linear infinite; +} + /* Wejścia sekcji na scroll (IntersectionObserver dodaje .revealed) */ .reveal { opacity: 0; @@ -264,6 +279,12 @@ animation: none; } + .ray-flow { + animation: none; + stroke-dasharray: 10 90; + stroke-dashoffset: -30; + } + .reveal { opacity: 1; transform: none;