Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/state';
import { ArcaneButton } from '#lib/components/arcane-button/index.js';
import * as Empty from '#lib/components/ui/empty/index.js';
import { AlertIcon } from '#lib/icons/index.js';
import { m } from '#lib/paraglide/messages.js';
interface Props {
fallbackTitle: string;
backLabel: string;
backHref: string;
}
let { fallbackTitle, backLabel, backHref }: Props = $props();
const status = $derived(page.status ?? 500);
const message = $derived(page.error?.message ?? m.error_generic());
</script>
<div class="flex h-full flex-1 flex-col items-center justify-center p-8">
<Empty.Root class="flex-none">
<Empty.Header>
<Empty.Media variant="icon">
<AlertIcon class="size-16 text-destructive" aria-hidden="true" />
</Empty.Media>
<Empty.Title>
{status === 404 ? m.error_not_found() : fallbackTitle}
</Empty.Title>
<Empty.Description>
{message}
</Empty.Description>
</Empty.Header>
<Empty.Content>
<div class="flex flex-col items-center gap-3">
<ArcaneButton action="base" customLabel={backLabel} onclick={() => goto(backHref)} />
</div>
</Empty.Content>
</Empty.Root>
</div>