Feature: Fehlerseiten 401, 403, 500, 502, 503, 504
Gemeinsames Layout in components/error-page.tsx, 404 darauf umgestellt. Jede Route app/<code>/page.tsx erzeugt landingpage/<code>.html; die Deploy-Skripte kopieren alle Fehlerseiten in den Webroot. README dokumentiert die nötigen ErrorDocument-Zeilen (Server-Konfig unverändert). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ea2bcfbd27
commit
9c7e1ce4db
1 changed files with 427 additions and 120 deletions
31
app/503/page.tsx
Normal file
31
app/503/page.tsx
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { ErrorPage, Cmd, Out, Code } from '@/components/error-page'
|
||||
|
||||
export const metadata = {
|
||||
title: '503 – Wartungsarbeiten | Jamulix',
|
||||
description: 'Der Server macht gerade Teepause.',
|
||||
robots: { index: false, follow: false },
|
||||
}
|
||||
|
||||
export default function ServiceUnavailable() {
|
||||
return (
|
||||
<ErrorPage
|
||||
code={503}
|
||||
label="Wartungsarbeiten"
|
||||
title="Der Server macht gerade Teepause."
|
||||
terminal={
|
||||
<>
|
||||
<Cmd>systemctl status jamulix</Cmd>
|
||||
<Out>● jamulix.service – Jamulix Webdienst</Out>
|
||||
<Code> Active: maintenance (Teepause) since vorhin</Code>
|
||||
<Out> Tasks: 1 (Wasser kocht)</Out>
|
||||
<Cmd>sleep 300 && tee tasse.txt < kanne</Cmd>
|
||||
<Out>Earl Grey, heiß.</Out>
|
||||
</>
|
||||
}
|
||||
tip={<>Tipp: Ein guter Tee zieht 3–5 Minuten – genau wie diese Wartung.</>}
|
||||
>
|
||||
Hier wird gerade gewartet, aktualisiert und ein wenig aufgeräumt.
|
||||
Gleich ist alles wieder da – frisch gepatcht und gut gelaunt.
|
||||
</ErrorPage>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue