Web: Administrator jako czwarty uczestnik rdzenia ekosystemu (diagram i lista mobilna)

This commit is contained in:
tisachi
2026-10-20 01:46:54 +02:00
parent 2acb856c37
commit 2c28c6676f
2 changed files with 33 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import { useEffect, useRef, useState } from 'react';
import { Building2, Dumbbell, UserRound, type LucideIcon } from 'lucide-react';
import { Building2, Dumbbell, Shield, UserRound, type LucideIcon } from 'lucide-react';
import { Brandmark } from '../components/Brandmark';
import { Reveal } from '../components/Reveal';
import { cn } from '../lib/utils';
@@ -13,7 +13,7 @@ interface Participant {
link: string;
}
// Trzy strony zazębiające się w rdzeniu — FitOS nie ma „użytkowników końcowych”,
// Cztery strony rdzenia — FitOS nie ma „użytkowników końcowych”,
// każdy uczestnik jednocześnie wnosi wartość i ją pobiera.
export const PARTICIPANTS: Participant[] = [
{
@@ -37,6 +37,13 @@ export const PARTICIPANTS: Participant[] = [
gets: 'ludzi, którzy przychodzą po plan, i głos w swoim feedzie',
link: 'dostarcza sprzęt i ogłasza się ludziom, którzy jej potrzebują',
},
{
icon: Shield,
role: 'Administrator',
brings: 'porządek: weryfikacje, słowniki treści i pełny audyt czynności',
gets: 'ekosystem, który działa sam — bez domyślnego zaufania i śmieciowych danych',
link: 'zatwierdza profile i role — bez tego żadna siłownia nie staje się REAL',
},
];
interface Wire {
@@ -58,6 +65,7 @@ function HubDiagram() {
const trenerRef = useRef<HTMLDivElement>(null);
const silowniaRef = useRef<HTMLDivElement>(null);
const cwiczacyRef = useRef<HTMLDivElement>(null);
const adminRef = useRef<HTMLDivElement>(null);
const [wires, setWires] = useState<Wire[]>([]);
useEffect(() => {
@@ -68,6 +76,7 @@ function HubDiagram() {
{ el: trenerRef.current, side: 'left' as const, delay: '0s' },
{ el: silowniaRef.current, side: 'left' as const, delay: '-0.5s' },
{ el: cwiczacyRef.current, side: 'right' as const, delay: '-0.9s' },
{ el: adminRef.current, side: 'right' as const, delay: '-1.3s' },
];
const compute = () => {
@@ -110,7 +119,7 @@ function HubDiagram() {
return (
<Reveal className="hidden lg:block">
<div ref={containerRef} className="relative mt-14 h-[600px]">
<div ref={containerRef} className="relative mt-14 h-[680px]">
<svg
aria-hidden="true"
viewBox="0 0 100 100"
@@ -152,11 +161,16 @@ function HubDiagram() {
<ParticipantCard participant={PARTICIPANTS[2]} />
</div>
</div>
<div ref={cwiczacyRef} className="absolute right-0 top-1/2 z-10 w-[32%] -translate-y-1/2">
<div ref={cwiczacyRef} className="absolute right-0 top-0 z-10 w-[32%]">
<div className="drift-3">
<ParticipantCard participant={PARTICIPANTS[0]} />
</div>
</div>
<div ref={adminRef} className="absolute bottom-0 right-0 z-10 w-[32%]">
<div className="drift-4">
<ParticipantCard participant={PARTICIPANTS[3]} />
</div>
</div>
</div>
</Reveal>
);

View File

@@ -193,6 +193,15 @@
}
}
@keyframes drift-4 {
from {
transform: translate3d(0, 0, 0) rotate(0deg);
}
to {
transform: translate3d(6px, -8px, 0) rotate(0.4deg);
}
}
.drift-1 {
animation: drift-1 9s ease-in-out infinite alternate;
}
@@ -205,6 +214,10 @@
animation: drift-3 13s ease-in-out infinite alternate;
}
.drift-4 {
animation: drift-4 10s ease-in-out infinite alternate;
}
/* Wejścia sekcji na scroll (IntersectionObserver dodaje .revealed) */
.reveal {
opacity: 0;
@@ -320,7 +333,8 @@
.drift-1,
.drift-2,
.drift-3 {
.drift-3,
.drift-4 {
animation: none;
}