77 lines
3.0 KiB
TypeScript
77 lines
3.0 KiB
TypeScript
import { useRef } from 'react';
|
|
import { Reveal } from '../components/Reveal';
|
|
import { useParallax } from '../lib/useParallax';
|
|
|
|
const LINES_A = [
|
|
'$ fitos --run',
|
|
'rdzeń: Express + Prisma + PostgreSQL',
|
|
'plan → dzień → sesja → seria',
|
|
'killstreak: tylko kompletne treningi',
|
|
];
|
|
|
|
const LINES_B = [
|
|
'perspektywy: ćwiczący · trener · właściciel · admin',
|
|
'ekosystem: wspólne dane, różne cele',
|
|
'dane: self-hosted, zero chmury',
|
|
'$ ./sciezka --twoja',
|
|
];
|
|
|
|
/**
|
|
* „Man” — czarna wstęga między hero a ekosystemem: o czym jest FitOS,
|
|
* z dwuwarstwową paralaksą zapisów terminala w tle.
|
|
*/
|
|
export function Manifest() {
|
|
const rootRef = useRef<HTMLDivElement>(null);
|
|
useParallax(rootRef);
|
|
|
|
return (
|
|
<div ref={rootRef} className="relative overflow-hidden border-y border-line bg-terminal">
|
|
<div
|
|
aria-hidden="true"
|
|
className="pointer-events-none absolute inset-x-0 -top-10 left-[4%] flex flex-col gap-1 font-mono text-[13px] leading-7 whitespace-nowrap text-dim/10 select-none"
|
|
data-parallax="0.28"
|
|
>
|
|
{[...LINES_A, ...LINES_A].map((l, i) => (
|
|
<span key={i}>{l}</span>
|
|
))}
|
|
</div>
|
|
<div
|
|
aria-hidden="true"
|
|
className="pointer-events-none absolute inset-x-0 -bottom-10 right-[4%] flex flex-col items-end gap-1 font-mono text-[13px] leading-7 whitespace-nowrap text-dim/10 select-none"
|
|
data-parallax="-0.18"
|
|
>
|
|
{[...LINES_B, ...LINES_B].map((l, i) => (
|
|
<span key={i}>{l}</span>
|
|
))}
|
|
</div>
|
|
<div
|
|
aria-hidden="true"
|
|
className="pointer-events-none absolute -inset-x-16 -top-24 -bottom-24 bg-(image:--ambient-wide)"
|
|
data-parallax="0.06"
|
|
/>
|
|
|
|
<div className="relative mx-auto w-full max-w-3xl px-5 py-20 text-center sm:py-24">
|
|
<Reveal>
|
|
<p className="font-mono text-xs tracking-widest text-accent">$ man FitOS</p>
|
|
<p className="mt-5 text-2xl leading-snug font-bold text-ink sm:text-[2rem]">
|
|
Plan. Seria. Ciężar. Pomiar.{' '}
|
|
<span className="text-accent">Wszystko w jednym systemie.</span>
|
|
</p>
|
|
<p className="mx-auto mt-5 max-w-xl text-[14.5px] leading-relaxed text-dim">
|
|
FitOS zastępuje chaos kilkunastu aplikacji jedną, bezpieczną platformą self-hosted,
|
|
instalowaną bezpośrednio w Twojej infrastrukturze.
|
|
</p>
|
|
<p className="mx-auto mt-3 max-w-xl text-[14.5px] leading-relaxed text-dim">
|
|
Połączyliśmy ćwiczących, trenerów i właścicieli siłowni we wspólnym ekosystemie danych.
|
|
Bez pośredników, bez wycieku prywatności, na tych samych planach i pomiarach.
|
|
</p>
|
|
<p className="mt-6 font-mono text-[12.5px] text-dim">
|
|
<span className="text-accent">$</span> Poznaj FitOS: sprawdź architekturę ekosystemu,
|
|
słownik pojęć i dedykowane ścieżki użytkowników.
|
|
</p>
|
|
</Reveal>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|