Workflow-App/Workflow/app/not-found.tsx
sjcoetzeesj-coder 11d0178ab1 feat: commit Workflow app source; move CIPC credentials to env
Adds the full Next.js app (app/, components/, lib/, scripts/, assets/,
docs/, Dockerfile, compose, configs) to version control.

Security:
- CIPC BizPortal customer-code logins (Login 1 + Login 3) now read
  CIPC_LOGIN1_CODE / CIPC_LOGIN1_PASSWORD / CIPC_LOGIN3_CODE /
  CIPC_LOGIN3_PASSWORD from .env.local instead of source.
- BizPortal personal login in apply-bizportal route reads
  BIZPORTAL_ID_NO / BIZPORTAL_PASSWORD.
- Added .env.example as the committed template.

.gitignore excludes .env*, node_modules, .next, logs, sqlite, Playwright
storage_state.json (live CIPC cookies), scratch dirs, client PDFs and
debug screenshots.
2026-10-18 15:21:45 +02:00

38 lines
1.4 KiB
TypeScript

// app/not-found.tsx
// 404 surface, also must be a Client-renderable style. Keeps links
// to both registries so the user can recover with one click.
import Link from "next/link";
export default function NotFound() {
return (
<section className="container-x py-20">
<div className="max-w-xl mx-auto bg-surface border border-border rounded-lg p-10 flex flex-col gap-4">
<p className="text-xs uppercase tracking-[0.08em] text-muted font-semibold">
404
</p>
<h1 className="text-2xl font-bold text-fg leading-tight">
That record isn&apos;t in the registry
</h1>
<p className="text-base text-muted">
The link may be stale, or the record may have been removed since
it was last scraped.
</p>
<div className="flex gap-3 pt-2">
<Link
href="/directors"
className="inline-flex items-center px-5 py-3 rounded-md bg-accent text-accent-on font-semibold text-sm no-underline hover:bg-accent-hover transition-colors"
>
Browse directors
</Link>
<Link
href="/companies"
className="inline-flex items-center px-5 py-3 rounded-md border border-border text-fg font-semibold text-sm no-underline hover:bg-surface-warm transition-colors"
>
Browse companies
</Link>
</div>
</div>
</section>
);
}