From bae289fedfdc80d5fffe6d790eef0ccb7d016426 Mon Sep 17 00:00:00 2001 From: tisachi Date: Tue, 20 Oct 2026 00:07:47 +0200 Subject: [PATCH] Web: rdzen ekosystemu jako diagram - przerywane wiazania z przeplywem + dryfujace kafelki uczestnikow --- web/src/sections/Ecosystem.tsx | 120 +++++++++++++++++++++++++++------ web/src/styles.css | 62 +++++++++++++++++ 2 files changed, 161 insertions(+), 21 deletions(-) diff --git a/web/src/sections/Ecosystem.tsx b/web/src/sections/Ecosystem.tsx index 2873bc6..72834fd 100644 --- a/web/src/sections/Ecosystem.tsx +++ b/web/src/sections/Ecosystem.tsx @@ -8,6 +8,7 @@ import { } from 'lucide-react'; import { Brandmark } from '../components/Brandmark'; import { Reveal } from '../components/Reveal'; +import { cn } from '../lib/utils'; import { Section, SectionHeading } from './shared'; import type { TrackId } from '../lib/tracks'; @@ -87,30 +88,103 @@ export function Ecosystem() { lead="FitOS nie jest aplikacją treningową z dodatkiem siłowni. To rdzeń, w którym potrzeby ćwiczących, trenerów i siłowni zazębiają się nawzajem — nikt nie jest tu użytkownikiem końcowym." /> -
- - {[PARTICIPANTS[1], PARTICIPANTS[2]].map((p, i) => ( - - ))} - + {/* Diagram rdzenia (lg+): przerywane wiązania z przepływem + kafelki dryfujące + niezależnie od animacji wejścia (dryf na wewnętrznym spanie) */} + + {/* Wiązania w % kontenera — końce dotykają krawędzi kafelków (w-[32%] h-[38%]) + niezależnie od szerokości (preserveAspectRatio="none" skaluje obie osie) */} + - -
+
+
+ +

FitOS

+

rdzeń

+
+
+ +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+

+ Ten sam rdzeń obsługuje też administrację: katalogi + treści, weryfikacje i pełny audyt w tle. +

+ + + {/* Telefon/tablet: rdzeń nad listą uczestników */} +
+ +
- -

FitOS

+ +

FitOS

rdzeń

- - - -

- Ten sam rdzeń obsługuje też administrację: katalogi - treści, weryfikacje i pełny audyt w tle. -

-
+ {PARTICIPANTS.map((p, i) => ( + + + + ))} +

+ Ten sam rdzeń obsługuje też administrację: katalogi + treści, weryfikacje i pełny audyt w tle. +

@@ -146,16 +220,20 @@ export function Ecosystem() { function ParticipantCard({ participant, align, + className, }: { participant: Participant; align: 'left' | 'right'; + className?: string; }) { const Icon = participant.icon; return (
diff --git a/web/src/styles.css b/web/src/styles.css index 2cb16bf..c13b3ae 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -146,6 +146,58 @@ animation: streak-ignite 260ms var(--ease-out-quart) backwards; } +/* Rdzeń ekosystemu — przepływ po przerywanych wiązaniach */ +@keyframes dash-flow { + to { + stroke-dashoffset: -16; + } +} + +.link-line { + stroke-dasharray: 4 4; + animation: dash-flow 1.4s linear infinite; +} + +/* Delikatne pływanie kafelków uczestników wokół rdzenia */ +@keyframes drift-1 { + from { + transform: translate3d(0, 0, 0) rotate(0deg); + } + to { + transform: translate3d(0, -9px, 0) rotate(-0.5deg); + } +} + +@keyframes drift-2 { + from { + transform: translate3d(0, 0, 0) rotate(0deg); + } + to { + transform: translate3d(7px, 6px, 0) rotate(0.5deg); + } +} + +@keyframes drift-3 { + from { + transform: translate3d(0, 0, 0) rotate(0deg); + } + to { + transform: translate3d(-7px, 8px, 0) rotate(-0.4deg); + } +} + +.drift-1 { + animation: drift-1 9s ease-in-out infinite alternate; +} + +.drift-2 { + animation: drift-2 11s ease-in-out infinite alternate; +} + +.drift-3 { + animation: drift-3 13s ease-in-out infinite alternate; +} + /* Wejścia sekcji na scroll (IntersectionObserver dodaje .revealed) */ .reveal { opacity: 0; @@ -255,6 +307,16 @@ animation: none; } + .link-line { + animation: none; + } + + .drift-1, + .drift-2, + .drift-3 { + animation: none; + } + .reveal { opacity: 1; transform: none;