// Schaubild „So funktioniert dein System" für die Anleitung.
// Zwei Teile: (1) Landkarte — wer redet mit wem, (2) Kreislauf — wie die Box
// von allein arbeitet und wo DEIN Klick sitzt. Reines Inline-SVG mit den
// Design-Tokens (hsl(var(--…))), damit es automatisch zum Theme passt.
const T = {
text: "hsl(var(--foreground))",
mut: "hsl(var(--muted-foreground))",
border: "hsl(var(--border))",
card: "hsl(var(--card) / 0.9)",
bg: "hsl(var(--background) / 0.4)",
primary: "hsl(var(--primary))",
teal: "#2dd4bf",
sky: "#38bdf8",
violet: "#a78bfa",
rose: "#fb7185",
amber: "#fbbf24",
emerald: "#34d399",
indigo: "#818cf8",
}
// Kleine Bausteine ------------------------------------------------------------
function NodeBox({ x, y, w, h, color, title, sub, sub2, strong }: {
x: number; y: number; w: number; h: number; color: string
title: string; sub?: string; sub2?: string; strong?: boolean
}) {
const cx = x + w / 2
return (
{title}
{sub && (
{sub}
)}
{sub2 && (
{sub2}
)}
)
}
function Arrow({ from, to, color = T.border, dash }: {
from: [number, number]; to: [number, number]; color?: string; dash?: boolean
}) {
const [x1, y1] = from, [x2, y2] = to
const mx = (x1 + x2) / 2
return (
)
}
// (1) Landkarte ---------------------------------------------------------------
function Landkarte() {
// Türen links, Box rechts — Pfeile: Du → Tür → Box; Box → PC-Executor (Lucy-Bau).
const tuer = [
{ y: 34, title: "Diese Oberfläche", sub: "Browser · Cockpit & Klick-Gates", color: T.teal },
{ y: 128, title: "Lucy", sub: "Stimme & Begleiterin am PC", color: T.rose },
{ y: 222, title: "Hermes Desktop", sub: "IDE für Projekte (PC + remote)", color: T.violet },
{ y: 316, title: "Telegram", sub: "unterwegs, gleiche Erinnerung", color: T.sky },
]
return (
)
}
// (2) Kreislauf ---------------------------------------------------------------
function Kreislauf() {
const stationen = [
{ x: 14, color: T.amber, title: "Idee", sub: "von dir oder vom", sub2: "Nacht-Radar" },
{ x: 158, color: T.violet, title: "Ideen-Queue", sub: "Kanban sammelt,", sub2: "Specifier plant" },
{ x: 302, color: T.rose, title: "IDE am PC", sub: "Agent baut den", sub2: "Branch (Gitea)" },
{ x: 446, color: T.sky, title: "Ampel", sub: "CI prüft Build", sub2: "und Tests" },
{ x: 590, color: T.primary, title: "DEIN Merge", sub: "nur du bringst", sub2: "es auf main", strong: true },
{ x: 734, color: T.emerald, title: "Live", sub: "deploy.sh,", sub2: "Zeitmaschine = Rückweg" },
]
return (
)
}
export function SystemSchaubild() {
return (
)
}