Files
FitOS/web/src/sections/SiteHeader.tsx

43 lines
1.6 KiB
TypeScript

import { Brandmark } from '../components/Brandmark';
import { appUrl } from '../lib/links';
const ANCHORS = [
{ href: '#ekosystem', label: 'Ekosystem' },
{ href: '#slownik', label: 'Słownik' },
{ href: '#sciezki', label: 'Ścieżki' },
];
/** Pasek „systemowy” — sticky, jak topbar apki: znak, wersja, kotwice, CTA. */
export function SiteHeader() {
return (
<header className="sticky top-0 z-50 border-b border-line bg-bg/85 backdrop-blur-md">
<div className="mx-auto flex h-14 w-full max-w-6xl items-center gap-3 px-5">
<a href="#gora" className="flex items-center gap-2.5 text-ink">
<Brandmark size={26} />
<span className="font-display text-[15px] font-bold tracking-tight">FitOS</span>
<span className="rounded-full border border-line bg-input px-2 py-0.5 font-mono text-[10px] text-dim">
v1 · MVP
</span>
</a>
<nav aria-label="Sekcje strony" className="ml-auto hidden items-center gap-5 sm:flex">
{ANCHORS.map((a) => (
<a
key={a.href}
href={a.href}
className="text-[13px] font-medium text-dim transition-colors hover:text-ink"
>
{a.label}
</a>
))}
</nav>
<a
href={appUrl()}
className="ml-auto inline-flex items-center gap-1 rounded-md border-0 bg-(image:--btn-grad) px-3.5 py-1.5 text-[13px] font-bold text-accent-ink shadow-(--btn-shadow) transition-transform hover:-translate-y-px sm:ml-0"
>
Uruchom <span aria-hidden="true">▸</span>
</a>
</div>
</header>
);
}