Initial human archive app
Some checks failed
Build and publish Docker image / docker (push) Failing after 2m33s

This commit is contained in:
2026-06-26 21:31:46 +02:00
parent ee2a0202d7
commit f29339cf12
38 changed files with 3644 additions and 112 deletions

View File

@@ -1,65 +1,83 @@
import Image from "next/image";
import Link from "next/link";
import { WorkspacePanel } from "@/components/workspace-panel";
export default function Home() {
return (
<div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
<main className="flex flex-1 w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={100}
height={20}
priority
/>
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
To get started, edit the page.tsx file.
</h1>
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
Looking for a starting point or more instructions? Head over to{" "}
<a
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
className="font-medium text-zinc-950 dark:text-zinc-50"
>
Templates
</a>{" "}
or the{" "}
<a
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
className="font-medium text-zinc-950 dark:text-zinc-50"
>
Learning
</a>{" "}
center.
</p>
<main className="min-h-screen bg-[#f4efe6] text-stone-950">
<header className="border-b border-stone-300 bg-white/90">
<div className="mx-auto flex max-w-7xl items-center justify-between px-4 py-4 sm:px-6">
<div>
<p className="text-xs font-semibold uppercase tracking-[.18em] text-teal-800">Human Archive</p>
<h1 className="text-2xl font-semibold tracking-normal">Menschheits-Enzyklopaedie</h1>
</div>
<nav className="flex items-center gap-2 text-sm font-medium">
<Link className="rounded-md px-3 py-2 text-stone-700 hover:bg-stone-100" href="/entries/example">
Eintrag
</Link>
<Link className="rounded-md px-3 py-2 text-stone-700 hover:bg-stone-100" href="/admin">
Admin
</Link>
</nav>
</div>
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
<a
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={16}
height={16}
/>
Deploy Now
</a>
<a
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Documentation
</a>
</header>
<div className="mx-auto grid max-w-7xl gap-6 px-4 py-6 sm:px-6 lg:grid-cols-[1fr_360px]">
<div className="space-y-6">
<section className="grid gap-5 rounded-lg border border-stone-300 bg-white p-5 shadow-sm md:grid-cols-[1.1fr_.9fr]">
<div className="flex flex-col justify-center">
<p className="mb-3 text-sm font-semibold text-teal-800">Quellenpflichtige Wissensarbeit</p>
<h2 className="max-w-2xl text-4xl font-semibold leading-tight tracking-normal">
Fragen stellen, Wissen recherchieren und KI-Entscheidungen auditieren.
</h2>
<p className="mt-4 max-w-2xl text-base leading-7 text-stone-700">
V1 verbindet eine strukturierte Enzyklopaedie mit LiteLLM-gestuetzter Recherche,
Quellenverwaltung und automatischer Moderation.
</p>
</div>
<div className="relative min-h-64 overflow-hidden rounded-md border border-stone-200 bg-stone-100">
<Image src="/archive-field.svg" alt="" fill priority className="object-cover" />
</div>
</section>
<WorkspacePanel />
</div>
</main>
</div>
<aside className="space-y-4">
<StatusPanel />
<div className="rounded-lg border border-stone-300 bg-white p-4 shadow-sm">
<h2 className="text-base font-semibold">V1-Grenzen</h2>
<ul className="mt-3 space-y-3 text-sm leading-6 text-stone-700">
<li>Keine Massen-Crawls ohne konfigurierte Quellen-APIs.</li>
<li>Keine Veroeffentlichung ohne gespeicherte Quelle.</li>
<li>KI-Freigaben bleiben im Admin Center nachvollziehbar.</li>
</ul>
</div>
</aside>
</div>
</main>
);
}
function StatusPanel() {
const items = [
["Datenhaltung", "Postgres + Prisma"],
["LLM-Gateway", "LiteLLM-kompatibel"],
["Sprachen", "Deutsch / Englisch"],
["Container", "Runtime vorbereitet"],
];
return (
<section className="rounded-lg border border-stone-300 bg-white p-4 shadow-sm">
<h2 className="text-base font-semibold">Systemstatus</h2>
<dl className="mt-3 space-y-3">
{items.map(([label, value]) => (
<div key={label} className="flex items-center justify-between gap-3 border-b border-stone-200 pb-2 last:border-0">
<dt className="text-sm text-stone-600">{label}</dt>
<dd className="text-right text-sm font-semibold text-stone-950">{value}</dd>
</div>
))}
</dl>
</section>
);
}