my-homelab-configs/apps/opsproof/overlay/resources/js/pages/Demo.tsx

62 lines
3.0 KiB
TypeScript

interface Demo {
scope: string;
target: string;
outcome: string;
finding: string;
diagnostic: string;
proposal: string;
rollback: string;
validation: string;
notice: string;
evidence: Array<{ id: string; status: string; check: string; summary: string }>;
}
export default function DemoPage({ demo }: { demo: Demo }) {
return (
<main className="min-h-screen bg-[#071019] px-5 py-10 text-slate-100">
<div className="mx-auto max-w-6xl">
<header className="border-b border-white/10 pb-8">
<p className="text-xs uppercase tracking-[0.22em] text-cyan-300">OpsProof · public portfolio demo</p>
<h1 className="mt-4 max-w-4xl text-4xl font-semibold tracking-tight sm:text-6xl">
Evidence, approval, repair, and proof in one operational record.
</h1>
<p className="mt-5 max-w-3xl text-sm leading-6 text-slate-400">{demo.notice}</p>
</header>
<section className="grid gap-4 py-8 md:grid-cols-3">
{demo.evidence.map((item) => (
<article key={item.id} className="rounded-2xl border border-white/10 bg-[#0a141e] p-5">
<div className="flex items-center justify-between">
<span className="font-mono text-xs text-cyan-300">{item.id}</span>
<span className="text-[10px] uppercase text-slate-500">{item.status}</span>
</div>
<h2 className="mt-4 font-medium text-white">{item.check}</h2>
<p className="mt-2 text-sm leading-6 text-slate-400">{item.summary}</p>
</article>
))}
</section>
<section className="grid gap-px overflow-hidden rounded-3xl border border-white/10 bg-white/10 lg:grid-cols-2">
{[
['Finding', demo.finding],
['Diagnostic', demo.diagnostic],
['Approval-gated proposal', demo.proposal],
['Operator rollback', demo.rollback],
['Post-change validation', demo.validation],
['Outcome', demo.outcome],
].map(([heading, body]) => (
<article key={heading} className="bg-[#0b1621] p-6">
<p className="text-xs uppercase tracking-[0.18em] text-cyan-200">{heading}</p>
<p className="mt-3 text-sm leading-6 text-slate-400">{body}</p>
</article>
))}
</section>
<footer className="py-8 text-xs text-slate-600">
Built with Laravel Go, React/Inertia, PostgreSQL, Dex, Jeannie, Holmes, and an OCI edge boundary.
</footer>
</div>
</main>
);
}