Erstes lauffähiges Grundgerüst: Monorepo, Fastify-API, React-Startseite, Docker

This commit is contained in:
2026-07-19 01:14:29 +02:00
parent 657496fe49
commit 7b8723729b
39 changed files with 4388 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
export interface StatusBadgeProps {
online: boolean;
label?: string;
}
/**
* Kleiner Statuspunkt (online/offline), z. B. für den Backend-Health-Check
* oder später für einzelne Dienste.
*/
export function StatusBadge({ online, label }: StatusBadgeProps) {
return (
<span className="inline-flex items-center gap-2 text-sm text-black/60 dark:text-white/60">
<span
className={`h-2 w-2 rounded-full ${
online ? "bg-emerald-500" : "bg-red-500"
}`}
/>
{label ?? (online ? "Online" : "Offline")}
</span>
);
}