Web: kafelki uczestnikow w tabeli wnosi/bierze/wiaze (lewy stulp etykiet), usuneta notka o administracji, wiekszy diagram
This commit is contained in:
@@ -90,8 +90,8 @@ export function Ecosystem() {
|
||||
|
||||
{/* Diagram rdzenia (lg+): przerywane wiązania z przepływem + kafelki dryfujące
|
||||
niezależnie od animacji wejścia (dryf na wewnętrznym spanie) */}
|
||||
<Reveal className="relative mt-14 hidden h-[540px] lg:block">
|
||||
{/* Wiązania w % kontenera — końce dotykają krawędzi kafelków (w-[32%] h-[38%])
|
||||
<Reveal className="relative mt-14 hidden h-[640px] lg:block">
|
||||
{/* Wiązania w % kontenera — końce dotykają krawędzi kafelków (w-[32%] h-[42%])
|
||||
niezależnie od szerokości (preserveAspectRatio="none" skaluje obie osie) */}
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
@@ -101,10 +101,10 @@ export function Ecosystem() {
|
||||
>
|
||||
<line
|
||||
className="link-line"
|
||||
x1="45"
|
||||
y1="44"
|
||||
x1="45.5"
|
||||
y1="40"
|
||||
x2="32"
|
||||
y2="19"
|
||||
y2="25"
|
||||
vectorEffect="non-scaling-stroke"
|
||||
stroke="var(--accent)"
|
||||
strokeOpacity="0.45"
|
||||
@@ -114,9 +114,9 @@ export function Ecosystem() {
|
||||
className="link-line"
|
||||
style={{ animationDelay: '-0.5s' }}
|
||||
x1="45"
|
||||
y1="56"
|
||||
y1="62"
|
||||
x2="32"
|
||||
y2="81"
|
||||
y2="75"
|
||||
vectorEffect="non-scaling-stroke"
|
||||
stroke="var(--accent)"
|
||||
strokeOpacity="0.45"
|
||||
@@ -125,10 +125,10 @@ export function Ecosystem() {
|
||||
<line
|
||||
className="link-line"
|
||||
style={{ animationDelay: '-0.9s' }}
|
||||
x1="55"
|
||||
y1="45"
|
||||
x1="54.5"
|
||||
y1="50"
|
||||
x2="68"
|
||||
y2="22"
|
||||
y2="50"
|
||||
vectorEffect="non-scaling-stroke"
|
||||
stroke="var(--accent)"
|
||||
strokeOpacity="0.45"
|
||||
@@ -144,25 +144,21 @@ export function Ecosystem() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="absolute left-0 top-[3%] z-10 h-[38%] w-[32%]">
|
||||
<div className="absolute left-0 top-[2%] z-10 h-[42%] w-[32%]">
|
||||
<div className="drift-1 h-full">
|
||||
<ParticipantCard participant={PARTICIPANTS[1]} align="right" className="h-full" />
|
||||
<ParticipantCard participant={PARTICIPANTS[1]} className="h-full" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="absolute bottom-[3%] left-0 z-10 h-[38%] w-[32%]">
|
||||
<div className="absolute bottom-[2%] left-0 z-10 h-[42%] w-[32%]">
|
||||
<div className="drift-2 h-full">
|
||||
<ParticipantCard participant={PARTICIPANTS[2]} align="left" className="h-full" />
|
||||
<ParticipantCard participant={PARTICIPANTS[2]} className="h-full" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="absolute right-0 top-[4%] z-10 h-[38%] w-[32%]">
|
||||
<div className="absolute right-0 top-[29%] z-10 h-[42%] w-[32%]">
|
||||
<div className="drift-3 h-full">
|
||||
<ParticipantCard participant={PARTICIPANTS[0]} align="left" className="h-full" />
|
||||
<ParticipantCard participant={PARTICIPANTS[0]} className="h-full" />
|
||||
</div>
|
||||
</div>
|
||||
<p className="absolute bottom-[10%] right-2 w-[31%] text-[12.5px] leading-relaxed text-dim">
|
||||
Ten sam rdzeń obsługuje też <span className="text-ink">administrację</span>: katalogi
|
||||
treści, weryfikacje i pełny audyt w tle.
|
||||
</p>
|
||||
</Reveal>
|
||||
|
||||
{/* Telefon/tablet: rdzeń nad listą uczestników */}
|
||||
@@ -178,13 +174,9 @@ export function Ecosystem() {
|
||||
</Reveal>
|
||||
{PARTICIPANTS.map((p, i) => (
|
||||
<Reveal key={p.role} delayMs={i * 60}>
|
||||
<ParticipantCard participant={p} align="left" />
|
||||
<ParticipantCard participant={p} />
|
||||
</Reveal>
|
||||
))}
|
||||
<p className="text-center text-[12.5px] leading-relaxed text-dim">
|
||||
Ten sam rdzeń obsługuje też <span className="text-ink">administrację</span>: katalogi
|
||||
treści, weryfikacje i pełny audyt w tle.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-12 grid gap-4 md:grid-cols-3" id="zazebienia">
|
||||
@@ -219,41 +211,50 @@ export function Ecosystem() {
|
||||
|
||||
function ParticipantCard({
|
||||
participant,
|
||||
align,
|
||||
className,
|
||||
}: {
|
||||
participant: Participant;
|
||||
align: 'left' | 'right';
|
||||
className?: string;
|
||||
}) {
|
||||
const Icon = participant.icon;
|
||||
const rows = [
|
||||
{ key: 'wnosi', text: participant.brings, accent: true },
|
||||
{ key: 'bierze', text: participant.gets, accent: false },
|
||||
{ key: 'wiąże', text: participant.link, accent: true, last: true },
|
||||
];
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'window-glow rounded-lg border border-line bg-(image:--card-grad) p-4 shadow-card',
|
||||
align === 'right' ? 'text-right' : 'text-left',
|
||||
'window-glow rounded-lg border border-line bg-(image:--card-grad) p-5 shadow-card',
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className={`flex items-center gap-2 ${align === 'right' ? 'flex-row-reverse' : ''}`}>
|
||||
<div className="flex items-center gap-2.5">
|
||||
<span className="grid size-8 place-items-center rounded-md border border-line bg-input text-accent">
|
||||
<Icon size={15} aria-hidden="true" />
|
||||
</span>
|
||||
<span className="font-display text-[15px] font-bold text-ink">{participant.role}</span>
|
||||
</div>
|
||||
<dl className="mt-3 space-y-1.5 text-[12.5px] leading-relaxed">
|
||||
<div>
|
||||
<dt className="font-mono text-[10px] uppercase tracking-wide text-accent">wnosi</dt>
|
||||
<dd className="text-dim">{participant.brings}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt className="font-mono text-[10px] uppercase tracking-wide text-dim">bierze</dt>
|
||||
<dd className="text-ink">{participant.gets}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt className="font-mono text-[10px] uppercase tracking-wide text-accent">wiazze sie</dt>
|
||||
<dd className="text-dim">{participant.link}</dd>
|
||||
</div>
|
||||
<dl className="mt-4 border-t border-line pt-3.5 text-[13px] leading-relaxed">
|
||||
{rows.map((row) => (
|
||||
<div
|
||||
key={row.key}
|
||||
className={cn(
|
||||
'grid grid-cols-[4.5rem_1fr] items-baseline gap-x-3 pt-2.5',
|
||||
!row.last && 'pb-2.5',
|
||||
)}
|
||||
>
|
||||
<dt
|
||||
className={cn(
|
||||
'font-mono text-[10px] uppercase tracking-[0.14em]',
|
||||
row.accent ? 'text-accent' : 'text-dim',
|
||||
)}
|
||||
>
|
||||
{row.key}
|
||||
</dt>
|
||||
<dd className={row.accent ? 'text-dim' : 'text-ink'}>{row.text}</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user